Skip to content

Instantly share code, notes, and snippets.

@mudream4869
Last active August 29, 2015 13:57
Show Gist options
  • Save mudream4869/9895588 to your computer and use it in GitHub Desktop.
Save mudream4869/9895588 to your computer and use it in GitHub Desktop.
fixed-win
glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB);
glutInitWindowSize(600,600);
glutInitWindowPosition(80,80);
int gMainHandle;
gMainHandle = glutCreateWindow("QAQ");
glutSetWindow(gMainHandle);
HWND hwnd = FindWindow(NULL,"QAQ");
if( hwnd )
{
LONG style;
style = GetWindowLong(hwnd,GWL_STYLE);
style &= ~WS_THICKFRAME;
SetWindowLong(hwnd,GWL_STYLE,style);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment