When you’re done configuring your display, click Apply. A new window will then pop up with the display settings menu. Right-click on any blank space on the screen and Select Screen resolution in the menu that pops up. I'm getting ready to inflate the vertical dimension by the ratio of the heights of the target and primary monitor. You’ll need this set up to figure out how to configure your wallpapers. This is well and good (GetWindowRect documentation says coordinates will be in Client space, and I'm assuming that win32 is translating between the resolution of my primary and secondary monitor. I even tried this in VBA just for giggles: Public Sub testSWP() However, after the call to SetWindowPos, the window rectangle doesn't fill the entire height of the screen (it is actually 1080 high). I have confirmed that height is computing to 1200 (expected b/c that is the target monitor's vertical resolution). SetWindowPos(hwnd, 0,, , width, height, SWP_NOZORDER | SWP_NOACTIVATE) HMonitor = monitorFromPoint(x, 0, MONITOR_DEFAULTTONEAREST) Here's what I do: x = GetSystemMetrics(SM_XVIRTUALSCREEN) I want to use SetWindowPos to make a window take up the full vertical height of the left hand monitor. Right monitor (the primary monitor) is 1920x1080. I have two monitors that are running at different resolutions.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |