diff options
author | George Hazan <ghazan@miranda.im> | 2018-03-06 16:17:32 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-03-06 16:17:32 +0300 |
commit | 7071e88fdeeaa146c8e72894c6eae58f438f2690 (patch) | |
tree | 5befaa1f5dc66da5b1b907eb9894880b28f8b2ac /src/mir_core | |
parent | 909c090503ce1021a69e7793c550b857ef025e77 (diff) |
PSN_WIZFINISH: new WM_NOTIFY event to be called when one of the options tabs is changed
Diffstat (limited to 'src/mir_core')
-rw-r--r-- | src/mir_core/src/CCtrlHyperlink.cpp | 2 | ||||
-rw-r--r-- | src/mir_core/src/CDlgBase.cpp | 13 |
2 files changed, 11 insertions, 4 deletions
diff --git a/src/mir_core/src/CCtrlHyperlink.cpp b/src/mir_core/src/CCtrlHyperlink.cpp index fb0ab7f7ae..4b0499479d 100644 --- a/src/mir_core/src/CCtrlHyperlink.cpp +++ b/src/mir_core/src/CCtrlHyperlink.cpp @@ -32,7 +32,7 @@ CCtrlHyperlink::CCtrlHyperlink(CDlgBase* wnd, int idCtrl, const char* url) OnClick = Callback(this, &CCtrlHyperlink::Default_OnClick); } -BOOL CCtrlHyperlink::OnCommand(HWND, WORD, WORD idCode) +BOOL CCtrlHyperlink::OnCommand(HWND, WORD, WORD) { OnClick(this); return FALSE; diff --git a/src/mir_core/src/CDlgBase.cpp b/src/mir_core/src/CDlgBase.cpp index dc938f1fc4..3fb76249bc 100644 --- a/src/mir_core/src/CDlgBase.cpp +++ b/src/mir_core/src/CDlgBase.cpp @@ -247,7 +247,8 @@ INT_PTR CDlgBase::DlgProc(UINT msg, WPARAM wParam, LPARAM lParam) int idCtrl = wParam; NMHDR *pnmh = (NMHDR *)lParam; if (pnmh->idFrom == 0) { - if (pnmh->code == PSN_APPLY) { + switch (pnmh->code) { + case PSN_APPLY: if (LPPSHNOTIFY(lParam)->lParam != 3) // IDC_APPLY m_bExiting = true; @@ -255,10 +256,16 @@ INT_PTR CDlgBase::DlgProc(UINT msg, WPARAM wParam, LPARAM lParam) NotifyControls(&CCtrlBase::OnApply); if (m_lresult) OnApply(); - } - else if (pnmh->code == PSN_RESET) { + break; + + case PSN_RESET: NotifyControls(&CCtrlBase::OnReset); OnReset(); + break; + + case PSN_WIZFINISH: + m_OnFinishWizard(this); + break; } } |