- Timestamp:
- Nov 14, 1999, 11:58:38 AM (26 years ago)
- Location:
- trunk/src/comctl32
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/comctl32/comctl32.c
r1058 r1730 1 /* $Id: comctl32.c,v 1.1 0 1999-09-26 11:01:08achimha Exp $ */1 /* $Id: comctl32.c,v 1.11 1999-11-14 10:58:37 achimha Exp $ */ 2 2 /* 3 3 * Win32 common controls implementation … … 365 365 DrawStatusTextW (HDC hdc, LPRECT lprc, LPCWSTR text, UINT style) 366 366 { 367 // ERROR DON'T KNOW HOW TO TRANSLATE!!! 368 LPSTR p; 369 // LPSTR p = HEAP_strdupWtoA (GetProcessHeap (), 0, text); 367 LPSTR p = HEAP_strdupWtoA (GetProcessHeap (), 0, text); 370 368 DrawStatusTextA (hdc, lprc, p, style); 371 369 HeapFree (GetProcessHeap (), 0, p ); -
trunk/src/comctl32/comctl32.h
r1615 r1730 1 /* $Id: comctl32.h,v 1. 9 1999-11-05 13:01:32achimha Exp $ */1 /* $Id: comctl32.h,v 1.10 1999-11-14 10:58:37 achimha Exp $ */ 2 2 /* 3 3 * Win32 common controls implementation … … 42 42 } 43 43 #endif 44 45 46 // string functions from kernel32 47 LPWSTR WIN32API HEAP_strdupAtoW( HANDLE heap, DWORD flags, LPCSTR str ); 48 LPSTR WIN32API HEAP_strdupWtoA( HANDLE heap, DWORD flags, LPCWSTR str ); 44 49 45 50 -
trunk/src/comctl32/listview.c
r1565 r1730 50 50 #include "listview.h" 51 51 #include "debugtools.h" 52 #include "comctl32.h" 52 53 53 54 /* … … 1772 1773 LVITEMA lvItem; 1773 1774 1774 TRACE("(hwnd=%x, hdc=%x, nItem=%d, nSubItem=%d\n", hwnd, hdc,1775 nItem, nSubItem);1775 // TRACE("(hwnd=%x, hdc=%x, nItem=%d, nSubItem=%d\n", hwnd, hdc, 1776 // nItem, nSubItem); 1776 1777 1777 1778 /* get information needed for drawing the item */ … … 1816 1817 DWORD dwTextColor; 1817 1818 1818 TRACE("(hwnd=%x, hdc=%x, nItem=%d\n", hwnd, hdc, nItem);1819 // TRACE("(hwnd=%x, hdc=%x, nItem=%d\n", hwnd, hdc, nItem); 1819 1820 1820 1821 /* get information needed for drawing the item */ … … 1935 1936 LVITEMA lvItem; 1936 1937 1937 TRACE("(hwnd=%x, hdc=%x, nItem=%d, left=%d, top=%d, right=%d, \1938 bottom=%d)\n", hwnd, hdc, nItem, rcItem.left, rcItem.top, rcItem.right,1939 rcItem.bottom);1938 // TRACE("(hwnd=%x, hdc=%x, nItem=%d, left=%d, top=%d, right=%d, \ 1939 //bottom=%d)\n", hwnd, hdc, nItem, rcItem.left, rcItem.top, rcItem.right, 1940 // rcItem.bottom); 1940 1941 1941 1942 /* get information needed for drawing the item */ … … 2469 2470 HDPA hdpaSubItems; 2470 2471 2471 TRACE("(hwnd=%x,)\n", hwnd);2472 // TRACE("(hwnd=%x,)\n", hwnd); 2472 2473 2473 2474 if (GETITEMCOUNT(infoPtr) > 0) … … 2624 2625 INT i; 2625 2626 2626 TRACE("(hwnd=%x,nItem=%d)\n", hwnd, nItem);2627 // TRACE("(hwnd=%x,nItem=%d)\n", hwnd, nItem); 2627 2628 2628 2629 if ((nItem >= 0) && (nItem < GETITEMCOUNT(infoPtr))) … … 3499 3500 HDPA hdpaSubItems; 3500 3501 3501 TRACE("(hwnd=%x, lpLVItem=%p)\n", hwnd, lpLVItem);3502 // TRACE("(hwnd=%x, lpLVItem=%p)\n", hwnd, lpLVItem); 3502 3503 3503 3504 if (lpLVItem != NULL) … … 3738 3739 INT nRow; 3739 3740 3740 TRACE("(hwnd=%x,nItem=%d,lpptPosition=%p)\n", hwnd, nItem,3741 lpptPosition);3741 // TRACE("(hwnd=%x,nItem=%d,lpptPosition=%p)\n", hwnd, nItem, 3742 // lpptPosition); 3742 3743 3743 3744 if ((nItem >= 0) && (nItem < GETITEMCOUNT(infoPtr)) && … … 3821 3822 TEXTMETRICA tm; 3822 3823 3823 TRACE("(hwnd=%x, nItem=%d, lprc=%p)\n", hwnd, nItem, lprc);3824 // TRACE("(hwnd=%x, nItem=%d, lprc=%p)\n", hwnd, nItem, lprc); 3824 3825 3825 3826 if ((nItem >= 0) && (nItem < GETITEMCOUNT(infoPtr)) && (lprc != NULL)) … … 4139 4140 LVITEMA lvItem; 4140 4141 4141 TRACE("(hwnd=%x, nItem=%d)\n", hwnd, nItem);4142 // TRACE("(hwnd=%x, nItem=%d)\n", hwnd, nItem); 4142 4143 4143 4144 ZeroMemory(&lvItem, sizeof(LVITEMA)); … … 4421 4422 BOOL bResult = FALSE; 4422 4423 4423 TRACE("(hwnd=%x, lpptOrigin=%p)\n", hwnd, lpptOrigin);4424 // TRACE("(hwnd=%x, lpptOrigin=%p)\n", hwnd, lpptOrigin); 4424 4425 4425 4426 if ((uView == LVS_SMALLICON) || (uView == LVS_ICON)) … … 4582 4583 INT i; 4583 4584 4584 TRACE("(hwnd=%x, x=%ld, y=%ld)\n", hwnd, lpHitTestInfo->pt.x,4585 lpHitTestInfo->pt.y);4585 // TRACE("(hwnd=%x, x=%ld, y=%ld)\n", hwnd, lpHitTestInfo->pt.x, 4586 // lpHitTestInfo->pt.y); 4586 4587 4587 4588 for (i = 0; i < GETITEMCOUNT(infoPtr); i++) … … 4693 4694 INT nNewColumn = -1; 4694 4695 4695 TRACE("(hwnd=%x, nColumn=%d, lpColumn=%p)\n",hwnd, nColumn,4696 lpColumn);4696 // TRACE("(hwnd=%x, nColumn=%d, lpColumn=%p)\n",hwnd, nColumn, 4697 // lpColumn); 4697 4698 4698 4699 if (lpColumn != NULL) … … 4792 4793 4793 4794 memcpy(&lvca,lpColumn,sizeof(lvca)); 4794 //AH: todo 4795 // if (lpColumn->mask & LVCF_TEXT) 4796 // lvca.pszText = HEAP_strdupWtoA(GetProcessHeap(),0,lpColumn->pszText); 4795 if (lpColumn->mask & LVCF_TEXT) 4796 lvca.pszText = HEAP_strdupWtoA(GetProcessHeap(),0,lpColumn->pszText); 4797 4797 lres = LISTVIEW_InsertColumnA(hwnd,nColumn,&lvca); 4798 4798 if (lpColumn->mask & LVCF_TEXT) … … 4824 4824 LISTVIEW_ITEM *lpItem = NULL; 4825 4825 4826 TRACE("(hwnd=%x,lpLVItem=%p)\n", hwnd, lpLVItem);4826 // TRACE("(hwnd=%x,lpLVItem=%p)\n", hwnd, lpLVItem); 4827 4827 4828 4828 if (lpLVItem != NULL) … … 4907 4907 if (lpLVItem->pszText == LPSTR_TEXTCALLBACKW) 4908 4908 lvia.pszText = LPSTR_TEXTCALLBACKA; 4909 //AH: todo 4910 // else 4911 // lvia.pszText = HEAP_strdupWtoA(GetProcessHeap(),0,lpLVItem->pszText); 4909 else 4910 lvia.pszText = HEAP_strdupWtoA(GetProcessHeap(),0,lpLVItem->pszText); 4912 4911 } 4913 4912 lres = LISTVIEW_InsertItemA(hwnd, &lvia); … … 5352 5351 BOOL bResult = FALSE; 5353 5352 5354 TRACE("(hwnd=%x,nItem=%d,X=%d,Y=%d)\n", hwnd, nItem, nPosX, nPosY);5353 // TRACE("(hwnd=%x,nItem=%d,X=%d,Y=%d)\n", hwnd, nItem, nPosX, nPosY); 5355 5354 5356 5355 if ((nItem >= 0) || (nItem < GETITEMCOUNT(infoPtr))) … … 6139 6138 NMHDR nmh; 6140 6139 6141 TRACE("(hwnd=%x,key=%hu,X=%hu,Y=%hu)\n", hwnd, wKey, wPosX, wPosY);6140 // TRACE("(hwnd=%x,key=%hu,X=%hu,Y=%hu)\n", hwnd, wKey, wPosX, wPosY); 6142 6141 6143 6142 /* send NM_DBLCLK notification */ … … 6178 6177 INT nItem; 6179 6178 6180 TRACE("(hwnd=%x, key=%hu, X=%hu, Y=%hu)\n", hwnd, wKey, wPosX,6181 wPosY);6179 // TRACE("(hwnd=%x, key=%hu, X=%hu, Y=%hu)\n", hwnd, wKey, wPosX, 6180 // wPosY); 6182 6181 6183 6182 /* send NM_RELEASEDCAPTURE notification */ … … 6260 6259 LISTVIEW_INFO *infoPtr = (LISTVIEW_INFO *)GetWindowLongA(hwnd, 0); 6261 6260 6262 TRACE("(hwnd=%x,key=%hu,X=%hu,Y=%hu)\n", hwnd, wKey, wPosX, wPosY);6261 // TRACE("(hwnd=%x,key=%hu,X=%hu,Y=%hu)\n", hwnd, wKey, wPosX, wPosY); 6263 6262 6264 6263 if (infoPtr->bLButtonDown != FALSE) … … 6454 6453 PAINTSTRUCT ps; 6455 6454 6456 TRACE("(hwnd=%x,hdc=%x)\n", hwnd, hdc);6455 // TRACE("(hwnd=%x,hdc=%x)\n", hwnd, hdc); 6457 6456 6458 6457 if (hdc == 0) … … 6489 6488 NMHDR nmh; 6490 6489 6491 TRACE("(hwnd=%x,key=%hu,X=%hu,Y=%hu)\n", hwnd, wKey, wPosX, wPosY);6490 // TRACE("(hwnd=%x,key=%hu,X=%hu,Y=%hu)\n", hwnd, wKey, wPosX, wPosY); 6492 6491 6493 6492 /* send NM_RELEASEDCAPTURE notification */ … … 6526 6525 INT nItem; 6527 6526 6528 TRACE("(hwnd=%x,key=%hu,X=%hu,Y=%hu)\n", hwnd, wKey, wPosX, wPosY);6527 // TRACE("(hwnd=%x,key=%hu,X=%hu,Y=%hu)\n", hwnd, wKey, wPosX, wPosY); 6529 6528 6530 6529 /* send NM_RELEASEDCAPTURE notification */ … … 6582 6581 NMHDR nmh; 6583 6582 6584 TRACE("(hwnd=%x,key=%hu,X=%hu,Y=%hu)\n", hwnd, wKey, wPosX, wPosY);6583 // TRACE("(hwnd=%x,key=%hu,X=%hu,Y=%hu)\n", hwnd, wKey, wPosX, wPosY); 6585 6584 6586 6585 if (infoPtr->bRButtonDown != FALSE) … … 6649 6648 UINT uView = GetWindowLongA(hwnd, GWL_STYLE) & LVS_TYPEMASK; 6650 6649 6651 TRACE("(hwnd=%x,hfont=%x,redraw=%hu)\n", hwnd, hFont, fRedraw);6650 // TRACE("(hwnd=%x,hfont=%x,redraw=%hu)\n", hwnd, hFont, fRedraw); 6652 6651 6653 6652 if (hFont == 0) … … 6696 6695 UINT uView = lStyle & LVS_TYPEMASK; 6697 6696 6698 TRACE("(hwnd=%x, width=%d, height=%d)\n",hwnd, Width, Height);6697 // TRACE("(hwnd=%x, width=%d, height=%d)\n",hwnd, Width, Height); 6699 6698 6700 6699 LISTVIEW_UpdateSize(hwnd); … … 6790 6789 RECT rcList = infoPtr->rcList; 6791 6790 6792 TRACE("(hwnd=%x, styletype=%x, stylestruct=%p)\n",6793 hwnd, wStyleType, lpss);6791 // TRACE("(hwnd=%x, styletype=%x, stylestruct=%p)\n", 6792 // hwnd, wStyleType, lpss); 6794 6793 6795 6794 if (wStyleType == GWL_STYLE) -
trunk/src/comctl32/propsheet.c
r1615 r1730 1 /* $Id: propsheet.c,v 1.1 2 1999-11-05 13:01:33achimha Exp $ */1 /* $Id: propsheet.c,v 1.13 1999-11-14 10:58:38 achimha Exp $ */ 2 2 /* 3 3 * Property Sheets … … 296 296 return FALSE; 297 297 298 //AH: TODO 299 // psInfo->proppage[index].pszText = HEAP_strdupAtoW( GetProcessHeap(), 300 // 0, szTitle ); 298 psInfo->proppage[index].pszText = HEAP_strdupAtoW( GetProcessHeap(), 299 0, szTitle ); 301 300 } 302 //AH: TODO 303 // else 304 // psInfo->proppage[index].pszText = HEAP_strdupAtoW(GetProcessHeap(), 305 // 0, 306 // lppsp->pszTitle); 301 else 302 psInfo->proppage[index].pszText = HEAP_strdupAtoW(GetProcessHeap(), 303 0, 304 lppsp->pszTitle); 307 305 } 308 306 -
trunk/src/comctl32/resource.asm
r1668 r1730 1 1 ;/* This file is generated with wrc version 1.0.14 (08-Aug-1999). Do not edit! */ 2 2 ;/* Source : rsrc.rc */ 3 ;/* Cmdline: wrc -s -I. -I E:\IBMCPP\include -I..\..\include -I..\..\include\win -o resource.asm rsrc.rc */4 ;/* Date : Wed Nov 3 23:21:541999 */3 ;/* Cmdline: wrc -s -I. -IH:\IBMCPP3\include -I..\..\include -I..\..\include\win -o resource.asm rsrc.rc */ 4 ;/* Date : Thu Nov 11 18:41:09 1999 */ 5 5 6 6 .386p … … 12 12 public _Resource_PEResTab 13 13 dd 0 14 dd 0382 0b582h14 dd 0382affb5h 15 15 dd 0 16 16 dw 0, 4 … … 25 25 L2: 26 26 dd 0 27 dd 0382 0b582h27 dd 0382affb5h 28 28 dd 0 29 29 dw 0, 6 … … 42 42 L4: 43 43 dd 0 44 dd 0382 0b582h44 dd 0382affb5h 45 45 dd 0 46 46 dw 0, 1 … … 49 49 L5: 50 50 dd 0 51 dd 0382 0b582h51 dd 0382affb5h 52 52 dd 0 53 53 dw 0, 3 … … 60 60 L16: 61 61 dd 0 62 dd 0382 0b582h62 dd 0382affb5h 63 63 dd 0 64 64 dw 0, 1 … … 67 67 L2_120: 68 68 dd 0 69 dd 0382 0b582h69 dd 0382affb5h 70 70 dd 0 71 71 dw 0, 1 … … 74 74 L2_121: 75 75 dd 0 76 dd 0382 0b582h76 dd 0382affb5h 77 77 dd 0 78 78 dw 0, 1 … … 81 81 L2_124: 82 82 dd 0 83 dd 0382 0b582h83 dd 0382affb5h 84 84 dd 0 85 85 dw 0, 1 … … 88 88 L2_125: 89 89 dd 0 90 dd 0382 0b582h90 dd 0382affb5h 91 91 dd 0 92 92 dw 0, 1 … … 95 95 L2_130: 96 96 dd 0 97 dd 0382 0b582h97 dd 0382affb5h 98 98 dd 0 99 99 dw 0, 1 … … 102 102 L2_131: 103 103 dd 0 104 dd 0382 0b582h104 dd 0382affb5h 105 105 dd 0 106 106 dw 0, 1 … … 109 109 L4_300: 110 110 dd 0 111 dd 0382 0b582h111 dd 0382affb5h 112 112 dd 0 113 113 dw 0, 1 … … 116 116 L5_200: 117 117 dd 0 118 dd 0382 0b582h118 dd 0382affb5h 119 119 dd 0 120 120 dw 0, 1 … … 123 123 L5_1006: 124 124 dd 0 125 dd 0382 0b582h125 dd 0382affb5h 126 126 dd 0 127 127 dw 0, 1 … … 130 130 L5_1020: 131 131 dd 0 132 dd 0382 0b582h132 dd 0382affb5h 133 133 dd 0 134 134 dw 0, 1 … … 137 137 L16_1: 138 138 dd 0 139 dd 0382 0b582h139 dd 0382affb5h 140 140 dd 0 141 141 dw 0, 1
Note:
See TracChangeset
for help on using the changeset viewer.