Update-Installer/external/win32cpp/WCE samples/Subclass/MainWin.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

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);
}