visual032798
asked on
Another DirectX question
My previous DirectX question dealt with going to fullscreen (DDSCL_FULLSCREEN | DDSCL_EXCLUSIVE) and how the window appears and is active even after drawing over it. I have gotten rid of part of this problem by setting the Menu to NULL (SetMenu command). This has made the menu disappear (a good thing) and now I have a few more problems. The maximize, minimize, and close button on the upper right hand part of the window are still active, and if you move your mouse pointer to the edge of the window, it still allows you to resize. How do I inactivate all of these? I want to draw over this window and use this screen area as though I were programming a DOS game... a blank screen that I can draw images onto (without my mouse detecting hidden windows options). Please help!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
>Will this still work fine while in windowed mode?
Yes, as long as it is a Windows GUI application.
>if I used MFC wizard to initially create my window, where do I specify this option (or what function can I use to change it to this).
You may override the CWnd::PreCreateWindow() and change the cs.style and/or cs.dwExStyle. Or you may override the CWnd::OnCreate() and call CWnd::ModifyStyle() and/or CWnd::ModifyStyleEx().
Yes, as long as it is a Windows GUI application.
>if I used MFC wizard to initially create my window, where do I specify this option (or what function can I use to change it to this).
You may override the CWnd::PreCreateWindow() and change the cs.style and/or cs.dwExStyle. Or you may override the CWnd::OnCreate() and call CWnd::ModifyStyle() and/or CWnd::ModifyStyleEx().
ASKER
Thanks a lot for your help!
>when you use an ordinary win32 application. you can access a Fullscreen mode just by applyng two Directx commands:
1-Setcopperativelevel(hwnd ,DDSCL_EXC LUSICVE | DDSCD_FULLSCREEN );
2-SetDisplayMode(width,hei ght,Palett e_Bits);
1-Setcopperativelevel(hwnd
2-SetDisplayMode(width,hei
ASKER