Changeset 2739 for trunk/src


Ignore:
Timestamp:
Feb 10, 2000, 7:49:53 PM (26 years ago)
Author:
cbratschi
Message:

menu and titlebar fix, some new stubs

Location:
trunk/src/user32
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/USER32.DEF

    r2628 r2739  
    1 ; $Id: USER32.DEF,v 1.26 2000-02-03 23:04:50 sandervl Exp $
     1; $Id: USER32.DEF,v 1.27 2000-02-10 18:49:50 cbratschi Exp $
    22
    33;Created by BLAST for IBM's compiler
     
    2323
    2424EXPORTS
    25     ActivateKeyboardLayout     = _ActivateKeyboardLayout@8    @1
    26     AdjustWindowRect           = _AdjustWindowRect@12         @2
    27     AdjustWindowRectEx         = _AdjustWindowRectEx@16       @3
    28     AnyPopup                   = _AnyPopup@0                  @4
    29     AppendMenuA                = _AppendMenuA@16              @5
    30     AppendMenuW                = _AppendMenuW@16              @6
    31     ArrangeIconicWindows       = _ArrangeIconicWindows@4      @7
    32     AttachThreadInput          = _AttachThreadInput@12        @8
    33     BeginDeferWindowPos        = _BeginDeferWindowPos@4       @9
    34     BeginPaint                 = _BeginPaint@8                @10
    35     BringWindowToTop           = _BringWindowToTop@4          @11
    36     BroadcastSystemMessage     = _BroadcastSystemMessage@20   @12
    37 ;    CalcChildScroll            = _CalcChildScroll@??         @13
     25    ActivateKeyboardLayout     = _ActivateKeyboardLayout@8   @1
     26    AdjustWindowRect           = _AdjustWindowRect@12        @2
     27    AdjustWindowRectEx         = _AdjustWindowRectEx@16      @3
     28    AnyPopup                   = _AnyPopup@0                 @4
     29    AppendMenuA                = _AppendMenuA@16             @5
     30    AppendMenuW                = _AppendMenuW@16             @6
     31    ArrangeIconicWindows       = _ArrangeIconicWindows@4     @7
     32    AttachThreadInput          = _AttachThreadInput@12       @8
     33    BeginDeferWindowPos        = _BeginDeferWindowPos@4      @9
     34    BeginPaint                 = _BeginPaint@8               @10
     35    BringWindowToTop           = _BringWindowToTop@4         @11
     36    BroadcastSystemMessage     = _BroadcastSystemMessage@20  @12
     37    CalcChildScroll            = _CalcChildScroll@8          @13
    3838    CallMsgFilter              = _CallMsgFilterA@8           @14
    3939    CallMsgFilterA             = _CallMsgFilterA@8           @15
     
    6464    CharToOemBuffA             = _CharToOemBuffA@12          @40
    6565    CharToOemBuffW             = _CharToOemBuffW@12          @41
    66     CharToOemW                 = _CharToOemW@8              @42
    67     CharUpperA                 = _CharUpperA@4              @43
    68     CharUpperBuffA             = _CharUpperBuffA@8          @44
    69     CharUpperBuffW             = _CharUpperBuffW@8          @45
    70     CharUpperW                 = _CharUpperW@4              @46
     66    CharToOemW                 = _CharToOemW@8               @42
     67    CharUpperA                 = _CharUpperA@4               @43
     68    CharUpperBuffA             = _CharUpperBuffA@8           @44
     69    CharUpperBuffW             = _CharUpperBuffW@8           @45
     70    CharUpperW                 = _CharUpperW@4               @46
    7171    CheckDlgButton             = _CheckDlgButton@12          @47
    7272    CheckMenuItem              = _CheckMenuItem@12           @48
     
    7777;    ClientThreadConnect        = _ClientThreadConnect@??     @53
    7878    ClientToScreen             = _ClientToScreen@8           @54
    79     ClipCursor                 = _ClipCursor@4              @55
     79    ClipCursor                 = _ClipCursor@4               @55
    8080    CloseClipboard             = _CloseClipboard@0           @56
    8181    CloseDesktop               = _CloseDesktop@4             @57
     
    191191    DrawTextExW                = _DrawTextExW@24             @167
    192192    DrawTextW                  = _DrawTextW@20               @168
    193 ;    EditWndProc                = _EditWndProc@??             @169
     193    EditWndProc                = _EditWndProc@16             @169
    194194    EmptyClipboard             = _EmptyClipboard@0           @170
    195195    EnableMenuItem             = _EnableMenuItem@12          @171
     
    247247    GetClipboardOwner          = _GetClipboardOwner@0        @223
    248248    GetClipboardViewer         = _GetClipboardViewer@0       @224
    249     GetCursor                  = _GetCursor@0               @225
    250     GetCursorPos               = _GetCursorPos@4            @226
     249    GetCursor                  = _GetCursor@0                @225
     250    GetCursorPos               = _GetCursorPos@4             @226
    251251    GetDC                      = _GetDC@4                    @227
    252252    GetDCEx                    = _GetDCEx@12                 @228
     
    268268    GetKeyNameTextA            = _GetKeyNameTextA@12         @244
    269269    GetKeyNameTextW            = _GetKeyNameTextW@12         @245
    270     GetKeyState                = _GetKeyState@4             @246
     270    GetKeyState                = _GetKeyState@4              @246
    271271    GetKeyboardLayout          = _GetKeyboardLayout@4        @247
    272272    GetKeyboardLayoutList      = _GetKeyboardLayoutList@8    @248
     
    274274    GetKeyboardLayoutNameW     = _GetKeyboardLayoutNameW@4   @250
    275275    GetKeyboardState           = _GetKeyboardState@4         @251
    276     GetKeyboardType            = _GetKeyboardType@4           @252
     276    GetKeyboardType            = _GetKeyboardType@4          @252
    277277    GetLastActivePopup         = _GetLastActivePopup@4       @253
    278278    GetMenu                    = _GetMenu@4                  @254
     
    491491    SetClassWord               = _SetClassWord@12            @463
    492492    SetClipboardData           = _SetClipboardData@8         @464
    493     SetClipboardViewer         = _SetClipboardViewer@4      @465
     493    SetClipboardViewer         = _SetClipboardViewer@4       @465
    494494    SetCursor                  = _SetCursor@4                @466
    495495    SetCursorPos               = _SetCursorPos@8             @467
    496496    SetDebugErrorLevel         = _SetDebugErrorLevel@4       @468
    497 ;    SetDeskWallpaper           = _SetDeskWallpaper@??        @469
     497    SetDeskWallPaper           = _SetDeskWallPaper@4         @469
    498498;    SetDesktopBitmap           = _SetDesktopBitmap@??        @470
    499499    SetDlgItemInt              = _SetDlgItemInt@16           @471
     
    506506    SetKeyboardState           = _SetKeyboardState@4         @478
    507507    SetLastErrorEx             = _SetLastErrorEx@8           @479
    508 ;    SetLogonNotifyWindow       = _SetLogonNotifyWindow@??    @480
     508    SetLogonNotifyWindow       = _SetLogonNotifyWindow@8     @480
    509509    SetMenu                    = _SetMenu@8                  @481
    510510    SetMenuContextHelpId       = _SetMenuContextHelpId@8     @482
  • trunk/src/user32/menu.cpp

    r2611 r2739  
    1 /* $Id: menu.cpp,v 1.15 2000-02-03 17:13:00 cbratschi Exp $*/
     1/* $Id: menu.cpp,v 1.16 2000-02-10 18:49:50 cbratschi Exp $*/
    22/*
    33 * Menu functions
     
    10871087        ///          for everything except the 1st menu item
    10881088        RECT dummy = rect;
    1089         dummy.bottom = dummy.top+1;
    1090         dummy.right  = dummy.right+1;
     1089
    10911090        FillRect( hdc, &dummy, GetSysColorBrush(COLOR_HIGHLIGHT) );
    1092         FillRect( hdc, &rect, GetSysColorBrush(COLOR_MENU) );
     1091        FillRect( hdc, &rect, GetSysColorBrush(COLOR_MENU) ); //CB: back color switching bug?
    10931092    }
    10941093
     
    26632662            hmenu = MENU_PtMenu(mt.hTopMenu,pt,inMenuBar);
    26642663
    2665             //CB: todo: Win32 dispatches at least some mouse messages!
     2664            //CB: todo: solve conflicts with OS/2's single message queue architecture
    26662665
    26672666            switch(msg.message)
     
    27072706
    27082707                    fEndMenu |= !MENU_MouseMove( &mt, hmenu, wFlags );
    2709                     //CB: dispatch message
    2710                     if (!fEndMenu && !hmenu) DispatchMessageA(&msg);
    2711 
    27122708            } /* switch(msg.message) - mouse */
    27132709        }
  • trunk/src/user32/syscolor.cpp

    r2471 r2739  
    1 /* $Id: syscolor.cpp,v 1.16 2000-01-18 20:21:29 sandervl Exp $ */
     1/* $Id: syscolor.cpp,v 1.17 2000-02-10 18:49:51 cbratschi Exp $ */
    22
    33/*
     
    185185  }
    186186
    187   if (nIndex >= 0 && nIndex < NUM_SYS_COLORS)
     187  if ((nIndex >= 0) && (nIndex < NUM_SYS_COLORS))
    188188  {
    189189    if (USEWINCOLORS) return SysColors[nIndex];
     
    243243  }
    244244
    245   if (nIndex >= 0 && nIndex < NUM_SYS_COLORS) return SysColorBrushes[nIndex];
    246   else return(GetStockObject(LTGRAY_BRUSH));
    247 
     245  return ((nIndex >= 0) && (nIndex < NUM_SYS_COLORS)) ? SysColorBrushes[nIndex]:0;
    248246}
    249247/***********************************************************************
     
    260258    }
    261259
    262     if (index >= 0 && index < NUM_SYS_COLORS) return SysColorPens[index];
    263     else return 0;
     260    return ((index >= 0) && (index < NUM_SYS_COLORS)) ? SysColorPens[index]:0;
    264261}
    265262//******************************************************************************
  • trunk/src/user32/user32.cpp

    r2697 r2739  
    1 /* $Id: user32.cpp,v 1.70 2000-02-09 13:42:38 sandervl Exp $ */
     1/* $Id: user32.cpp,v 1.71 2000-02-10 18:49:51 cbratschi Exp $ */
    22
    33/*
     
    28082808    return TRUE;
    28092809}
    2810 
    2811 
     2810/***********************************************************************
     2811 *           SetLogonNotifyWindow   (USER32.486)
     2812 */
     2813DWORD WIN32API SetLogonNotifyWindow(HWINSTA hwinsta,HWND hwnd)
     2814{
     2815  dprintf(("USER32: SetLogonNotifyWindow - empty stub!"));
     2816
     2817  return 1;
     2818}
     2819
  • trunk/src/user32/win32wbasenonclient.cpp

    r2666 r2739  
    1 /* $Id: win32wbasenonclient.cpp,v 1.9 2000-02-05 19:45:19 cbratschi Exp $ */
     1/* $Id: win32wbasenonclient.cpp,v 1.10 2000-02-10 18:49:52 cbratschi Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2 (non-client methods)
     
    932932    SetBkMode(memDC, TRANSPARENT );
    933933    r.left += 2;
    934     DrawTextA(memDC, buffer, -1, &r,
    935              DT_SINGLELINE | DT_VCENTER | DT_NOPREFIX | DT_LEFT );
     934    DrawTextExA(memDC,buffer,-1,&r,DT_SINGLELINE | DT_VCENTER | DT_NOPREFIX | DT_LEFT | DT_END_ELLIPSIS,NULL);
    936935    DeleteObject (SelectObject (memDC, hOldFont));
    937936  }
  • trunk/src/user32/win32wdesktop.cpp

    r2469 r2739  
    1 /* $Id: win32wdesktop.cpp,v 1.10 2000-01-18 20:10:58 sandervl Exp $ */
     1/* $Id: win32wdesktop.cpp,v 1.11 2000-02-10 18:49:53 cbratschi Exp $ */
    22/*
    33 * Win32 Desktop Window for OS/2
     
    8989//******************************************************************************
    9090//******************************************************************************
     91BOOL WIN32API SetDeskWallPaper(LPCSTR filename)
     92{
     93  dprintf(("USER32: SetDeskWallPaper - empty stub!"));
     94
     95  return TRUE;
     96}
     97//******************************************************************************
     98//******************************************************************************
    9199BOOL DESKTOP_Register()
    92100{
Note: See TracChangeset for help on using the changeset viewer.