|
-
May 19th, 1999, 10:44 AM
#1
SIZE
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
-
May 19th, 1999, 02:39 PM
#2
Re: SIZE
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|