Changeset 2205 for trunk/src


Ignore:
Timestamp:
Dec 26, 1999, 6:32:14 PM (26 years ago)
Author:
cbratschi
Message:

NC fixes

Location:
trunk/src/comctl32
Files:
5 edited

Legend:

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

    r1762 r2205  
    1 /* $Id: header.c,v 1.19 1999-11-17 17:06:22 cbratschi Exp $ */
     1/* $Id: header.c,v 1.20 1999-12-26 17:32:12 cbratschi Exp $ */
    22/*
    33 *  Header control
     
    10771077      infoPtr->uNumItem = 0;
    10781078
    1079       InvalidateRect(hwnd,NULL,FALSE);
     1079      InvalidateRect(hwnd,NULL,TRUE);
    10801080    } else
    10811081    {
     
    24952495
    24962496    ZeroMemory (&wndClass, sizeof(WNDCLASSA));
    2497     wndClass.style         = CS_GLOBALCLASS | CS_DBLCLKS;
     2497    wndClass.style         = CS_GLOBALCLASS | CS_DBLCLKS | CS_HREDRAW | CS_VREDRAW;
    24982498    wndClass.lpfnWndProc   = (WNDPROC)HEADER_WindowProc;
    24992499    wndClass.cbClsExtra    = 0;
  • trunk/src/comctl32/listview.c

    r2184 r2205  
    1 /*$Id: listview.c,v 1.19 1999-12-21 17:01:36 cbratschi Exp $*/
     1/*$Id: listview.c,v 1.20 1999-12-26 17:32:12 cbratschi Exp $*/
    22/*
    33 * Listview control
     
    16501650          }
    16511651
    1652           InvalidateRect(hwnd, NULL, FALSE);
     1652          InvalidateRect(hwnd, NULL, TRUE);
    16531653        }
    16541654      }
     
    16981698          }
    16991699
    1700           InvalidateRect(hwnd, NULL, FALSE);
     1700          InvalidateRect(hwnd, NULL, TRUE);
    17011701        }
    17021702      }
     
    25742574
    25752575    /* invalidate client area (optimization needed) */
    2576     InvalidateRect(hwnd, NULL, FALSE);
     2576    InvalidateRect(hwnd, NULL, TRUE);
    25772577  }
    25782578
     
    26122612
    26132613      /* refresh client area */
    2614       InvalidateRect(hwnd, NULL, FALSE);
     2614      InvalidateRect(hwnd, NULL, TRUE);
    26152615    }
    26162616  }
     
    27232723
    27242724    /* refresh client area */
    2725     InvalidateRect(hwnd, NULL, FALSE);
     2725    InvalidateRect(hwnd, NULL, TRUE);
    27262726  }
    27272727
     
    31343134    }
    31353135
    3136     while (1)
     3136    while (TRUE)
    31373137    {
    31383138      while (nItem < nLast)
     
    48254825
    48264826    LISTVIEW_UpdateScroll(hwnd);
    4827     InvalidateRect(hwnd, NULL, FALSE);
     4827    InvalidateRect(hwnd, NULL, TRUE);
    48284828  }
    48294829
     
    49364936                LISTVIEW_UpdateScroll(hwnd);
    49374937                /* refresh client area */
    4938                 InvalidateRect(hwnd, NULL, FALSE);
     4938                InvalidateRect(hwnd, NULL, TRUE);
    49394939              }
    49404940            }
     
    49994999      {
    50005000        /* bResult = */
    5001         InvalidateRect(hwnd, &rc, FALSE);
     5001        InvalidateRect(hwnd, &rc, TRUE);
    50025002      }
    50035003    }
     
    50265026
    50275027  infoPtr->clrBk = clrBk;
    5028   InvalidateRect(hwnd, NULL, FALSE);
     5028  InvalidateRect(hwnd, NULL, TRUE);
    50295029
    50305030  return TRUE;
     
    52345234    infoPtr->nItemWidth = LISTVIEW_GetItemWidth(hwnd);
    52355235
    5236     InvalidateRect(hwnd, NULL, FALSE); // force redraw of the listview
     5236    InvalidateRect(hwnd, NULL, TRUE); // force redraw of the listview
    52375237
    52385238    return lret;
     
    55895589
    55905590  infoPtr->clrTextBk = clrTextBk;
    5591   InvalidateRect(hwnd, NULL, FALSE);
     5591  InvalidateRect(hwnd, NULL, TRUE);
    55925592
    55935593  return TRUE;
     
    56115611
    56125612  infoPtr->clrText = clrText;
    5613   InvalidateRect(hwnd, NULL, FALSE);
     5613  InvalidateRect(hwnd, NULL, TRUE);
    56145614
    56155615  return TRUE;
     
    56855685        for (i = 0; i < nCount; i++)
    56865686        {
    5687             if ((hdpaSubItems = (HDPA) DPA_GetPtr(infoPtr->hdpaItems, i)))
    5688                 if ((lpItem = (LISTVIEW_ITEM *) DPA_GetPtr(hdpaSubItems, 0)))
    5689                     DPA_InsertPtr(sortList, nCount + 1, lpItem);
     5687            hdpaSubItems = (HDPA) DPA_GetPtr(infoPtr->hdpaItems, i);
     5688            if (hdpaSubItems)
     5689            {
     5690              lpItem = (LISTVIEW_ITEM *) DPA_GetPtr(hdpaSubItems, 0);
     5691              if (lpItem)
     5692                DPA_InsertPtr(sortList, nCount + 1, lpItem);
     5693            }
    56905694        }
    56915695
     
    56965700        for (i = 0; i < nCount; i++)
    56975701        {
    5698             if ((hdpaSubItems = (HDPA) DPA_GetPtr(infoPtr->hdpaItems, i)) &&
    5699                 (lpItem = (LISTVIEW_ITEM *) DPA_GetPtr(sortList, i)))
     5702            hdpaSubItems = (HDPA) DPA_GetPtr(infoPtr->hdpaItems, i);
     5703            if (hdpaSubItems)
     5704            {
     5705              lpItem = (LISTVIEW_ITEM *) DPA_GetPtr(sortList, i);
     5706              if (lpItem)
    57005707                DPA_SetPtr(hdpaSubItems, 0, lpItem);
     5708            }
    57015709        }
    57025710
     
    57435751      rc.left = LVIR_BOUNDS;
    57445752      ListView_GetItemRect(hwnd, nItem, &rc);
    5745       InvalidateRect(hwnd, &rc, FALSE);
     5753      InvalidateRect(hwnd, &rc, TRUE);
    57465754    }
    57475755  }
     
    61726180    {
    61736181      /* refresh client area */
    6174       InvalidateRect(hwnd, NULL, FALSE);
     6182      InvalidateRect(hwnd, NULL, TRUE);
    61756183      UpdateWindow(hwnd);
    61766184    }
     
    62066214
    62076215  /* NEED drawing optimization ; redraw the selected items */
    6208   InvalidateRect(hwnd, NULL, FALSE);
     6216  InvalidateRect(hwnd, NULL, TRUE);
    62096217
    62106218  return 0;
     
    67186726  infoPtr->bFocus = TRUE;
    67196727
    6720   InvalidateRect(hwnd, NULL, FALSE);
     6728  InvalidateRect(hwnd, NULL, TRUE);
    67216729  UpdateWindow(hwnd);
    67226730
     
    67606768
    67616769  /* invalidate listview control client area */
    6762   InvalidateRect(hwnd, NULL, FALSE);
     6770  InvalidateRect(hwnd, NULL, TRUE);
    67636771
    67646772  if (fRedraw != FALSE)
     
    68076815
    68086816  /* invalidate client area + erase background */
    6809   InvalidateRect(hwnd, NULL, FALSE);
     6817  InvalidateRect(hwnd, NULL, TRUE);
    68106818
    68116819  return 0;
     
    69666974
    69676975    /* invalidate client area + erase background */
    6968     InvalidateRect(hwnd, NULL, FALSE);
     6976    InvalidateRect(hwnd, NULL, TRUE);
    69696977
    69706978    /* print the list of unsupported window styles */
  • trunk/src/comctl32/status.c

    r2190 r2205  
    1 /* $Id: status.c,v 1.16 1999-12-22 18:10:09 cbratschi Exp $ */
     1/* $Id: status.c,v 1.17 1999-12-26 17:32:13 cbratschi Exp $ */
    22/*
    33 * Interface code to StatusWindow widget/control
     
    10001000}
    10011001
    1002 static LRESULT STATUSBAR_WMSetCursor(HWND hwnd,WPARAM wParam,LPARAM lParam)
    1003 {
    1004   DWORD dwStyle = GetWindowLongA(hwnd,GWL_STYLE);
    1005 
    1006   if (dwStyle & SBARS_SIZEGRIP)
    1007   {
    1008     RECT rect = STATUSBAR_GetSizeBox(hwnd);
    1009     POINT pt;
    1010 
    1011     GetCursorPos(&pt);
    1012     ScreenToClient(hwnd,&pt);
    1013 
    1014     if (PtInRect(&rect,pt))
    1015     {
    1016       SetCursor(LoadCursorA(0,IDC_SIZENWSEA));
    1017       return TRUE;
    1018     }
    1019   }
    1020 
    1021   return DefWindowProcA(hwnd,WM_SETCURSOR,wParam,lParam);
    1022 }
    1023 
    10241002static LRESULT
    10251003STATUSBAR_WMMouseMove (HWND hwnd, WPARAM wParam, LPARAM lParam)
     
    10571035STATUSBAR_WMNCLButtonDown (HWND hwnd, WPARAM wParam, LPARAM lParam)
    10581036{
    1059   DWORD dwStyle = GetWindowLongA(hwnd,GWL_STYLE);
    1060 
    1061   if (dwStyle & SBARS_SIZEGRIP && !(dwStyle & CCS_TOP))
    1062   {
    1063     RECT rect = STATUSBAR_GetSizeBox(hwnd);
    1064     POINT point;
    1065 
    1066     point.x = (SHORT)LOWORD(lParam);
    1067     point.y = (SHORT)HIWORD(lParam);
    1068     ScreenToClient(hwnd,&point);
    1069 
    1070     if (PtInRect(&rect,point)) TrackWin32Window(GetParent(hwnd),FALSE);
    1071 
    1072     return 0;
    1073   }
    1074 
    10751037  PostMessageA (GetParent (hwnd), WM_NCLBUTTONDOWN, wParam, lParam);
    10761038  return 0;
     
    13121274            return STATUSBAR_SendNotify (hwnd, NM_RCLICK);
    13131275
    1314         case WM_SETCURSOR:
    1315             return STATUSBAR_WMSetCursor(hwnd,wParam,lParam);
    1316 
    13171276        case WM_SETFONT:
    13181277            return STATUSBAR_WMSetFont (hwnd, wParam, lParam);
  • trunk/src/comctl32/toolbar.c

    r2184 r2205  
    1 /* $Id: toolbar.c,v 1.23 1999-12-21 17:01:37 cbratschi Exp $ */
     1/* $Id: toolbar.c,v 1.24 1999-12-26 17:32:13 cbratschi Exp $ */
    22/*
    33 * Toolbar control
     
    30303030}
    30313031
    3032 /* << TOOLBAR_InsertButton32W >> */
    30333032/* << TOOLBAR_InsertMarkHitTest >> */
    30343033
  • trunk/src/comctl32/tooltips.c

    r1664 r2205  
    1 /* $Id: tooltips.c,v 1.17 1999-11-09 14:38:01 achimha Exp $ */
     1/* $Id: tooltips.c,v 1.18 1999-12-26 17:32:14 cbratschi Exp $ */
    22/*
    33 * Tool tip control
     
    1616 *     hittest.exe, needtext.exe, newrect.exe, updtext.exe and winfrpt.exe.
    1717 */
    18 
    19 /* CB: Odin32 problems
    20  - WM_NCCREATE not handled first -> title bar visible if WS_POPUP wasn't set before
    21  - CS_SAVEBITS: window movements are slow, bug in Open32?
    22 */
    2318
    2419/* WINE 991031 level */
     
    262257
    263258    if (infoPtr->nMaxTipWidth > -1) {
    264         rc.right = infoPtr->nMaxTipWidth;
    265         uFlags |= DT_WORDBREAK;
     259        rc.right = infoPtr->nMaxTipWidth;
     260        uFlags |= DT_WORDBREAK;
    266261    }
    267262    if (GetWindowLongA (hwnd, GWL_STYLE) & TTS_NOPREFIX)
    268         uFlags |= DT_NOPREFIX;
     263        uFlags |= DT_NOPREFIX;
    269264//    TRACE("\"%s\"\n", debugstr_w(infoPtr->szTipText));
    270265
     
    275270    ReleaseDC (hwnd, hdc);
    276271
    277     lpSize->cx = rc.right - rc.left + 4 + 
    278                 infoPtr->rcMargin.left + infoPtr->rcMargin.right;
     272    lpSize->cx = rc.right - rc.left + 4 +
     273                infoPtr->rcMargin.left + infoPtr->rcMargin.right;
    279274    lpSize->cy = rc.bottom - rc.top + 4 +
    280                 infoPtr->rcMargin.bottom + infoPtr->rcMargin.top;
     275                infoPtr->rcMargin.bottom + infoPtr->rcMargin.top;
    281276}
    282277
     
    291286
    292287    if (infoPtr->nTool == -1) {
    293 //      TRACE("invalid tool (-1)!\n");
    294         return;
     288//      TRACE("invalid tool (-1)!\n");
     289        return;
    295290    }
    296291
     
    302297
    303298    if (infoPtr->szTipText[0] == L'\0') {
    304         infoPtr->nCurrentTool = -1;
    305         return;
     299        infoPtr->nCurrentTool = -1;
     300        return;
    306301    }
    307302
     
    313308    hdr.code = TTN_SHOW;
    314309    SendMessageA (toolPtr->hwnd, WM_NOTIFY,
    315                     (WPARAM)toolPtr->uId, (LPARAM)&hdr);
     310                    (WPARAM)toolPtr->uId, (LPARAM)&hdr);
    316311
    317312//    TRACE("\"%s\"\n", debugstr_w(infoPtr->szTipText));
     
    321316
    322317    if (toolPtr->uFlags & TTF_CENTERTIP) {
    323         RECT rc;
    324 
    325         if (toolPtr->uFlags & TTF_IDISHWND)
    326             GetWindowRect ((HWND)toolPtr->uId, &rc);
    327         else {
    328             rc = toolPtr->rect;
    329             MapWindowPoints (toolPtr->hwnd, (HWND)0, (LPPOINT)&rc, 2);
    330         }
    331         rect.left = (rc.left + rc.right - size.cx) / 2;
    332         rect.top  = rc.bottom + 2;
     318        RECT rc;
     319
     320        if (toolPtr->uFlags & TTF_IDISHWND)
     321            GetWindowRect ((HWND)toolPtr->uId, &rc);
     322        else {
     323            rc = toolPtr->rect;
     324            MapWindowPoints (toolPtr->hwnd, (HWND)0, (LPPOINT)&rc, 2);
     325        }
     326        rect.left = (rc.left + rc.right - size.cx) / 2;
     327        rect.top  = rc.bottom + 2;
    333328    }
    334329    else {
    335         GetCursorPos ((LPPOINT)&rect);
    336         rect.top += 20;
     330        GetCursorPos ((LPPOINT)&rect);
     331        rect.top += 20;
    337332    }
    338333
     
    345340    wndrect.right = GetSystemMetrics( SM_CXSCREEN );
    346341    if( rect.right > wndrect.right ) {
    347            rect.left -= rect.right - wndrect.right + 2;
    348            rect.right = wndrect.right - 2;
     342           rect.left -= rect.right - wndrect.right + 2;
     343           rect.right = wndrect.right - 2;
    349344    }
    350345    wndrect.bottom = GetSystemMetrics( SM_CYSCREEN );
     
    352347        RECT rc;
    353348
    354         if (toolPtr->uFlags & TTF_IDISHWND)
    355             GetWindowRect ((HWND)toolPtr->uId, &rc);
    356         else {
    357             rc = toolPtr->rect;
    358             MapWindowPoints (toolPtr->hwnd, (HWND)0, (LPPOINT)&rc, 2);
    359         }   
    360         rect.bottom = rc.top - 2;
    361         rect.top = rect.bottom - size.cy;
     349        if (toolPtr->uFlags & TTF_IDISHWND)
     350            GetWindowRect ((HWND)toolPtr->uId, &rc);
     351        else {
     352            rc = toolPtr->rect;
     353            MapWindowPoints (toolPtr->hwnd, (HWND)0, (LPPOINT)&rc, 2);
     354        }
     355        rect.bottom = rc.top - 2;
     356        rect.top = rect.bottom - size.cy;
    362357    }
    363358
    364359    AdjustWindowRectEx (&rect, GetWindowLongA (hwnd, GWL_STYLE),
    365                         FALSE, GetWindowLongA (hwnd, GWL_EXSTYLE));
     360                        FALSE, GetWindowLongA (hwnd, GWL_EXSTYLE));
    366361
    367362    SetWindowPos (hwnd, HWND_TOP, rect.left, rect.top,
    368                     rect.right - rect.left, rect.bottom - rect.top,
    369                     SWP_SHOWWINDOW | SWP_NOACTIVATE);
     363                    rect.right - rect.left, rect.bottom - rect.top,
     364                    SWP_SHOWWINDOW | SWP_NOACTIVATE);
    370365
    371366    /* repaint the tooltip */
     
    909904    toolPtr = &infoPtr->tools[nTool];
    910905    if ((toolPtr->hinst) && (toolPtr->lpszText)) {
    911         if ( (toolPtr->lpszText != LPSTR_TEXTCALLBACKW) &&
    912              (HIWORD((INT)toolPtr->lpszText) != 0) )
     906        if ( (toolPtr->lpszText != LPSTR_TEXTCALLBACKW) &&
     907             (HIWORD((INT)toolPtr->lpszText) != 0) )
    913908            COMCTL32_Free (toolPtr->lpszText);
    914909    }
     
    967962    toolPtr = &infoPtr->tools[nTool];
    968963    if ((toolPtr->hinst) && (toolPtr->lpszText)) {
    969         if ( (toolPtr->lpszText != LPSTR_TEXTCALLBACKW) &&
    970              (HIWORD((INT)toolPtr->lpszText) != 0) )
     964        if ( (toolPtr->lpszText != LPSTR_TEXTCALLBACKW) &&
     965             (HIWORD((INT)toolPtr->lpszText) != 0) )
    971966            COMCTL32_Free (toolPtr->lpszText);
    972967    }
     
    16501645            toolPtr->lpszText = LPSTR_TEXTCALLBACKW;
    16511646        else {
    1652             if ( (toolPtr->lpszText) &&
    1653                 (HIWORD((INT)toolPtr->lpszText) != 0) ) {
     1647            if ( (toolPtr->lpszText) &&
     1648                (HIWORD((INT)toolPtr->lpszText) != 0) ) {
    16541649                COMCTL32_Free (toolPtr->lpszText);
    16551650                toolPtr->lpszText = NULL;
     
    17051700            toolPtr->lpszText = LPSTR_TEXTCALLBACKW;
    17061701        else {
    1707             if ( (toolPtr->lpszText) &&
    1708                 (HIWORD((INT)toolPtr->lpszText) != 0) ) {
     1702            if ( (toolPtr->lpszText) &&
     1703                (HIWORD((INT)toolPtr->lpszText) != 0) ) {
    17091704                COMCTL32_Free (toolPtr->lpszText);
    17101705                toolPtr->lpszText = NULL;
     
    17981793
    17991794    if (lpToolInfo == NULL)
    1800         return 0;
     1795        return 0;
    18011796    if (lpToolInfo->cbSize < TTTOOLINFO_V1_SIZEA)
    1802         return FALSE;
     1797        return FALSE;
    18031798
    18041799    nTool = TOOLTIPS_GetToolFromInfoA (infoPtr, lpToolInfo);
     
    18131808
    18141809    if ((lpToolInfo->hinst) && (HIWORD((INT)lpToolInfo->lpszText) == 0)){
    1815         toolPtr->lpszText = (LPWSTR)lpToolInfo->lpszText;
     1810        toolPtr->lpszText = (LPWSTR)lpToolInfo->lpszText;
    18161811    }
    18171812    else if (lpToolInfo->lpszText) {
    1818         if (lpToolInfo->lpszText == LPSTR_TEXTCALLBACKA)
    1819             toolPtr->lpszText = LPSTR_TEXTCALLBACKW;
    1820         else {
    1821             if ( (toolPtr->lpszText) &&
    1822                 (HIWORD((INT)toolPtr->lpszText) != 0) ) {
    1823                 COMCTL32_Free (toolPtr->lpszText);
    1824                 toolPtr->lpszText = NULL;
    1825             }
    1826             if (lpToolInfo->lpszText) {
    1827                 INT len = lstrlenA (lpToolInfo->lpszText);
    1828                 toolPtr->lpszText = COMCTL32_Alloc ((len+1)*sizeof(WCHAR));
    1829                 lstrcpyAtoW (toolPtr->lpszText, lpToolInfo->lpszText);
    1830             }
    1831         }
     1813        if (lpToolInfo->lpszText == LPSTR_TEXTCALLBACKA)
     1814            toolPtr->lpszText = LPSTR_TEXTCALLBACKW;
     1815        else {
     1816            if ( (toolPtr->lpszText) &&
     1817                (HIWORD((INT)toolPtr->lpszText) != 0) ) {
     1818                COMCTL32_Free (toolPtr->lpszText);
     1819                toolPtr->lpszText = NULL;
     1820            }
     1821            if (lpToolInfo->lpszText) {
     1822                INT len = lstrlenA (lpToolInfo->lpszText);
     1823                toolPtr->lpszText = COMCTL32_Alloc ((len+1)*sizeof(WCHAR));
     1824                lstrcpyAtoW (toolPtr->lpszText, lpToolInfo->lpszText);
     1825            }
     1826        }
    18321827    }
    18331828
    18341829    /* force repaint */
    18351830    if (infoPtr->bActive)
    1836         TOOLTIPS_Show (hwnd, infoPtr);
     1831        TOOLTIPS_Show (hwnd, infoPtr);
    18371832    else if (infoPtr->bTrackActive)
    1838         TOOLTIPS_TrackShow (hwnd, infoPtr);
     1833        TOOLTIPS_TrackShow (hwnd, infoPtr);
    18391834
    18401835    return 0;
     
    18511846
    18521847    if (lpToolInfo == NULL)
    1853         return 0;
     1848        return 0;
    18541849    if (lpToolInfo->cbSize < TTTOOLINFO_V1_SIZEW)
    1855         return FALSE;
     1850        return FALSE;
    18561851
    18571852    nTool = TOOLTIPS_GetToolFromInfoW (infoPtr, lpToolInfo);
    18581853    if (nTool == -1)
    1859         return 0;
     1854        return 0;
    18601855
    18611856//    TRACE("tool %d\n", nTool);
     
    18671862
    18681863    if ((lpToolInfo->hinst) && (HIWORD((INT)lpToolInfo->lpszText) == 0)){
    1869         toolPtr->lpszText = lpToolInfo->lpszText;
     1864        toolPtr->lpszText = lpToolInfo->lpszText;
    18701865    }
    18711866    else if (lpToolInfo->lpszText) {
    1872         if (lpToolInfo->lpszText == LPSTR_TEXTCALLBACKW)
    1873             toolPtr->lpszText = LPSTR_TEXTCALLBACKW;
    1874         else {
    1875             if ( (toolPtr->lpszText)  &&
    1876                 (HIWORD((INT)toolPtr->lpszText) != 0) ) {
    1877                 COMCTL32_Free (toolPtr->lpszText);
    1878                 toolPtr->lpszText = NULL;
    1879             }
    1880             if (lpToolInfo->lpszText) {
    1881                 INT len = lstrlenW (lpToolInfo->lpszText);
    1882                 toolPtr->lpszText = COMCTL32_Alloc ((len+1)*sizeof(WCHAR));
    1883                 lstrcpyW (toolPtr->lpszText, lpToolInfo->lpszText);
    1884             }
    1885         }
     1867        if (lpToolInfo->lpszText == LPSTR_TEXTCALLBACKW)
     1868            toolPtr->lpszText = LPSTR_TEXTCALLBACKW;
     1869        else {
     1870            if ( (toolPtr->lpszText)  &&
     1871                (HIWORD((INT)toolPtr->lpszText) != 0) ) {
     1872                COMCTL32_Free (toolPtr->lpszText);
     1873                toolPtr->lpszText = NULL;
     1874            }
     1875            if (lpToolInfo->lpszText) {
     1876                INT len = lstrlenW (lpToolInfo->lpszText);
     1877                toolPtr->lpszText = COMCTL32_Alloc ((len+1)*sizeof(WCHAR));
     1878                lstrcpyW (toolPtr->lpszText, lpToolInfo->lpszText);
     1879            }
     1880        }
    18861881    }
    18871882
    18881883    /* force repaint */
    18891884    if (infoPtr->bActive)
    1890         TOOLTIPS_Show (hwnd, infoPtr);
     1885        TOOLTIPS_Show (hwnd, infoPtr);
    18911886    else if (infoPtr->bTrackActive)
    1892         TOOLTIPS_TrackShow (hwnd, infoPtr);
     1887        TOOLTIPS_TrackShow (hwnd, infoPtr);
    18931888
    18941889    return 0;
     
    19641959    /* free tools */
    19651960    if (infoPtr->tools) {
    1966         for (i = 0; i < infoPtr->uNumTools; i++) {
    1967             toolPtr = &infoPtr->tools[i];
    1968             if ((toolPtr->hinst) && (toolPtr->lpszText)) {
    1969                 if ( (toolPtr->lpszText != LPSTR_TEXTCALLBACKW) &&
    1970                      (HIWORD((INT)toolPtr->lpszText) != 0) )
    1971                 {
    1972                     COMCTL32_Free (toolPtr->lpszText);
    1973                     toolPtr->lpszText = NULL;
    1974                 }
    1975             }
    1976 
    1977             /* remove subclassing */
    1978             if (toolPtr->uFlags & TTF_SUBCLASS) {
    1979                 LPTT_SUBCLASS_INFO lpttsi;
    1980 
    1981                 if (toolPtr->uFlags & TTF_IDISHWND)
    1982                     lpttsi = (LPTT_SUBCLASS_INFO)GetPropA ((HWND)toolPtr->uId, COMCTL32_aSubclass);
    1983                 else
    1984                     lpttsi = (LPTT_SUBCLASS_INFO)GetPropA (toolPtr->hwnd, COMCTL32_aSubclass);
    1985 
    1986                 if (lpttsi) {
    1987                     SetWindowLongA ((HWND)toolPtr->uId, GWL_WNDPROC,
    1988                                       (LONG)lpttsi->wpOrigProc);
    1989                     RemovePropA ((HWND)toolPtr->uId, COMCTL32_aSubclass);
    1990                     COMCTL32_Free (&lpttsi);
    1991                 }
    1992             }
     1961        for (i = 0; i < infoPtr->uNumTools; i++) {
     1962            toolPtr = &infoPtr->tools[i];
     1963            if ((toolPtr->hinst) && (toolPtr->lpszText)) {
     1964                if ( (toolPtr->lpszText != LPSTR_TEXTCALLBACKW) &&
     1965                     (HIWORD((INT)toolPtr->lpszText) != 0) )
     1966                {
     1967                    COMCTL32_Free (toolPtr->lpszText);
     1968                    toolPtr->lpszText = NULL;
     1969                }
     1970            }
     1971
     1972            /* remove subclassing */
     1973            if (toolPtr->uFlags & TTF_SUBCLASS) {
     1974                LPTT_SUBCLASS_INFO lpttsi;
     1975
     1976                if (toolPtr->uFlags & TTF_IDISHWND)
     1977                    lpttsi = (LPTT_SUBCLASS_INFO)GetPropA ((HWND)toolPtr->uId, COMCTL32_aSubclass);
     1978                else
     1979                    lpttsi = (LPTT_SUBCLASS_INFO)GetPropA (toolPtr->hwnd, COMCTL32_aSubclass);
     1980
     1981                if (lpttsi) {
     1982                    SetWindowLongA ((HWND)toolPtr->uId, GWL_WNDPROC,
     1983                                      (LONG)lpttsi->wpOrigProc);
     1984                    RemovePropA ((HWND)toolPtr->uId, COMCTL32_aSubclass);
     1985                    COMCTL32_Free (&lpttsi);
     1986                }
     1987            }
    19931988      }
    19941989      COMCTL32_Free (infoPtr->tools);
Note: See TracChangeset for help on using the changeset viewer.