?
Solved

Another DirectX question

Posted on 1998-10-01
5
Medium Priority
?
195 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 400 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.
Suggested Courses

770 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