Advertisement

Fullscreen windows

Started by September 10, 2000 12:42 AM
1 comment, last by Blackstream 24 years, 3 months ago
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:
            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
Advertisement
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 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