git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13725
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
//
wxASSERT_MSG(!m_pWindowDisabler, _T("disabling windows twice?"));
//
wxASSERT_MSG(!m_pWindowDisabler, _T("disabling windows twice?"));
- m_pWindowDisabler = new wxWindowDisabler(this);
+ //
+ // Disables other app windows and window proc message processing
+ // until WinDismissDlg called
+ //
+ ::WinProcessDlg((HWND)GetHwnd());
//
// Enter the modal loop
//
// Enter the modal loop
//
// If we had disabled other app windows, reenable them back now because
// if they stay disabled Windows will activate another window (one
//
// If we had disabled other app windows, reenable them back now because
// if they stay disabled Windows will activate another window (one
- // which is enabled, anyhow) and we will lose activation
+ // which is enabled, anyhow) and we will lose activation. We really don't
+ // do this in OS/2 since PM does this for us.
//
if (m_pWindowDisabler)
{
//
if (m_pWindowDisabler)
{
{
SetReturnCode(nRetCode);
Show(FALSE);
{
SetReturnCode(nRetCode);
Show(FALSE);
+ ::WinDismissDlg((HWND)GetHwnd(), nRetCode);
} // end of wxDialog::EndModal
// ----------------------------------------------------------------------------
} // end of wxDialog::EndModal
// ----------------------------------------------------------------------------
if (IsKindOf(CLASSINFO(wxDialog)))
{
PSWP pSwp = (PSWP)PVOIDFROMMP(wParam);
if (IsKindOf(CLASSINFO(wxDialog)))
{
PSWP pSwp = (PSWP)PVOIDFROMMP(wParam);
- bProcessed = HandleSize( pSwp->cx
- ,pSwp->cy
- ,(WXUINT)lParam
- );
+ if (!(pSwp->cx == pSwp2->cx &&
+ pSwp->cy == pSwp2->cy))
+ bProcessed = HandleSize( pSwp->cx
+ ,pSwp->cy
+ ,(WXUINT)lParam
+ );