diff --git a/src/msw/progdlg.cpp b/src/msw/progdlg.cpp index f6df346553..43b897ff32 100644 --- a/src/msw/progdlg.cpp +++ b/src/msw/progdlg.cpp @@ -571,15 +571,16 @@ void wxProgressDialog::Resume() #endif // wxHAS_MSW_TASKDIALOG } -WXWidget wxProgressDialog::GetHandle() const -{ +WXWidget wxProgressDialog::GetHandle() const +{ #ifdef wxHAS_MSW_TASKDIALOG if ( HasNativeTaskDialog() ) { wxCriticalSectionLocker locker(m_sharedData->m_cs); return m_sharedData->m_hwnd; } -#endif +#endif // wxHAS_MSW_TASKDIALOG + return wxGenericProgressDialog::GetHandle(); }