Update-Installer/external/win32cpp/WCE samples/Dialog/MyDialog.cpp
Robert Knight d16da069e9 Add Win++ library to external
This is a thin wrapper around the Win32 API used in the Win32
Updater Dialog implementation.
2011-08-23 19:54:52 +01:00

49 lines
759 B
C++

#include "MyDialog.h"
#include "resource.h"
CMyDialog::CMyDialog(UINT nResID, CWnd* pParent)
: CDialog(nResID, pParent)
{
}
CMyDialog::~CMyDialog()
{
}
BOOL CMyDialog::OnInitDialog()
{
// This function is called before the dialog is displayed.
//Set the Icon
SetIconLarge(IDW_MAIN);
SetIconSmall(IDW_MAIN);
return true;
}
void CMyDialog::OnOK()
{
::MessageBox(NULL, TEXT("DONE Button Pressed. Program will exit now."), TEXT("Button"), MB_OK);
CDialog::OnOK();
}
INT_PTR CMyDialog::DialogProc(UINT uMsg, WPARAM wParam, LPARAM lParam)
{
// Add any messages to be handled inside the switch statement
// switch (uMsg)
// {
//
// } // switch(uMsg)
return DialogProcDefault(uMsg, wParam, lParam);
} // INT_PTR CALLBACK DialogProc(...)