26 lines
541 B
C++
26 lines
541 B
C++
#include "Updater_MainDialog.h"
|
|
|
|
LRESULT CMainDialog::OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
|
|
{
|
|
CenterWindow(GetParent());
|
|
return TRUE;
|
|
}
|
|
|
|
LRESULT CMainDialog::OnOK(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/)
|
|
{
|
|
CloseDialog(wID);
|
|
return 0;
|
|
}
|
|
|
|
LRESULT CMainDialog::OnCancel(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/)
|
|
{
|
|
CloseDialog(wID);
|
|
return 0;
|
|
}
|
|
|
|
void CMainDialog::CloseDialog(int nVal)
|
|
{
|
|
DestroyWindow();
|
|
::PostQuitMessage(nVal);
|
|
}
|