Click to See Complete Forum and Search --> : Removing the caption border (FULL SCREEN)


Icyculyr
February 24th, 2008, 07:45 PM
I am wanting to go full screen, I have done this:
(HANDWRITTEN CODE, Syntax may be incorrect)

HWND hWnd = CreateWindowEx(NULL, szWindowClass, szWindowTitle, NULL, CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, NULL, NULL, hInstance, NULL);

if (!hWnd)
{
return FALSE;
}

ShowWindow(hWnd, SW_SHOWMAXIMIZED);
UpdateWindow(hWnd);

That gets the desired result, except the Caption Border (the blue bar up the top of all windows) is still there...

How can I remove that?

Cheers

STLDude
February 24th, 2008, 09:12 PM
I think you should only use WS_POPUP on dwStyle parameter.
Now if this is for DirectX then lookup IDirect3D9::CreateDevice function.

Icyculyr
February 24th, 2008, 09:16 PM
WS_POPUP did the job, thank you