Resize Property Page to fit bitmap (using SDK - not MFC)
Posted on 2002-06-27
I am building a property page using Visual C++ Windows SDK (Non-MFC) and I want my property page to be bitmap based. The only thing I want displayed int the Property Page display region is a bitmap and the program will respond to mouse movements and button control.
The problem is that the Property Page is defined in a .rc file as a dialog as follows and as you see the size of the dialog is based on DIALOG UNITS although I would prefer to define the size in pixels so that it will exactly fit my bitmap:
IDD_MYPROPPAGE DIALOG DISCARDABLE 0, 0, 140, 180
FONT 8, "MS Sans Serif"
Since I cannot define the dialog in pixels, I guess I will need to resize it after it is created so that it is the proper size. How can I do that?