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

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


CPropertyPage bug or...

Mike Blaszczak -- mikeblas@msn.com
Tuesday, March 26, 1996

[Mini-digest: 2 responses]

You can skip checking all the attributes of the property page by using the 
"Resource..." command in the "Insert" menu.  When the "Resource" dialog comes 
up, expand the tree control underneath "Dialogs"--it'll show a couple stock 
sizes for property pages and if you insert one of them, the new resource will 
be set up the way it should.

.B ekiM
ASSERT(King(Condiments) == mustard);

-----From: Ravichandran Kumaravelu 

There are few things about the property sheet.
	1. Always the size of the first page will be size of the property 
sheet.
	2. Also set the styles of the property sheet ad mentioned by 
Eric.
	
	If you have any other problem with the property sheet,
	please call me at harbour side BT. My ext 5 - 2892

ciao
	Ravi

[Moderator's note: Could someone other than me verify the first
item above?  I seem to be getting different results - if I have a
sheet that is 200x300 and one that is 300x200, my sheet ends up
being 300x300.]



Niels Ull Jacobsen -- nuj@kruger.dk
Monday, April 01, 1996

>
>There are few things about the property sheet.
>	1. Always the size of the first page will be size of the property 
>sheet.
>	2. Also set the styles of the property sheet ad mentioned by 
>Eric.
>	
>	If you have any other problem with the property sheet,
>	please call me at harbour side BT. My ext 5 - 2892
>
>ciao
>	Ravi
>
>[Moderator's note: Could someone other than me verify the first
>item above?  I seem to be getting different results - if I have a
>sheet that is 200x300 and one that is 300x200, my sheet ends up
>being 300x300.]

I think this was true in MFC 3.x, which implemented property sheets internally.
In the Win95 native property sheets used in MFC 4.x, the sheet will be large
enough to fit the largest dialog (as you observed).

[Moderator's note:  That would explain it.  I did another experiment
which verified this for me, but I didn't try it with an old version
of MFC.]

Niels Ull Jacobsen, Krьger A/S (nuj@kruger.dk)
Everything stated herein is THE OFFICIAL POLICY of the entire Kruger group
and should be taken as legally binding in every respect. Pigs will grow
wings and fly.




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