I have a question that were not answered on
http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/fa521007-f317-48f1-9cdd-de2dbcb17aa8
(last posts are my posts). StackOverflow is better forum so could you help me :)
Briefly:
- dual monitor configuration, primary monitor on right has lower resolution, on left side monitor with higher resolution (lo: 1280x1024; hi: 1680x1050). When maximizing on bigger one, window is larger than monitor (works only on left monitor)
- working on a borderless window base class
- maximize to the actual client area does not work as expected. Solved by adding a WndProc hook and fiddling with the size parameters. Multiple monitor support added some issues, because maximizing seems to rely on MaxTrackSize instead of MaxSize. This seems to happen only when the primary monitor is smaller than the second monitor
Something I found in specification:
http://msdn.microsoft.com/en-us/library/ms632605(v=VS.85).aspx
For systems with multiple monitors, the ptMaxSize and ptMaxPosition members describe the maximized size and position of the window on the primary monitor, even if the window ultimately maximizes onto a secondary monitor. In that case, the window manager adjusts these values to compensate for differences between the primary monitor and the monitor that displays the window. Thus, if the user leaves ptMaxSize untouched, a window on a monitor larger than the primary monitor maximizes to the size of the larger monitor.
So if I understand correctly in my case it is impossible to maximize on screen with higher resolution when there is taskbar placed in the way not to hide it under maximized window?
Cheers, jbk