Ignore:
Timestamp:
Jan 26, 2000, 7:04:30 PM (26 years ago)
Author:
cbratschi
Message:

added API logging, removed progress frame

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/comctl32/comctl32.c

    r1730 r2523  
    1 /* $Id: comctl32.c,v 1.11 1999-11-14 10:58:37 achimha Exp $ */
     1/* $Id: comctl32.c,v 1.12 2000-01-26 18:04:29 cbratschi Exp $ */
    22/*
    33 * Win32 common controls implementation
     
    135135    UINT uMenuID = 0;
    136136
     137    dprintf(("COMCTL32: MenuHelp"));
     138
    137139    if (!IsWindow (hwndStatus))
    138140        return;
     
    170172
    171173        case WM_COMMAND :
    172 //          TRACE("WM_COMMAND wParam=0x%X lParam=0x%lX\n",
    173 //                 wParam, lParam);
    174             /* WM_COMMAND is not invalid since it is documented
    175              * in the windows api reference. So don't output
     174//          TRACE("WM_COMMAND wParam=0x%X lParam=0x%lX\n",
     175//                 wParam, lParam);
     176            /* WM_COMMAND is not invalid since it is documented
     177             * in the windows api reference. So don't output
    176178             * any FIXME for WM_COMMAND
    177179             */
    178 //          WARN("We don't care about the WM_COMMAND\n");
    179             break;
     180//          WARN("We don't care about the WM_COMMAND\n");
     181            break;
    180182
    181183        default:
     
    222224//    TRACE (commctrl, "%x, %x, %p\n", hwnd, uFlags, lpInfo);
    223225
     226    dprintf(("COMCTL32: ShowHideMenuCtl"));
     227
    224228    if (lpInfo == NULL)
    225229        return FALSE;
     
    283287//    TRACE (commctrl, "(0x%08lx 0x%08lx 0x%08lx)\n",
    284288//         (DWORD)hwnd, (DWORD)lpRect, (DWORD)lpInfo);
     289
     290    dprintf(("COMCTL32: GetEffectiveClientRect"));
    285291
    286292    GetClientRect (hwnd, lpRect);
     
    328334    UINT border = BDR_SUNKENOUTER;
    329335
     336    dprintf(("COMCTL32: DrawStatusTextA"));
     337
    330338    if (style & SBT_POPOUT)
    331339      border = BDR_RAISEDOUTER;
     
    366374{
    367375    LPSTR p = HEAP_strdupWtoA (GetProcessHeap (), 0, text);
     376
     377    dprintf(("COMCTL32: DrawStatusTextW"));
     378
    368379    DrawStatusTextA (hdc, lprc, p, style);
    369380    HeapFree (GetProcessHeap (), 0, p );
     
    390401CreateStatusWindowA (INT style, LPCSTR text, HWND parent, UINT wid)
    391402{
     403    dprintf(("COMCTL32: CreateStatusWindowA"));
     404
    392405    return CreateWindowA(STATUSCLASSNAMEA, text, style,
    393406                           CW_USEDEFAULT, CW_USEDEFAULT,
     
    414427CreateStatusWindowW (INT style, LPCWSTR text, HWND parent, UINT wid)
    415428{
     429    dprintf(("COMCTL32: CreateStatusWindowW"));
     430
    416431    return CreateWindowW(STATUSCLASSNAMEW, text, style,
    417432                           CW_USEDEFAULT, CW_USEDEFAULT,
     
    448463                     HWND buddy, INT maxVal, INT minVal, INT curVal)
    449464{
    450     HWND hUD =
    451         CreateWindowA (UPDOWN_CLASSA, 0, style, x, y, cx, cy,
     465    HWND hUD;
     466
     467    dprintf(("COMCTL32: CreateUpDownControl"));
     468
     469    hUD = CreateWindowA (UPDOWN_CLASSA, 0, style, x, y, cx, cy,
    452470                         parent, id, inst, 0);
    453471    if (hUD) {
     
    479497VOID WINAPI InitCommonControls(VOID)
    480498{
     499  dprintf(("COMCTL32: InitCommonControls"));
    481500}
    482501
     
    503522    INT cCount;
    504523    DWORD dwMask;
     524
     525    dprintf(("COMCTL32: InitCommonControlsEx"));
    505526
    506527    if (!lpInitCtrls)
     
    592613                 INT dxBitmap, INT dyBitmap, UINT uStructSize)
    593614{
    594     HWND hwndTB =
    595         CreateWindowExA (0, TOOLBARCLASSNAMEA, "", style, 0, 0, 0, 0,
    596                            hwnd, (HMENU)wID, 0, NULL);
     615    HWND hwndTB;
     616
     617    dprintf(("COMCTL32: CreateToolbarEx"));
     618
     619    hwndTB = CreateWindowExA (0, TOOLBARCLASSNAMEA, "", style, 0, 0, 0, 0,
     620                              hwnd, (HMENU)wID, 0, NULL);
    597621    if(hwndTB) {
    598622        TBADDBITMAP tbab;
     
    603627        /* set bitmap and button size */
    604628        /*If CreateToolbarEx receive 0, windows set default values*/
    605         if (dyBitmap < 0)
     629        if (dyBitmap <= 0)
    606630            dyBitmap = 16;
    607         if (dxBitmap < 0)
     631        if (dxBitmap <= 0)
    608632            dxBitmap = 16;
    609633
     
    665689        {{0x000000, 0}, {0x808080, 0}, {0xC0C0C0, 0}, {0xFFFFFF, 0}};
    666690
     691    dprintf(("COMCTL32: CreateMappedBitmap"));
     692
    667693    /* initialize pointer to colortable and default color table */
    668694    if (lpColorMap) {
     
    703729                       pColorTable[iColor].rgbGreen,
    704730                       pColorTable[iColor].rgbBlue);
    705             if ( cRef  == sysColorMap[i].from) {
     731            if ( cRef  == sysColorMap[i].from) {
    706732#if 0
    707733                if (wFlags & CBS_MASKED) {
     
    767793               LPCOLDTBBUTTON lpButtons,INT iNumButtons)
    768794{
     795    dprintf(("COMCTL32: CreateToolbar"));
     796
    769797    return CreateToolbarEx (hwnd, style | CCS_NODIVIDER, wID, nBitmaps,
    770798                            hBMInst, wBMID, (LPCTBBUTTON)lpButtons,
Note: See TracChangeset for help on using the changeset viewer.