18 lines
339 B
C++
18 lines
339 B
C++
#pragma once
|
|
#include <Windows.h>
|
|
|
|
class Window
|
|
{
|
|
public:
|
|
INT init(HINSTANCE hInstance, UINT width, UINT height);
|
|
BOOL run();
|
|
void deInit();
|
|
|
|
HWND getWindowHandle() const { return _hWnd; }
|
|
|
|
private:
|
|
HWND _hWnd = nullptr; // handle to window instance
|
|
};
|
|
|
|
LRESULT CALLBACK WindowProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam);
|