initial commit
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
#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);
|
||||
}
|
||||
Reference in New Issue
Block a user