Wonderful! Thanks a lot. BTW, is there any way to automatically center that window? or get screen size and window size? Just to let my window nicer. (from OSG, not from Win32 API) Thanks Tueller. ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=20305#20305