Advertisement
sp1d3o

Untitled

Mar 27th, 2021
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.60 KB | None | 0 0
  1. #ifndef UNICODE
  2. #define UNICODE
  3. #endif
  4. #include <windows.h>
  5.  
  6. int wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PWSTR lpCmdLine,
  7. int nCmdShow){
  8.  
  9.   const wchar_t name[] = L"Test";
  10.  
  11.   WNDCLASS wc = {};
  12.   //wc.lpfnWndProc = WindowProc;
  13.   wc.hInstance = hInstance;
  14.   wc.lpszClassName = name;
  15.  
  16.   RegisterClass(&wc);
  17.  
  18.   HWND hWnd = CreateWindowEx(
  19.     0,
  20.     name,
  21.     L"Window",
  22.     WS_BORDER,
  23.     CW_USEDEFAULT,
  24.     CW_USEDEFAULT,
  25.     1200,
  26.     720,
  27.     0,
  28.     0,
  29.     hInstance,
  30.     0);
  31.  
  32.   if(hWnd == NULL){
  33.     return 0;
  34.   }
  35.  
  36.   ShowWindow(hWnd, nCmdShow);
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement