mirror of
https://github.com/etlegacy/Update-Installer.git
synced 2025-02-13 07:01:32 +00:00
This is a thin wrapper around the Win32 API used in the Win32 Updater Dialog implementation.
29 lines
461 B
C++
29 lines
461 B
C++
//////////////////////////////
|
|
// MainWin.Cpp
|
|
|
|
#include "MainWin.h"
|
|
|
|
|
|
CMainWin::CMainWin()
|
|
{
|
|
::InitCommonControls();
|
|
}
|
|
|
|
void CMainWin::OnCreate()
|
|
{
|
|
m_Button.Create(this);
|
|
}
|
|
|
|
LRESULT CMainWin::WndProc(UINT uMsg, WPARAM wParam, LPARAM lParam)
|
|
{
|
|
switch (uMsg)
|
|
{
|
|
case WM_DESTROY:
|
|
// Terminate the application.
|
|
::PostQuitMessage(0);
|
|
return 0L;
|
|
}
|
|
|
|
// Pass unhandled messages on for default processing
|
|
return WndProcDefault(uMsg, wParam, lParam);
|
|
}
|