Hi Manuel,
Since you use Win32Window, you call Win32's CreateWindow, right?
Here's a snip from my code. The relevant variables are m_fullscreen and
m_border. (The first is obvious, the latter enables/disables borders if
fullscreen is not set. Someone mailed about recently, so this answers
that as well)
int exstyle = m_fullscreen ? WS_EX_APPWINDOW : 0;
int style = WS_CLIPCHILDREN | WS_CLIPSIBLINGS;
style |= (!m_fullscreen && m_border) ? WS_OVERLAPPEDWINDOW : WS_POPUP;
m_hwnd = CreateWindowEx(exstyle, g_classname, m_title.c_str(), style,
r.left, r.top, r.right - r.left, r.bottom -
r.top,
0, 0, 0, 0);
The m_hwnd is then set in OSG::WIN32Window, after the pixel format has
been chosen etc etc.
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)" : "");
}
Cheers,
/Marcus
Manuel Büchler skrev:
> Hi again.
>
> My Problem with Quadbuffering is solved and there is just the next
> problem. I use a WIN32WINDOW to display the openSG stuff. Now my
> question: how can I put this window into fullscreen. with glut there
> is the function glutFullscreen(). is there a function like this with
> the WIN32WINDOW too?
>
> thanks a lot.
>
> Manuel Büchler
> -------------------------------------------------------------------------
> 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
>
-------------------------------------------------------------------------
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