Can you make a Borderless Application Main Window in Windows, without WS_POPUP style?

The following gets the job done:

hWnd = CreateWindow(...);
SetWindowLong(hWnd, GWL_STYLE, WS_POPUP | WS_MINIMIZEBOX);
SetWindowLong(hWnd, GWL_EXSTYLE, 0);
ShowWindow(hWnd, ...);

You were probably missing WS_MINIMIZEBOX.

Leave a Comment