⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 appframework.h

📁 Mouse Event API Programing
💻 H
字号:
#ifndef _APPFRAMEWORK_H_
#define _APPFRAMEWORK_H_

#ifdef APPFRAMEWORK_DLL_EXPORTS
#define APPFRAMEWORK_DLL_API __declspec(dllexport)
#else
#define APPFRAMEWORK_DLL_API __declspec(dllimport)
#endif

#include <windows.h>
#include <memory>
#include "MouseProc.h"

using namespace std;

class APPFRAMEWORK_DLL_API CAppFramework
	: public CMouseProc
{
protected:
	HINSTANCE m_hInst;
	HWND m_hWnd;
	WNDCLASS m_WndClass;
	LPSTR m_pClassName;

	int m_nPosX;
	int m_nPosY;
	int m_nWidth;
	int m_nHeight;

public:
	CAppFramework();
	virtual ~CAppFramework();

public:
	BOOL CreateWindows(HINSTANCE hInstance, LPSTR pClassName, int nWidth, int nHeight, int nCmdShow);
	int Run();

public:
	// MSG Proc
	static LRESULT CALLBACK WndProc(HWND hWnd, UINT iMessage, WPARAM wParam, LPARAM lParam);
	virtual LRESULT MSGProc(HWND hWnd, UINT nMsg, WPARAM wParam, LPARAM lParam);
	virtual HRESULT MouseProc(HWND hWnd, UINT nMsg, WPARAM wParam, LPARAM lParam);
};

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -