Im having a problem implementing the standard windows screensaver password. Everything works except if the user types the wrong password and presses OK, the window telling them to retype it doesnt appear and the password window loses focus. Now I think the problem is due to the fact im creating my window like so:
hChild = CreateWindow(
wc.lpszClassName,
“Child1”,
// OpenGL requires WS_CLIPCHILDREN and WS_CLIPSIBLINGS
WS_CHILD | WS_VISIBLE | WS_CLIPCHILDREN | WS_CLIPSIBLINGS,
// Window position and size
0, 0,nMaxX,nMaxY,
hWnd,NULL,hInst,NULL);
and I think it needs to be done like so
CreateWindowEx(WS_EX_TOPMOST,“ScrClass”,“SaverWindow”,WS_POPUP|WS_VISIBLE,0,0,cx,cy,NULL,NULL,hInstance,NULL);
but like the comments say above I have to use clipsibblings and clipchildren for OpenGL.
My question is, has anyone managed to write an OpenGL screensaver that uses the standard password functions, works fully and could they send/post the relevant source or tell me where I’m going wrong.
Thanks
[This message has been edited by Adrian (edited 07-02-2000).]