u r welcome Nick
http://www.linkedin.com/in/tnick Sent from Istanbul, 34, Turkey On Fri, Dec 18, 2009 at 12:24 PM, J.P. Delport <[email protected]> wrote: > Hi Nick, > > thanks a lot. > > rgds > jp > > Trajce Nikolov wrote: > >> This should disable it: >> >> 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_CLOSE, MF_BYCOMMAND | (MF_DISABLED | >> MF_GRAYED)); >> >> >> Nick >> >> http://www.linkedin.com/in/tnick >> Sent from Istanbul, 34, Turkey >> >> On Fri, Dec 18, 2009 at 11:48 AM, J.P. Delport <[email protected]<mailto: >> [email protected]>> wrote: >> >> Hi, >> >> >> Trajce Nikolov wrote: >> >> Get a handle of the window and set the style. If you are one >> windows, >> >> >> refer to title... >> >> >> I might help you with some code. >> >> >> refer to first question... >> >> Help appreciated, I'm a Windows agnostic. >> >> jp >> >> Nick >> >> http://www.linkedin.com/in/tnick >> >> >> On Fri, Dec 18, 2009 at 10:05 AM, J.P. Delport >> <[email protected] <mailto:[email protected]> >> <mailto:[email protected] <mailto:[email protected]>>> >> wrote: >> >> Hi all, >> >> anyone have some code for disabling the close button on the OSG >> created window? AFAICS from the code one either gets all >> decorations >> or none and the window close event is not easy to skip (there >> are >> viewer functions for skipping escape and quit events, but not >> close). >> >> Would an addition to traits be useful for this? >> >> regards >> jp >> >> >> -- This message is subject to the CSIR's copyright terms and >> conditions, e-mail legal notice, and implemented Open Document >> Format (ODF) standard. The full disclaimer details can be found at >> http://www.csir.co.za/disclaimer.html. >> >> This message has been scanned for viruses and dangerous content by >> MailScanner, and is believed to be clean. MailScanner thanks >> Transtec Computers for their support. >> >> _______________________________________________ >> osg-users mailing list >> [email protected] >> <mailto:[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 >> > > -- > This message is subject to the CSIR's copyright terms and conditions, > e-mail legal notice, and implemented Open Document Format (ODF) standard. > The full disclaimer details can be found at > http://www.csir.co.za/disclaimer.html. > > This message has been scanned for viruses and dangerous content by > MailScanner, and is believed to be clean. MailScanner thanks Transtec > Computers for their support. > > _______________________________________________ > 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

