- Timestamp:
- Aug 8, 2000, 7:05:02 PM (25 years ago)
- 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:03cbratschi Exp $ */1 /* $Id: animate.cpp,v 1.5 2000-08-08 17:04:59 cbratschi Exp $ */ 2 2 /* 3 3 * Animation control … … 19 19 20 20 /* 21 - Corel WINE 20000 513level21 - Corel WINE 20000807 level 22 22 */ 23 23 -
trunk/src/comctl32/comctl32.h
r3410 r3970 1 /* $Id: comctl32.h,v 1.1 4 2000-04-16 18:52:39 cbratschi Exp $ */1 /* $Id: comctl32.h,v 1.15 2000-08-08 17:04:59 cbratschi Exp $ */ 2 2 /* 3 3 * Win32 common controls implementation … … 12 12 */ 13 13 14 /* Status: WINE 991212*/14 /* Status: Corel WINE 20000807 */ 15 15 16 16 #ifndef _H_COMCTL32 … … 140 140 #define IDM_DEC 312 141 141 142 /* treeview checkboxes */143 #define IDT_CHECK 401144 145 142 #endif /* _H_COMCTL32 */ -
trunk/src/comctl32/header.cpp
r3585 r3970 1 /* $Id: header.cpp,v 1.1 1 2000-05-22 17:25:08cbratschi Exp $ */1 /* $Id: header.cpp,v 1.12 2000-08-08 17:04:59 cbratschi Exp $ */ 2 2 /* 3 3 * Header control … … 17 17 /* 18 18 Most identical with: 19 - Corel 20000 513level19 - Corel 20000807 level 20 20 */ 21 21 -
trunk/src/comctl32/monthcal.cpp
r3844 r3970 1 /* $Id: monthcal.cpp,v 1. 4 2000-07-18 16:17:29 birdExp $ */1 /* $Id: monthcal.cpp,v 1.5 2000-08-08 17:05:00 cbratschi Exp $ */ 2 2 /* Month calendar control 3 3 * … … 385 385 titlemonth->right = title->right; 386 386 387 thisMonthtxt = monthtxt[infoPtr->currentMonth - 1];387 thisMonthtxt = (char*)monthtxt[infoPtr->currentMonth - 1]; 388 388 sprintf(buf, "%s %ld", thisMonthtxt, infoPtr->currentYear); 389 389 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 sandervlExp $ */1 /* $Id: toolbar.cpp,v 1.10 2000-08-08 17:05:00 cbratschi Exp $ */ 2 2 /* 3 3 * Toolbar control … … 29 29 30 30 /* 31 - Corel 20000 513level31 - Corel 20000807 level 32 32 - (WINE 991212 level) 33 33 */ … … 42 42 #include "toolbar.h" 43 43 44 #define SEPARATOR_WIDTH 8 44 #define SEPARATOR_WIDTH 8 //CB: Corel says 5 but this breaks the layout! 45 45 #define TOP_BORDER 2 46 46 #define BOTTOM_BORDER 2 … … 1601 1601 /* create new default image list */ 1602 1602 //TRACE ("creating default image list!\n"); 1603 1604 //CB: nope, it's otherwise 1605 1606 1607 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); 1608 1608 infoPtr->himlInt = infoPtr->himlDef; 1609 1609 } -
trunk/src/comctl32/tooltips.cpp
r3963 r3970 1 /* $Id: tooltips.cpp,v 1.1 0 2000-08-06 20:28:29 sandervlExp $ */1 /* $Id: tooltips.cpp,v 1.11 2000-08-08 17:05:01 cbratschi Exp $ */ 2 2 /* 3 3 * Tool tip control … … 18 18 19 19 /* 20 - Corel WINE 20000 513level20 - Corel WINE 20000807 level 21 21 - (WINE 20000130 level) 22 22 */ … … 341 341 RECT rect, wndrect; 342 342 SIZE size; 343 HDC hdc;344 343 NMHDR hdr; 345 344 … … 424 423 425 424 /* repaint the tooltip */ 426 hdc = GetDC (hwnd); 427 TOOLTIPS_Draw(hwnd, hdc); 428 ReleaseDC (hwnd, hdc); 425 InvalidateRect(hwnd,NULL,TRUE); 426 UpdateWindow(hwnd); 429 427 430 428 SetTimer (hwnd, ID_TIMERPOP, infoPtr->nAutoPopTime, 0); … … 463 461 TTTOOL_INFO *toolPtr; 464 462 RECT rect; 465 HDC hdc;466 463 NMHDR hdr; 467 464 … … 498 495 SWP_SHOWWINDOW | SWP_NOACTIVATE ); 499 496 500 hdc = GetDC (hwnd); 501 TOOLTIPS_Draw(hwnd, hdc); 502 ReleaseDC (hwnd, hdc); 497 InvalidateRect(hwnd,NULL,TRUE); 498 UpdateWindow(hwnd); 503 499 } 504 500 … … 740 736 COMCTL32_Free(&lpttsi); 741 737 } 742 //else743 //ERR (tooltips, "Invalid data handle!\n");738 //else 739 // ERR (tooltips, "Invalid data handle!\n"); 744 740 } else 745 741 { … … 750 746 if (lpttsi->uRefCount == 1) 751 747 { 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); 754 750 COMCTL32_Free(&lpttsi); 755 751 } else lpttsi->uRefCount--; … … 1575 1571 } else 1576 1572 { 1577 1578 1579 1580 1581 1582 1583 1584 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; 1585 1581 1586 1582 TOOLTIPS_Hide(hwnd,infoPtr); … … 2043 2039 if (toolPtr->uFlags & TTF_SUBCLASS) { 2044 2040 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); 2051 2043 if (lpttsi) { 2052 2044 SetWindowLongA ((HWND)toolPtr->uId, GWL_WNDPROC, 2053 2045 (LONG)lpttsi->wpOrigProc); 2054 2046 RemovePropA ((HWND)toolPtr->uId, COMCTL32_aSubclass); 2055 2047 COMCTL32_Free (&lpttsi); 2056 2048 } 2057 2049 } 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 } 2058 2061 } 2059 2062 COMCTL32_Free (infoPtr->tools); -
trunk/src/comctl32/trackbar.cpp
r3585 r3970 1 /* $Id: trackbar.cpp,v 1. 4 2000-05-22 17:25:13cbratschi Exp $ */1 /* $Id: trackbar.cpp,v 1.5 2000-08-08 17:05:01 cbratschi Exp $ */ 2 2 /* 3 3 * Trackbar control … … 1811 1811 SendMessageA(infoPtr->hwndToolTip,TTM_TRACKACTIVATE,(WPARAM)TRUE,(LPARAM)&ti); 1812 1812 } 1813 1813 1814 SetCapture(infoPtr->hwnd); 1814 1815 TRACKBAR_UpdateThumbPosition(infoPtr,infoPtr->nPos,TRUE); //change arrow color … … 1961 1962 } 1962 1963 1963 infoPtr->flags &= ~ 1964 infoPtr->flags &= ~TB_DRAGPOSVALID; 1964 1965 1965 1966 if (infoPtr->flags & TB_SCROLL_MODE) … … 1969 1970 } 1970 1971 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 1972 1979 return 0; 1973 1980 } -
trunk/src/comctl32/treeview.cpp
r3743 r3970 1 /* $Id: treeview.cpp,v 1.1 5 2000-06-22 19:02:04cbratschi Exp $ */1 /* $Id: treeview.cpp,v 1.16 2000-08-08 17:05:02 cbratschi Exp $ */ 2 2 /* Treeview control 3 3 * … … 70 70 71 71 #define MINIMUM_INDENT 19 72 73 #define IDT_CHECK 401 //CB: remove later 72 74 73 75 #define CALLBACK_MASK_ALL (TVIF_TEXT|TVIF_CHILDREN|TVIF_IMAGE|TVIF_SELECTEDIMAGE)
Note:
See TracChangeset
for help on using the changeset viewer.