You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
692 B

  1. #include <windows.h>
  2. INT WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd)
  3. {
  4. /*ע�ᴰ��*/
  5. WNDCLASSEX wndclass;
  6. wndclass.cbClsExtra = 0;
  7. wndclass.cbSize = sizeof(WNDCLASSEX);
  8. wndclass.cbWndExtra = 0;
  9. wndclass.hbrBackground = NULL;
  10. wndclass.hCursor = LoadCursor(NULL, IDC_ARROW);
  11. wndclass.hIcon = NULL;
  12. wndclass.hIconSm = NULL;
  13. wndclass.hInstance = hInstance;
  14. wndclass.lpfnWndProc = NULL;
  15. wndclass.lpszClassName = L"GLWindow";
  16. wndclass.lpszMenuName = NULL;
  17. wndclass.style = CS_VREDRAW | CS_HREDRAW;
  18. ATOM atom = RegisterClassEx(&wndclass);
  19. if (!atom) {
  20. MessageBox(NULL, L"Register Fail", L"Error", MB_OK);
  21. return 0;
  22. }
  23. return 0;
  24. }