Solved

Another DirectX question

Posted on 1998-10-01
5
194 Views
Last Modified: 2012-05-04
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!
0
Comment
Question by:visual032798
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 23

Accepted Solution

by:
chensu earned 100 total points
ID: 1174147
When you create the window, specify the window style WS_POPUP | WS_VISIBLE only.
0
 

Author Comment

by:visual032798
ID: 1174148
The program I have can switch between windowed mode and fullscreen mode (with Alt+Enter).  Will this still work fine while in windowed mode?  Also, since I am not in front of my programming PC right now, 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). Thanks for your prompt help!
0
 
LVL 23

Expert Comment

by:chensu
ID: 1174149
>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().
0
 

Author Comment

by:visual032798
ID: 1174150
Thanks a lot for your help!
0
 

Expert Comment

by:georgesy
ID: 1174151
>when you use an ordinary win32 application. you can access a Fullscreen mode just by applyng two Directx commands:
1-Setcopperativelevel(hwnd,DDSCL_EXCLUSICVE | DDSCD_FULLSCREEN );
2-SetDisplayMode(width,height,Palette_Bits);
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

695 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question