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

📄 cwizardpage.hpp

📁 bt848,bt878 a采集卡的探测
💻 HPP
字号:
// A Wizard page
#ifndef _CWIZARDPAGE_HPP
#define _CWIZARDPAGE_HPP

#include "CWnd.hpp"

class CWizard;

class CWizardPage : public CWnd {
	friend CWizard;

protected:
	LPCSTR resource;				// Resource of the page

public:

	CWizardPage(LPCSTR res) : resource(res) {}

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

	// Wizard Messages
	virtual INT OnKillActive();
	virtual INT OnReset();
	virtual INT OnSetActive();
	virtual INT OnWizBack();
	virtual INT OnWizNext(); 
	virtual INT OnWizFinish();

	// Useful Fns.
	void SetWizButtons(DWORD buttons) { GetParent().PostMessage(PSM_SETWIZBUTTONS ,(WPARAM)0,(LPARAM) buttons); }
	void SetNextPage(LPCSTR Page) { SetLong(DWL_MSGRESULT,(LONG) Page); }
	void SetResult(BOOL Res) { SetLong(DWL_MSGRESULT, Res); }
	void SetFinishText(LPTSTR text) { SendMessage(PSM_SETFINISHTEXT,(WPARAM)0,(LPARAM)text); }

	LPCSTR GetRES() const { return resource; }

protected:
	virtual INT Proc(
		UINT message,             // type of message                 
		WPARAM wParam,            // additional information          
		LPARAM lParam);	          // additional information          

	
};

#endif

⌨️ 快捷键说明

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