Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "KWnd.h"
- LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);
- int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lCmdLine, int nCmdShow) {
- MSG msg;
- KWnd Window("Hello, World", hInstance, nCmdShow, WndProc);
- while (GetMessage(&msg, NULL, 0, 0)) {
- TranslateMessage(&msg);
- DispatchMessage(&msg);
- }
- return msg.wParam;
- }
- LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) {
- return DefWindowProc(hWnd, uMsg, wParam, lParam);
- }
Add Comment
Please, Sign In to add comment