|
#ifndef EDITBUTTONDLG_H_INCLUDED
#define EDITBUTTONDLG_H_INCLUDED
/////////////////////////////////////////////////////////////////////////////
class CEditButtonDlg : public CDialogImpl<CEditButtonDlg>,
public CWinDataExchange<CEditButtonDlg>
{
public:
enum { IDD = IDD_EDIT_BUTTON };
// Construction
CEditButtonDlg();
~CEditButtonDlg();
// Maps
BEGIN_MSG_MAP(CEditButtonDlg)
MSG_WM_INITDIALOG(OnInitDialog)
COMMAND_ID_HANDLER_EX(IDOK, OnOK)
COMMAND_ID_HANDLER_EX(IDCANCEL, OnCancel)
END_MSG_MAP()
BEGIN_DDX_MAP(CEditButtonDlg)
DDX_INT_RANGE(IDC_BTN_ID, m_id, 1, 65535);
DDX_TEXT(IDC_BTN_TEXT_LINE1, m_sMainText)
DDX_TEXT(IDC_BTN_TEXT_LINE2, m_sLine2Text)
DDX_CHECK(IDC_UAC_SHIELD, m_bShowShield)
END_DDX_MAP()
// Message handlers
BOOL OnInitDialog ( HWND hwndFocus, LPARAM lParam );
void OnOK ( UINT uCode, int nID, HWND hwndCtrl );
void OnCancel ( UINT uCode, int nID, HWND hwndCtrl );
// Other methods
void OnDataValidateError ( UINT nCtrlID, BOOL bSave, _XData& data );
// DDX data
int m_id;
CString m_sMainText, m_sLine2Text;
bool m_bShowShield;
};
#endif // ndef EDITBUTTONDLG_H_INCLUDED
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here
Michael lives in sunny Mountain View, California. He started programming with an Apple
//e in 4th grade, graduated from
UCLA with a math degree in 1994, and immediately landed a job as a QA engineer at Symantec, working on the Norton AntiVirus team. He pretty much taught himself Windows and MFC programming, and in 1999 he designed and coded a new interface for Norton AntiVirus 2000.
Mike has been a a developer at
Napster and at his own lil' startup, Zabersoft, a development company he co-founded with offices in Los Angeles and Odense, Denmark. Mike is now a senior engineer at
VMware.
He also enjoys his hobbies of playing pinball, bike riding, photography, and Domion on Friday nights (current favorite combo: Village + double Pirate Ship). He would get his own snooker table too if they weren't so darn big! He is also sad that he's forgotten the languages he's studied: French, Mandarin Chinese, and Japanese.
Mike was a
VC MVP from 2005 to 2009.