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

📄 cdialogbox.hpp

📁 bt848,bt878 a采集卡的探测
💻 HPP
字号:
// Our dialog box class

#ifndef _CDIALOGBOX_HPP
#define _CDIALOGBOX_HPP

#include "CWnd.hpp"
#include "CPtrArray.hpp"

class CDialogBox : public CWnd {

protected:

	class Association {
		protected:
			HWND		hWnd;	// Handle
			CDialogBox* Ptr;	// Pointer to the object
		public:
			Association(HWND h,CDialogBox* p) : hWnd(h) , Ptr(p) {}
			HWND GetHWND() const { return hWnd; }
			CDialogBox* GetPtr() const { return Ptr; }
	};

	// List of associations
	static CPtrArray<Association,true> List;
	static CDialogBox* Current;

	LPCTSTR	resource;					// The resource of our dialog

public:

	// Constructor
	CDialogBox(LPCTSTR res) : resource(res) {}

	// Destructor
	~CDialogBox();

	// This will execute the Dialog in modal 
	bool Execute(
		HINSTANCE Instance,
		const CWnd& parent);

	// This will execute the Dialog in amodal 
	bool AmodalExecute(
		HINSTANCE Instance,
		const CWnd& parent);

	// Windows Messages
	virtual INT OnInitDialog();
	virtual INT OnCommand(WORD ControlID,WORD NotifyCode);
	virtual INT OnNotify(DWORD Code);
	virtual INT OnTimer(DWORD wParam);


	// Utility fns
	void End() { EndDialog(GetHWND(), TRUE); }

protected:
	static BOOL APIENTRY Proc(
			HWND hDlg,
			UINT message,
			UINT wParam,
			LONG lParam);


};

#endif

⌨️ 快捷键说明

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