X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d2bc87252ae509ad755ee1d631ab994bcdb6c5be..30a7e91fb03558a4ffb6c5c6206ea25e53905e22:/src/msw/richmsgdlg.cpp diff --git a/src/msw/richmsgdlg.cpp b/src/msw/richmsgdlg.cpp index fe0bb4940d..11ca12e0a2 100644 --- a/src/msw/richmsgdlg.cpp +++ b/src/msw/richmsgdlg.cpp @@ -3,7 +3,6 @@ // Purpose: wxRichMessageDialog // Author: Rickard Westerlund // Created: 2010-07-04 -// RCS-ID: $Id$ // Copyright: (c) 2010 wxWidgets team // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -18,6 +17,7 @@ #if wxUSE_RICHMSGDLG #include "wx/richmsgdlg.h" +#include "wx/modalhook.h" #ifndef WX_PRECOMP #include "wx/msw/private.h" @@ -33,6 +33,8 @@ int wxRichMessageDialog::ShowModal() { + WX_HOOK_MODAL_DIALOG(); + #ifdef wxHAS_MSW_TASKDIALOG using namespace wxMSWMessageDialog; @@ -47,14 +49,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 )