mirror of
https://github.com/etlegacy/Update-Installer.git
synced 2025-02-15 08:00:52 +00:00
30 lines
461 B
C++
30 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);
|
||
|
}
|