Changeset 839 for trunk/src


Ignore:
Timestamp:
Sep 5, 1999, 7:11:25 PM (26 years ago)
Author:
sandervl
Message:

Dialog update

Location:
trunk/src/user32/new
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/new/pmwindow.cpp

    r822 r839  
    1 /* $Id: pmwindow.cpp,v 1.28 1999-09-04 19:51:46 sandervl Exp $ */
     1/* $Id: pmwindow.cpp,v 1.29 1999-09-05 17:11:24 sandervl Exp $ */
    22/*
    33 * Win32 Window Managment Code for OS/2
     
    526526
    527527        if(!(fl & KC_CHAR)) {
    528             dprintf(("WM_CHAR: no valid character code"));
     528//            dprintf(("WM_CHAR: no valid character code"));
    529529            goto RunDefWndProc;
    530530        }
  • trunk/src/user32/new/user32.cpp

    r821 r839  
    1 /* $Id: user32.cpp,v 1.18 1999-09-04 19:42:28 sandervl Exp $ */
     1/* $Id: user32.cpp,v 1.19 1999-09-05 17:11:24 sandervl Exp $ */
    22
    33/*
     
    174174BOOL WIN32API IsRectEmpty( const RECT * lprc)
    175175{
    176 #ifdef DEBUG
    177     WriteLog("USER32:  IsRectEmpty\n");
    178 #endif
    179176    if (!lprc)
    180177    {
     
    244241BOOL WIN32API SetRectEmpty( PRECT lprc)
    245242{
    246 #ifdef DEBUG
    247     WriteLog("USER32:  SetRectEmpty\n");
    248 #endif
    249243    if (!lprc)
    250244    {
  • trunk/src/user32/new/win32dlg.cpp

    r835 r839  
    1 /* $Id: win32dlg.cpp,v 1.5 1999-09-05 15:53:09 sandervl Exp $ */
     1/* $Id: win32dlg.cpp,v 1.6 1999-09-05 17:11:25 sandervl Exp $ */
    22/*
    33 * Win32 Dialog Code for OS/2
     
    190190
    191191    /* Create controls */
     192    //testesteest
    192193    if (createControls(dlgTemplate, hInst))
    193194    {
    194195        /* Send initialisation messages and set focus */
    195196        hwndFocus = GetNextDlgTabItem( getWindowHandle(), 0, FALSE );
    196 
    197         if (::SendMessageA(hwndFocus, WM_INITDIALOG, (WPARAM)hwndFocus, param ))
    198             SetFocus( hwndFocus );
    199 
    200197        if (dlgInfo.style & WS_VISIBLE && !(getStyle() & WS_VISIBLE))
    201198        {
     
    241238        ShowWindow( SW_SHOW );
    242239
    243         while (OSLibWinPeekMsg(&msg, getOS2FrameWindowHandle(), topOwner->getOS2FrameWindowHandle(),
    244                                0, 0, MSG_REMOVE))
     240        while (TRUE) {
    245241//        while (OSLibWinPeekMsg(&msg, getWindowHandle(), owner, MSGF_DIALOGBOX,
    246242//                                       MSG_REMOVE, !(getStyle() & DS_NOIDLEMSG), NULL ))
    247         {
    248             if (!IsDialogMessageA( getWindowHandle(), &msg))
     243//            if(OSLibWinPeekMsg(&msg, topOwner->getOS2FrameWindowHandle(), 0, 0, MSG_REMOVE))
     244            if(OSLibWinPeekMsg(&msg, 0, 0, 0, MSG_REMOVE))
    249245            {
    250                 TranslateMessage( &msg );
    251                 DispatchMessageA( &msg );
     246                if(msg.message == WM_QUIT) {
     247                    dprintf(("Win32Dialog::doDialogBox: received  WM_QUIT"));
     248                    break;
     249                }
     250                if (!IsDialogMessageA( getWindowHandle(), &msg))
     251                {
     252                    TranslateMessage( &msg );
     253                    DispatchMessageA( &msg );
     254                }
     255                if (dialogFlags & DF_END) break;
    252256            }
    253             if (dialogFlags & DF_END) break;
     257            else {
     258                if(!(getStyle() & DS_NOIDLEMSG)) {
     259                    topOwner->SendMessageA(WM_ENTERIDLE, MSGF_DIALOGBOX, getWindowHandle());
     260                }
     261            }
    254262        }
    255263        topOwner->EnableWindow( TRUE );
     
    923931BOOL Win32Dialog::endDialog(int retval)
    924932{
     933    dialogFlags |= DF_END;
     934    idResult = retval;
    925935    return TRUE;
    926936}
Note: See TracChangeset for help on using the changeset viewer.