Skip to content

Instantly share code, notes, and snippets.

@justnom
Created August 5, 2013 15:05
Show Gist options
  • Save justnom/6156621 to your computer and use it in GitHub Desktop.
Save justnom/6156621 to your computer and use it in GitHub Desktop.
Create a window in Windows that only has a border.
HWND hWnd = CreateWindow(szWindowClass, szTitle, WS_BORDER, 0, 0, 500, 100, NULL, NULL, hInstance, NULL);
SetWindowLong(hWnd, GWL_STYLE, WS_BORDER | WS_THICKFRAME);
SetWindowPos(hWnd, 0, 0, 0, 100, 50, SWP_FRAMECHANGED);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment