Click to See Complete Forum and Search --> : SIZE


May 19th, 1999, 10:44 AM
I have a problem with my window sizing. I have my views adjusting their size depending on the monitor pixels etc, but my property sheets are huge on smaller screens, how do I go about adjusting these depending on monitor used.

Also, I have a really annoying intermitent error which occurrs when I go into a particular property page. The debugger says that it is not a window, that my control has not been subclassed, during the do data exchange, yet a recompile clears the error on my computer, but when I transfer the dll's to another, I get the error.

Any ideas greatly appreciated thanks

Paul McKenzie
May 19th, 1999, 02:39 PM
For the first problem, you can call GetDC(GetDesktopWindow()) and then call GetDeviceCaps() to get the # of pixels for horizontal and vertical directions (don't forget to call ReleaseDC!). You can also call SystemParametersInfo(SFI_GETWORKAREA) if you need to know the area not taken up by the system tray.

Regards,

Paul McKenzie