CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: SIZE

  1. #1
    Guest

    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


  2. #2
    Join Date
    Apr 1999
    Posts
    27,449

    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
  •  





Click Here to Expand Forum to Full Width

Featured