CDialogBar sizing
Nikhil Kothari -- nkothari@ics.uci.edu Monday, December 02, 1996 Hi All, [ for mfc-l mailing list: Environment: VC++ 4.2b, Windows 95, WinNT 4.0 ] Is it possible for me to control the sizing of a CDialogBar that is in docked state? I'd like it to be stretched to the maximum possible i.e., its width should be equal to the main frame window's width. When it is floating, I'd like to be the minimum required size, just like the default behavior. I tried deriving and overriding CDialogBar::CalcFixedSize but the whole thing went crazy. I must have done something wrong. Does anyone know how to do this? I was wondering if there was a style bit I could set/unset? Or maybe I have to override some methods. Could someone please help? Thanks in advance, Nikhil Kothari nkothari@ics.uci.edu
IK 23 -- Cunningham@tgd.swissptt.ch Thursday, December 05, 1996 no doubt you will get a lot of mail about this one. You arent doing anything wrong its just that the CDialogBar/CControlBar classes do not support resizing when docked and it is a lot of work to implement this yourself. You really have only 2 choices 1. Look at Stingrays set of mfc extensions http://www.stingsoft.com/ 2. Look at Mark Conways freeware stuff http://ourworld.compuserve.com/homepages/MRConway/ With Stingray you get a fully commercially supported code. As I have no doubt said before you pays your money you takes your choice. regards Graham Cunningham 00 41 31 338 0633 >---------- >From: nikhil[SMTP:nkothari@ics.uci.edu] >Sent: Montag, 2. Dezember 1996 23:30 >Cc: mfc-l@netcom.com >Subject: CDialogBar sizing > >Hi All, > >[ for mfc-l mailing list: > Environment: VC++ 4.2b, Windows 95, WinNT 4.0 >] > > Is it possible for me to control the sizing of a CDialogBar that is in >docked state? I'd like it to be stretched to the maximum possible i.e., >its width should be equal to the main frame window's width. > > When it is floating, I'd like to be the minimum required size, just >like the default behavior. > > I tried deriving and overriding CDialogBar::CalcFixedSize but the whole >thing went crazy. I must have done something wrong. > > Does anyone know how to do this? I was wondering if there was a style >bit I could set/unset? Or maybe I have to override some methods. > >Could someone please help? > >Thanks in advance, >Nikhil Kothari >nkothari@ics.uci.edu >
| Вернуться в корень Архива |