Ignore:
Timestamp:
Dec 16, 1999, 1:11:49 AM (26 years ago)
Author:
sandervl
Message:

sendmessage + hook updates + misc fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/win32dlg.cpp

    r2033 r2084  
    1 /* $Id: win32dlg.cpp,v 1.36 1999-12-09 00:53:37 sandervl Exp $ */
     1/* $Id: win32dlg.cpp,v 1.37 1999-12-16 00:11:46 sandervl Exp $ */
    22/*
    33 * Win32 Dialog Code for OS/2
     
    217217
    218218    if (hUserFont)
    219         SendMessageA(WM_SETFONT, (WPARAM)hUserFont, 0 );
     219        SendInternalMessageA(WM_SETFONT, (WPARAM)hUserFont, 0 );
    220220
    221221    /* Create controls */
     
    226226        hwndFocus = GetNextDlgTabItem( getWindowHandle(), 0, FALSE );
    227227
    228         if (SendMessageA(WM_INITDIALOG, (WPARAM)hwndFocus, param))
     228        if (SendInternalMessageA(WM_INITDIALOG, (WPARAM)hwndFocus, param))
    229229             SetFocus(hwndFocus);
    230230
     
    262262    /* Owner must be a top-level window */
    263263    if(getOwner() == NULL) {
    264      topOwner = windowDesktop;
     264         topOwner = windowDesktop;
    265265    }
    266266    else topOwner = getOwner()->GetTopParent();
     
    295295          if (!OSLibWinPeekMsg(&msg,0,0,0,MSG_NOREMOVE))
    296296          {
    297             if(!(getStyle() & DS_NOIDLEMSG))
    298               topOwner->SendMessageA(WM_ENTERIDLE,MSGF_DIALOGBOX,getWindowHandle());
    299             OSLibWinGetMsg(&msg,0,0,0);
    300           } else OSLibWinPeekMsg(&msg,0,0,0,MSG_REMOVE);
     297                if(!(getStyle() & DS_NOIDLEMSG))
     298                    topOwner->SendMessageA(WM_ENTERIDLE,MSGF_DIALOGBOX,getWindowHandle());
     299                OSLibWinGetMsg(&msg,0,0,0);
     300          }
     301          else  OSLibWinPeekMsg(&msg,0,0,0,MSG_REMOVE);
    301302
    302303          if(msg.message == WM_QUIT)
    303304          {
    304             dprintf(("Win32Dialog::doDialogBox: received  WM_QUIT"));
    305             break;
     305                dprintf(("Win32Dialog::doDialogBox: received  WM_QUIT"));
     306                break;
    306307          }
    307308          if (!IsDialogMessageA( getWindowHandle(), &msg))
    308309          {
    309             TranslateMessage( &msg );
    310             DispatchMessageA( &msg );
     310                TranslateMessage( &msg );
     311                DispatchMessageA( &msg );
    311312          }
    312           if (dialogFlags & DF_END) break;
     313          if (dialogFlags & DF_END)
     314                break;
    313315        }
    314316#else
     
    332334            else {
    333335                if(!(getStyle() & DS_NOIDLEMSG)) {
    334                     topOwner->SendMessageA(WM_ENTERIDLE, MSGF_DIALOGBOX, getWindowHandle());
     336                    topOwner->SendInternalMessageA(WM_ENTERIDLE, MSGF_DIALOGBOX, getWindowHandle());
    335337                }
    336338            }
     
    10301032    {
    10311033    case DWL_DLGPROC:
    1032             oldval = (LONG)WINPROC_GetProc(Win32DlgProc, (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A);
     1034        oldval = (LONG)WINPROC_GetProc(Win32DlgProc, (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A);
    10331035        WINPROC_SetProc((HWINDOWPROC *)&Win32DlgProc, (WNDPROC)value, (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A, WIN_PROC_WINDOW);
    10341036        return oldval;
     
    10531055    {
    10541056    case DWL_DLGPROC:
    1055             return (ULONG)WINPROC_GetProc(Win32DlgProc, (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A);
     1057        return (ULONG)WINPROC_GetProc(Win32DlgProc, (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A);
    10561058    case DWL_MSGRESULT:
    10571059        return msgResult;
Note: See TracChangeset for help on using the changeset viewer.