Click here to Skip to main content
15,897,273 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi
look at the following property sheet:
[^]
the property page is created from a resource template with size 2x2! it seems that a property page can't have size less than a special value. in another words there's a minimum size in width and height which the dimensions of a property page can't be less than it and if it's the case they're adjusted to these values.

i need to override this behavior. i need to know how can i change a property page's size. i need to have a property sheet with some pages each of which may have its own size and i need to adjust the property page size based on the bitmap which is required to be shown inside of it. the property sheet also needed to follow the page's size. i've found that a property sheet's width is its property page's width+26 and a property sheet's height is its property page's height+101 pixels. i don't know whether these values are constant in all appearances and all platforms. i don't know how to find them dynamically inside the program itself.

i've tried SetWindowPos for the property sheet and it works properly, but it doesn't work for the property page.

i've also tried using a big enough property page resource template, eg. with 600x600 dimensions. but i can't change that property page's size too. it seems to be constant and can't be changed later, after property sheet is created.

please help me change my property sheet's pages from inside the program to the values i need.

thx
Posted

1 solution

You need to find a property or function in the class that you can change or override; check the documentation[^] to see if it's possible. If such a feature is not available then you probably need to look into the possibility of subclassing[^] the control.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900