::SetWindowLong( hwnd->getHWND(), GWL_STYLE, ::GetWindowLong(hwnd->getHWND(),GWL_STYLE) & ~WS_MAXIMIZEBOX );
-Nick On Tue, Jul 13, 2010 at 10:25 AM, Saravanan Sivaprahasam < [email protected]> wrote: > Hi, > I've tried using the following code to disable the maximize button in > the window. > > osgViewer::ViewerBase::Windows wins; > viewer->getWindows(wins); > osgViewer::GraphicsHandleWin32* hwnd = > dynamic_cast<osgViewer::GraphicsHandleWin32*>(wins[0]); > > HMENU hMenu = ::GetSystemMenu(hwnd->getHWND(), FALSE); > ::EnableMenuItem(hMenu, SC_MAXIMIZE, MF_BYCOMMAND | (MF_DISABLED | > MF_GRAYED)); > > The above code is not working for maximize button, but it works well for > close button. Is there any other way to achieve this > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=29947#29947 > > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

