| | |
DirectX Question - Windowed vs Fullscreen Mode
Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved |
•
•
Join Date: Sep 2008
Posts: 16
Reputation:
Solved Threads: 0
I'm writing an application with Directx 9. Where I start the application in full screen mode, the image fills to fullscreen and then immediately reverts into a regular window. There aren't any problems when I run the application in windowed mode from the start.
I was wondering if anyone has any ideas as to what may be causing this.
Some things to note are that I am running the debug version of directx and I am doing everything on one monitor. The fullscreen mode problem still occurs if I "Run without debugging"
Thanks,
Mike
I was wondering if anyone has any ideas as to what may be causing this.
Some things to note are that I am running the debug version of directx and I am doing everything on one monitor. The fullscreen mode problem still occurs if I "Run without debugging"
Thanks,
Mike
•
•
Join Date: Sep 2008
Posts: 16
Reputation:
Solved Threads: 0
Yay I figured it out. What was happening was that the graphics device was setup to go into fullscreen mode; after filling up the screen with the background (ie fullscreen), the window immediately switched back to a regular window with a menu at the top.
I'm still testing some of the functions, so I was doing everything in the Init() cycle. I was closing the graphics interface/device at the end of the Init() cycle. This had no effect on windowed mode, but I guess if the device is closed while in fullscreen mode and the application is still running, then the fullscreen window changes back to a regular window.
I'm still testing some of the functions, so I was doing everything in the Init() cycle. I was closing the graphics interface/device at the end of the Init() cycle. This had no effect on windowed mode, but I guess if the device is closed while in fullscreen mode and the application is still running, then the fullscreen window changes back to a regular window.
Last edited by Dinomike1000; Dec 22nd, 2008 at 6:18 pm.
Have you made sure that your Window is actually in full screen, with borders etc removed? My guess is you are making your drawing space 3D but not the actual window.
You window should have properties that resemble the following.
WS_EX_TOPMOST, making sure it is on top. Above start bar etc. WS_POPUP removes the borders etc, SCREEN WIDTH & SCREEN_HEIGHT are self explanatory. basically the resolution.
Chris
You window should have properties that resemble the following.
C++ Syntax (Toggle Plain Text)
hWnd = CreateWindowEx(NULL, L"WindowClass", L"Basic Window", WS_EX_TOPMOST | WS_POPUP, 0, 0, SCREEN_WIDTH, SCREEN_HEIGHT, NULL, NULL, hInstance, NULL);
WS_EX_TOPMOST, making sure it is on top. Above start bar etc. WS_POPUP removes the borders etc, SCREEN WIDTH & SCREEN_HEIGHT are self explanatory. basically the resolution.
Chris
Last edited by Freaky_Chris; Dec 22nd, 2008 at 7:02 pm.
Knowledge is power -- But experience is everything
![]() |
Other Threads in the C++ Forum
- Previous Thread: Energy saving project, detecting windows audio output
- Next Thread: power series for In(x) (challenging one)
| Thread Tools | Search this Thread |
api array arrays based beginner binary bitmap c++ c/c++ calculator char char* class classes coding compile compiler console conversion convert count data database delete desktop developer directshow dll dynamiccharacterarray email encryption error file forms fstream function functions game generator getline google graph homeworkhelper iamthwee ifstream input int integer java lib linkedlist linux list loop looping loops map math matrix memory multiple news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference return rpg sorting string strings struct template templates text tree unix url vector video visualstudio win32 windows winsock word wordfrequency wxwidgets





