Solved

Another DirectX question

Posted on 1998-10-01
5
193 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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…
Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

734 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