Opening a window that has no title bar with Win32 Opening a window that has no title bar with Win32 windows windows

Opening a window that has no title bar with Win32


hWnd = CreateWindow(szWindowClass, 0, (WS_BORDER ), 0, 0, WINDOW_WIDTH, WINDOW_HEIGHT, NULL, NULL, hInstance, NULL); SetWindowLong(hWnd, GWL_STYLE, 0); //remove all window styles, check MSDN for detailsShowWindow(hWnd, SW_SHOW); //display window


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);