Hello,

Am 06.09.2006 um 13:26 schrieb Marcus Lindblom:

> This might also be of interest. It automatically 'maximizes' a
> window-rect to fullscreen on the monitor that is most covered by the
> rect. Quite useful:
>
>     RECT r;
>     r.left = m_pos[0];
>     r.top = m_pos[1];
>     r.right = m_pos[0] + m_size[0];
>     r.bottom = m_pos[1] + m_size[1];
>
>     if (m_fullscreen) {
>         HMONITOR mon = MonitorFromRect(&r, MONITOR_DEFAULTTONEAREST);
>         MONITORINFOEX mi;
>         mi.cbSize = sizeof(mi);
>         GetMonitorInfo(mon, &mi);
>         r = mi.rcWork;
>         s_log.info("Going fullscreen on monitor '%s' %s.",  
> mi.szDevice,
>                    mi.dwFlags & MONITORINFOF_PRIMARY ?  
> "(primary)" : "");
>     }

Hmmm, what about the following piece of code:

ShowWindow(m_hwnd, m_fullscreen ? SW_SHOWMAXIMIZED : SW_SHOWNORMAL);

Bye,

Patrick


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to