Is there any kosher way for an app to run "full-screen", with no border at all?
Posted on 2001-06-28 23:29:00 by Larry Hammick
create a window with style WS_POPUP (not WS_OVERLAPPED), and no WS_BORDER of course. japheth
Posted on 2001-06-29 00:57:00 by japheth
You can also change the screen resolution with;

	mov dmScreenSettings.dmSize, sizeof dmScreenSettings
	mov dmScreenSettings.dmPelsWidth, 800
	mov dmScreenSettings.dmPelsHeight, 600
	mov dmScreenSettings.dmBitsPerPel, 16
	mov dmScreenSettings.dmFields, DM_BITSPERPEL or DM_PELSWIDTH or DM_PELSHEIGHT
	invoke ChangeDisplaySettings, ADDR dmScreenSettings, CDS_FULLSCREEN
Then you need the following properties for a fullcreen app

	invoke CreateWindowEx,WS_EX_APPWINDOW, ADDR ClassName, addr AppName,\
           CW_USEDEFAULT, 800, 600, NULL, NULL,\
           hInst, NULL   
To undone the changes you made to the resolution simply call the following at the end of your program

	invoke ChangeDisplaySettings, 0, 0
Oh yeah, I forgot three equates that aren't in the windows inc.

DM_BITSPERPEL       = 00040000h
DM_PELSWIDTH        = 00080000h
DM_PELSHEIGHT       = 00100000h
This message was edited by Zadkiel, on 6/29/2001 5:32:41 AM
Posted on 2001-06-29 05:30:00 by Zadkiel
Thanks guys. I'll try both.
Posted on 2001-06-29 13:05:00 by Larry Hammick