📄 zwin.h
字号:
#ifndef ZWIN_H_HEADER_INCLUDED_C005D717
#define ZWIN_H_HEADER_INCLUDED_C005D717
#include <windows.h>
class zWin
{
public:
HWND m_hWnd;
HINSTANCE m_hInst;
public:
zWin();
virtual ~zWin();
static LRESULT CALLBACK WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
virtual WPARAM MessageLoop();
virtual void GetWndClassEx(WNDCLASS &wc);
BOOL RegisterClass(LPCTSTR lpszClass, HINSTANCE hInst);
BOOL ShowWindow(int nCmdShow) ;
BOOL UpdateWindow() ;
virtual bool CreateEx(DWORD dwExStyle, LPCTSTR lpszClass, LPCTSTR lpszName, DWORD dwStyle, int x, int y, int nWidth, int nHeight, HWND hParent, HMENU hMenu, HINSTANCE hInst);
virtual bool CreateWin(HINSTANCE hInstance, int TemplateId, HWND hWndParent);
virtual void OnCreate();
virtual void OnDestory();
virtual LRESULT WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
virtual void OnDraw(HDC hDC);
};
#endif /* ZWIN_H_HEADER_INCLUDED_C005D717 */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -