Dialog fullscreen auf 2. Monitor öffnen
-
Ich Programmiere gerade einen Videoplayer mit Text Overlay,
wobei das Video auf dem 2. Monitor ausgegeben werden soll, während man auf dem primären Monitor den Player steuern kann. Es funktioniert soweit alles, aber wie kann ich die Auflösung des 2. Monitors herausfinden und den View-Dialog Fullscreen auf den 2. Monitor setzen?
Kann mir jemand helfen?
-
Bin mir nicht sicher, ob dir das etwas weiterhilft oder nicht, aber guck dir mal die GetSystemMetrics() Funktion an.
http://msdn.microsoft.com/en-us/library/ms724385%28VS.85%29.aspx
SM_CXFULLSCREEN:
The width of the client area for a full-screen window on the primary display monitor, in pixels. To get the coordinates of the portion of the screen that is not obscured by the system taskbar or by application desktop toolbars, call the SystemParametersInfo function with the SPI_GETWORKAREA value.Vielleicht findest du hier auch noch was Hilfreiches:
http://www.codeproject.com/KB/GDI/multimon.aspx