Opening a window that has no title bar with Win32
HWND hWnd ;hWnd = CreateWindow(szWindowClass, 0, (WS_BORDER ), 0, 0, 100, 100, NULL, NULL, Instance, NULL); SetWindowLong(hwnd, GWL_STYLE, WS_BORDER ); // With 1 point border//ORSetWindowLong(hwnd, GWL_STYLE, 0 ); // Without 1 point border = white rectangle SetWindowPos(hwnd, 0, 150, 100, 250, 250, SWP_FRAMECHANGED); if (!hWnd) return FALSE ;elseShowWindow(hwnd, SW_SHOW);
Omit the WS_BORDER
style:
See CreateWindow function:http://msdn.microsoft.com/en-us/library/ms632679%28v=vs.85%29.aspx
Window Styles:http://msdn.microsoft.com/en-us/library/ms632600%28v=vs.85%29.aspx