15 мая 2023 года "Исходники.РУ" отмечают своё 23-летие!
Поздравляем всех причастных и неравнодушных с этим событием!
И огромное спасибо всем, кто был и остаётся с нами все эти годы!

Главная Форум Журнал Wiki DRKB Discuz!ML Помощь проекту


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
>




| Вернуться в корень Архива |