Changeset 3970 for trunk/src


Ignore:
Timestamp:
Aug 8, 2000, 7:05:02 PM (25 years ago)
Author:
cbratschi
Message:

Corel WINE 20000807 changes - part 1

Location:
trunk/src/comctl32
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/comctl32/animate.cpp

    r3743 r3970  
    1 /* $Id: animate.cpp,v 1.4 2000-06-22 19:02:03 cbratschi Exp $ */
     1/* $Id: animate.cpp,v 1.5 2000-08-08 17:04:59 cbratschi Exp $ */
    22/*
    33 * Animation control
     
    1919
    2020/*
    21  - Corel WINE 20000513 level
     21 - Corel WINE 20000807 level
    2222*/
    2323
  • trunk/src/comctl32/comctl32.h

    r3410 r3970  
    1 /* $Id: comctl32.h,v 1.14 2000-04-16 18:52:39 cbratschi Exp $ */
     1/* $Id: comctl32.h,v 1.15 2000-08-08 17:04:59 cbratschi Exp $ */
    22/*
    33 * Win32 common controls implementation
     
    1212 */
    1313
    14 /* Status: WINE 991212 */
     14/* Status: Corel WINE 20000807 */
    1515
    1616#ifndef _H_COMCTL32
     
    140140#define IDM_DEC                         312
    141141
    142 /* treeview checkboxes */
    143 #define IDT_CHECK 401
    144 
    145142#endif /* _H_COMCTL32 */
  • trunk/src/comctl32/header.cpp

    r3585 r3970  
    1 /* $Id: header.cpp,v 1.11 2000-05-22 17:25:08 cbratschi Exp $ */
     1/* $Id: header.cpp,v 1.12 2000-08-08 17:04:59 cbratschi Exp $ */
    22/*
    33 *  Header control
     
    1717/*
    1818 Most identical with:
    19  - Corel 20000513 level
     19 - Corel 20000807 level
    2020*/
    2121
  • trunk/src/comctl32/monthcal.cpp

    r3844 r3970  
    1 /* $Id: monthcal.cpp,v 1.4 2000-07-18 16:17:29 bird Exp $ */
     1/* $Id: monthcal.cpp,v 1.5 2000-08-08 17:05:00 cbratschi Exp $ */
    22/* Month calendar control
    33 *
     
    385385  titlemonth->right  = title->right;
    386386
    387   thisMonthtxt = monthtxt[infoPtr->currentMonth - 1];
     387  thisMonthtxt = (char*)monthtxt[infoPtr->currentMonth - 1];
    388388  sprintf(buf, "%s %ld", thisMonthtxt, infoPtr->currentYear);
    389389  DrawTextA(hdc, buf, strlen(buf), titlemonth,
  • trunk/src/comctl32/toolbar.cpp

    r3963 r3970  
    1 /* $Id: toolbar.cpp,v 1.9 2000-08-06 20:28:28 sandervl Exp $ */
     1/* $Id: toolbar.cpp,v 1.10 2000-08-08 17:05:00 cbratschi Exp $ */
    22/*
    33 * Toolbar control
     
    2929
    3030/*
    31  - Corel 20000513 level
     31 - Corel 20000807 level
    3232 - (WINE 991212 level)
    3333*/
     
    4242#include "toolbar.h"
    4343
    44 #define SEPARATOR_WIDTH    8
     44#define SEPARATOR_WIDTH    8 //CB: Corel says 5 but this breaks the layout!
    4545#define TOP_BORDER         2
    4646#define BOTTOM_BORDER      2
     
    16011601        /* create new default image list */
    16021602        //TRACE ("creating default image list!\n");
    1603         /* It seems that the image list created is 1 pixel taller than the bitmap height */
    1604 //CB: nope, it's otherwise     
    1605         infoPtr->himlDef =
    1606             ImageList_Create (infoPtr->nBitmapWidth, infoPtr->nBitmapHeight-1,
    1607                               ILC_COLOR | ILC_MASK, nButtons, 2);
     1603        /* It seems that the image list created is 1 pixel taller than the bitmap height */
     1604//CB: nope, it's otherwise
     1605        infoPtr->himlDef =
     1606            ImageList_Create (infoPtr->nBitmapWidth, infoPtr->nBitmapHeight-1,
     1607                              ILC_COLOR | ILC_MASK, nButtons, 2);
    16081608        infoPtr->himlInt = infoPtr->himlDef;
    16091609    }
  • trunk/src/comctl32/tooltips.cpp

    r3963 r3970  
    1 /* $Id: tooltips.cpp,v 1.10 2000-08-06 20:28:29 sandervl Exp $ */
     1/* $Id: tooltips.cpp,v 1.11 2000-08-08 17:05:01 cbratschi Exp $ */
    22/*
    33 * Tool tip control
     
    1818
    1919/*
    20  - Corel WINE 20000513 level
     20 - Corel WINE 20000807 level
    2121 - (WINE 20000130 level)
    2222*/
     
    341341    RECT rect, wndrect;
    342342    SIZE size;
    343     HDC  hdc;
    344343    NMHDR  hdr;
    345344
     
    424423
    425424    /* repaint the tooltip */
    426     hdc = GetDC (hwnd);
    427     TOOLTIPS_Draw(hwnd, hdc);
    428     ReleaseDC (hwnd, hdc);
     425    InvalidateRect(hwnd,NULL,TRUE);
     426    UpdateWindow(hwnd);
    429427
    430428    SetTimer (hwnd, ID_TIMERPOP, infoPtr->nAutoPopTime, 0);
     
    463461    TTTOOL_INFO *toolPtr;
    464462    RECT rect;
    465     HDC  hdc;
    466463    NMHDR hdr;
    467464
     
    498495                    SWP_SHOWWINDOW | SWP_NOACTIVATE );
    499496
    500     hdc = GetDC (hwnd);
    501     TOOLTIPS_Draw(hwnd, hdc);
    502     ReleaseDC (hwnd, hdc);
     497    InvalidateRect(hwnd,NULL,TRUE);
     498    UpdateWindow(hwnd);
    503499}
    504500
     
    740736          COMCTL32_Free(&lpttsi);
    741737        }
    742 //          else
    743 //              ERR (tooltips, "Invalid data handle!\n");
     738          //else
     739          //    ERR (tooltips, "Invalid data handle!\n");
    744740      } else
    745741      {
     
    750746          if (lpttsi->uRefCount == 1)
    751747          {
    752             SetWindowLongA((HWND)toolPtr->uId,GWL_WNDPROC,(LONG)lpttsi->wpOrigProc);
    753             RemovePropA((HWND)toolPtr->uId,COMCTL32_aSubclass);
     748            SetWindowLongA((HWND)toolPtr->hwnd,GWL_WNDPROC,(LONG)lpttsi->wpOrigProc);
     749            RemovePropA((HWND)toolPtr->hwnd,COMCTL32_aSubclass);
    754750            COMCTL32_Free(&lpttsi);
    755751          } else lpttsi->uRefCount--;
     
    15751571              } else
    15761572              {
    1577                 /*
    1578                 * Need to set nCurrentTool to nOldTool so we hide the tool.
    1579                 *  nTool and nOldTool values change when the mouse leaves the window.
    1580                 * If using TTM_UPDATETIPTEXT we can end up with an nCurrentTool = -1 if the
    1581                 * text can't be found, thus the tooltip would never be hidden.
    1582                 */
    1583                 if (infoPtr->nTool != infoPtr->nOldTool)
    1584                   infoPtr->nCurrentTool = infoPtr->nOldTool;
     1573                /*
     1574                * Need to set nCurrentTool to nOldTool so we hide the tool.
     1575                *  nTool and nOldTool values change when the mouse leaves the window.
     1576                * If using TTM_UPDATETIPTEXT we can end up with an nCurrentTool = -1 if the
     1577                * text can't be found, thus the tooltip would never be hidden.
     1578                */
     1579                if (infoPtr->nTool != infoPtr->nOldTool)
     1580                  infoPtr->nCurrentTool = infoPtr->nOldTool;
    15851581
    15861582                TOOLTIPS_Hide(hwnd,infoPtr);
     
    20432039            if (toolPtr->uFlags & TTF_SUBCLASS) {
    20442040                LPTT_SUBCLASS_INFO lpttsi;
    2045 
    2046                 if (toolPtr->uFlags & TTF_IDISHWND)
    2047                     lpttsi = (LPTT_SUBCLASS_INFO)GetPropA ((HWND)toolPtr->uId, COMCTL32_aSubclass);
    2048                 else
    2049                     lpttsi = (LPTT_SUBCLASS_INFO)GetPropA (toolPtr->hwnd, COMCTL32_aSubclass);
    2050 
     2041                if (toolPtr->uFlags & TTF_IDISHWND) {
     2042                lpttsi = (LPTT_SUBCLASS_INFO)GetPropA ((HWND)toolPtr->uId, COMCTL32_aSubclass);
    20512043                if (lpttsi) {
    20522044                    SetWindowLongA ((HWND)toolPtr->uId, GWL_WNDPROC,
    2053                                       (LONG)lpttsi->wpOrigProc);
     2045                              (LONG)lpttsi->wpOrigProc);
    20542046                    RemovePropA ((HWND)toolPtr->uId, COMCTL32_aSubclass);
    20552047                    COMCTL32_Free (&lpttsi);
    20562048                }
    20572049            }
     2050            else  {
     2051                    lpttsi = (LPTT_SUBCLASS_INFO)GetPropA (toolPtr->hwnd, COMCTL32_aSubclass);
     2052
     2053                    if (lpttsi) {
     2054                        SetWindowLongA ((HWND)toolPtr->hwnd, GWL_WNDPROC,
     2055                                          (LONG)lpttsi->wpOrigProc);
     2056                        RemovePropA ((HWND)toolPtr->hwnd, COMCTL32_aSubclass);
     2057                        COMCTL32_Free (&lpttsi);
     2058                    }
     2059            }
     2060         }
    20582061      }
    20592062      COMCTL32_Free (infoPtr->tools);
  • trunk/src/comctl32/trackbar.cpp

    r3585 r3970  
    1 /* $Id: trackbar.cpp,v 1.4 2000-05-22 17:25:13 cbratschi Exp $ */
     1/* $Id: trackbar.cpp,v 1.5 2000-08-08 17:05:01 cbratschi Exp $ */
    22/*
    33 * Trackbar control
     
    18111811           SendMessageA(infoPtr->hwndToolTip,TTM_TRACKACTIVATE,(WPARAM)TRUE,(LPARAM)&ti);
    18121812         }
     1813
    18131814         SetCapture(infoPtr->hwnd);
    18141815         TRACKBAR_UpdateThumbPosition(infoPtr,infoPtr->nPos,TRUE); //change arrow color
     
    19611962    }
    19621963
    1963     infoPtr->flags &= ~ TB_DRAGPOSVALID;
     1964    infoPtr->flags &= ~TB_DRAGPOSVALID;
    19641965
    19651966    if (infoPtr->flags & TB_SCROLL_MODE)
     
    19691970    }
    19701971
    1971     TRACKBAR_SendNotify(infoPtr,TB_ENDTRACK);
     1972    if (infoPtr->flags & TB_DRAG_MODE)
     1973    {
     1974      TRACKBAR_SendNotify(infoPtr,TB_ENDTRACK);
     1975
     1976      infoPtr->flags &= ~TB_DRAG_MODE;
     1977    }
     1978
    19721979    return 0;
    19731980}
  • trunk/src/comctl32/treeview.cpp

    r3743 r3970  
    1 /* $Id: treeview.cpp,v 1.15 2000-06-22 19:02:04 cbratschi Exp $ */
     1/* $Id: treeview.cpp,v 1.16 2000-08-08 17:05:02 cbratschi Exp $ */
    22/* Treeview control
    33 *
     
    7070
    7171#define MINIMUM_INDENT 19
     72
     73#define IDT_CHECK        401 //CB: remove later
    7274
    7375#define CALLBACK_MASK_ALL (TVIF_TEXT|TVIF_CHILDREN|TVIF_IMAGE|TVIF_SELECTEDIMAGE)
Note: See TracChangeset for help on using the changeset viewer.