X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a1bdd4ab9bb8cdcf8a14b8a64a5f5508be48ba4c..12bb29f5432174ecbd65549bda832d70d34a98ae:/src/msw/richmsgdlg.cpp diff --git a/src/msw/richmsgdlg.cpp b/src/msw/richmsgdlg.cpp index c329f503d1..58bb7cf68d 100644 --- a/src/msw/richmsgdlg.cpp +++ b/src/msw/richmsgdlg.cpp @@ -18,6 +18,11 @@ #if wxUSE_RICHMSGDLG #include "wx/richmsgdlg.h" +#include "wx/modalhook.h" + +#ifndef WX_PRECOMP + #include "wx/msw/private.h" +#endif // This will define wxHAS_MSW_TASKDIALOG if we have support for it in the // headers we use. @@ -29,6 +34,8 @@ int wxRichMessageDialog::ShowModal() { + WX_HOOK_MODAL_DIALOG(); + #ifdef wxHAS_MSW_TASKDIALOG using namespace wxMSWMessageDialog; @@ -43,14 +50,14 @@ int wxRichMessageDialog::ShowModal() // add a checkbox if ( !m_checkBoxText.empty() ) { - tdc.pszVerificationText = m_checkBoxText.wx_str(); + tdc.pszVerificationText = m_checkBoxText.t_str(); if ( m_checkBoxValue ) tdc.dwFlags |= TDF_VERIFICATION_FLAG_CHECKED; } // add collapsible footer if ( !m_detailedText.empty() ) - tdc.pszExpandedInformation = m_detailedText.wx_str(); + tdc.pszExpandedInformation = m_detailedText.t_str(); TaskDialogIndirect_t taskDialogIndirect = GetTaskDialogIndirectFunc(); if ( !taskDialogIndirect )