mirror of
https://github.com/etlegacy/Update-Installer.git
synced 2025-02-15 08:00:52 +00:00
This is a thin wrapper around the Win32 API used in the Win32 Updater Dialog implementation.
49 lines
759 B
C++
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(...)
|
|
|
|
|