Is there any kosher way for an app to run "full-screen", with no border at all?
create a window with style WS_POPUP (not WS_OVERLAPPED), and no WS_BORDER of course. japheth
You can also change the screen resolution with;
Then you need the following properties for a fullcreen app
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
To undone the changes you made to the resolution simply call the following at the end of your program
invoke CreateWindowEx,WS_EX_APPWINDOW, ADDR ClassName, addr AppName,\ WS_POPUP or WS_CLIPSIBLINGS or WS_CLIPCHILDREN, CW_USEDEFAULT,\ CW_USEDEFAULT, 800, 600, NULL, NULL,\ hInst, NULL
Oh yeah, I forgot three equates that aren't in the windows inc.
invoke ChangeDisplaySettings, 0, 0
This message was edited by Zadkiel, on 6/29/2001 5:32:41 AM
DM_BITSPERPEL = 00040000h DM_PELSWIDTH = 00080000h DM_PELSHEIGHT = 00100000h
Thanks guys. I'll try both.