Fullscreen windows
Hello, I was trying to make a fullscreen window using the windows API. However, when I create a window using the height and width as SM_CX/YFULLSCREEN, the window covers the entire horizontal, but for some reason, the window doesn''t cover the title bar and part of the desktop. In short, it is too small. Can anyone tell me what I''m doing wrong, or at least how to make a window cover the entire screen?
-Blackstream
"See you later, I'm going to go grab a few Bytes. I'm so thirsty, I could drink a whole data stream."
-Blackstream Will you, won't you, will you, won't you, won't you take my virus?-The Mad HackerBlackstream's Webpage
this works for me:
Edited by - Quantum on September 10, 2000 2:36:29 AM
Edited by - Quantum on September 10, 2000 2:36:55 AM
if(!(hWnd=CreateWindow( "Class", // class "Title", // title WS_POPUP|WS_VISIBLE, // flags 0,0, // x, y pos GetSystemMetrics(SM_CXSCREEN), // xsize GetSystemMetrics(SM_CYSCREEN), // ysize NULL, // handle to parent NULL, // handle to menu hinstance, // instance from winmain NULL))) // creation parameters return(0);
Edited by - Quantum on September 10, 2000 2:36:29 AM
Edited by - Quantum on September 10, 2000 2:36:55 AM
Thanks, I figured out what my problem was. I was using SM_CXFULLSCREEN and SM_CYFULLSCREEN instead of SM_CXSCREEN and SM_CYSCREEN. Fullscreen gives you the CLIENT area, and plain old screen just gives you the lengths. Client can make a heck of a lot of difference... Man that stupid problem gave me a headache, but all the stupid ones do.
-Blackstream
"See you later, I'm going to go grab a few Bytes. I'm so thirsty, I could drink a whole data stream."
-Blackstream
"See you later, I'm going to go grab a few Bytes. I'm so thirsty, I could drink a whole data stream."
-Blackstream Will you, won't you, will you, won't you, won't you take my virus?-The Mad HackerBlackstream's Webpage
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement