Changeset 1730 for trunk/src


Ignore:
Timestamp:
Nov 14, 1999, 11:58:38 AM (26 years ago)
Author:
achimha
Message:

added HEAP_strdupAtoW/WtoA calls that were commented out

Location:
trunk/src/comctl32
Files:
5 edited

Legend:

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

    r1058 r1730  
    1 /* $Id: comctl32.c,v 1.10 1999-09-26 11:01:08 achimha Exp $ */
     1/* $Id: comctl32.c,v 1.11 1999-11-14 10:58:37 achimha Exp $ */
    22/*
    33 * Win32 common controls implementation
     
    365365DrawStatusTextW (HDC hdc, LPRECT lprc, LPCWSTR text, UINT style)
    366366{
    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);
    370368    DrawStatusTextA (hdc, lprc, p, style);
    371369    HeapFree (GetProcessHeap (), 0, p );
  • trunk/src/comctl32/comctl32.h

    r1615 r1730  
    1 /* $Id: comctl32.h,v 1.9 1999-11-05 13:01:32 achimha Exp $ */
     1/* $Id: comctl32.h,v 1.10 1999-11-14 10:58:37 achimha Exp $ */
    22/*
    33 * Win32 common controls implementation
     
    4242}
    4343#endif
     44
     45
     46// string functions from kernel32
     47LPWSTR WIN32API HEAP_strdupAtoW( HANDLE heap, DWORD flags, LPCSTR str );
     48LPSTR  WIN32API HEAP_strdupWtoA( HANDLE heap, DWORD flags, LPCWSTR str );
    4449
    4550
  • trunk/src/comctl32/listview.c

    r1565 r1730  
    5050#include "listview.h"
    5151#include "debugtools.h"
     52#include "comctl32.h"
    5253
    5354/*
     
    17721773  LVITEMA lvItem;
    17731774
    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);
    17761777
    17771778  /* get information needed for drawing the item */
     
    18161817  DWORD dwTextColor;
    18171818
    1818   TRACE("(hwnd=%x, hdc=%x, nItem=%d\n", hwnd, hdc, nItem);
     1819//  TRACE("(hwnd=%x, hdc=%x, nItem=%d\n", hwnd, hdc, nItem);
    18191820
    18201821  /* get information needed for drawing the item */
     
    19351936  LVITEMA lvItem;
    19361937
    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);
    19401941
    19411942  /* get information needed for drawing the item */
     
    24692470  HDPA hdpaSubItems;
    24702471
    2471   TRACE("(hwnd=%x,)\n", hwnd);
     2472//  TRACE("(hwnd=%x,)\n", hwnd);
    24722473
    24732474  if (GETITEMCOUNT(infoPtr) > 0)
     
    26242625  INT i;
    26252626
    2626   TRACE("(hwnd=%x,nItem=%d)\n", hwnd, nItem);
     2627//  TRACE("(hwnd=%x,nItem=%d)\n", hwnd, nItem);
    26272628
    26282629  if ((nItem >= 0) && (nItem < GETITEMCOUNT(infoPtr)))
     
    34993500  HDPA hdpaSubItems;
    35003501
    3501   TRACE("(hwnd=%x, lpLVItem=%p)\n", hwnd, lpLVItem);
     3502//  TRACE("(hwnd=%x, lpLVItem=%p)\n", hwnd, lpLVItem);
    35023503
    35033504  if (lpLVItem != NULL)
     
    37383739  INT nRow;
    37393740
    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);
    37423743
    37433744  if ((nItem >= 0) && (nItem < GETITEMCOUNT(infoPtr)) &&
     
    38213822  TEXTMETRICA tm;
    38223823
    3823   TRACE("(hwnd=%x, nItem=%d, lprc=%p)\n", hwnd, nItem, lprc);
     3824//  TRACE("(hwnd=%x, nItem=%d, lprc=%p)\n", hwnd, nItem, lprc);
    38243825
    38253826  if ((nItem >= 0) && (nItem < GETITEMCOUNT(infoPtr)) && (lprc != NULL))
     
    41394140  LVITEMA lvItem;
    41404141
    4141   TRACE("(hwnd=%x, nItem=%d)\n", hwnd, nItem);
     4142//  TRACE("(hwnd=%x, nItem=%d)\n", hwnd, nItem);
    41424143
    41434144  ZeroMemory(&lvItem, sizeof(LVITEMA));
     
    44214422  BOOL bResult = FALSE;
    44224423
    4423   TRACE("(hwnd=%x, lpptOrigin=%p)\n", hwnd, lpptOrigin);
     4424//  TRACE("(hwnd=%x, lpptOrigin=%p)\n", hwnd, lpptOrigin);
    44244425
    44254426  if ((uView == LVS_SMALLICON) || (uView == LVS_ICON))
     
    45824583  INT i;
    45834584
    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);
    45864587
    45874588  for (i = 0; i < GETITEMCOUNT(infoPtr); i++)
     
    46934694  INT nNewColumn = -1;
    46944695
    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);
    46974698
    46984699  if (lpColumn != NULL)
     
    47924793
    47934794  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);
    47974797  lres = LISTVIEW_InsertColumnA(hwnd,nColumn,&lvca);
    47984798  if (lpColumn->mask & LVCF_TEXT)
     
    48244824  LISTVIEW_ITEM *lpItem = NULL;
    48254825
    4826   TRACE("(hwnd=%x,lpLVItem=%p)\n", hwnd, lpLVItem);
     4826//  TRACE("(hwnd=%x,lpLVItem=%p)\n", hwnd, lpLVItem);
    48274827
    48284828  if (lpLVItem != NULL)
     
    49074907    if (lpLVItem->pszText == LPSTR_TEXTCALLBACKW)
    49084908      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);
    49124911  }
    49134912  lres = LISTVIEW_InsertItemA(hwnd, &lvia);
     
    53525351  BOOL bResult = FALSE;
    53535352
    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);
    53555354
    53565355  if ((nItem >= 0) || (nItem < GETITEMCOUNT(infoPtr)))
     
    61396138  NMHDR nmh;
    61406139
    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);
    61426141
    61436142  /* send NM_DBLCLK notification */
     
    61786177  INT nItem;
    61796178
    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);
    61826181
    61836182  /* send NM_RELEASEDCAPTURE notification */
     
    62606259  LISTVIEW_INFO *infoPtr = (LISTVIEW_INFO *)GetWindowLongA(hwnd, 0);
    62616260
    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);
    62636262
    62646263  if (infoPtr->bLButtonDown != FALSE)
     
    64546453  PAINTSTRUCT ps;
    64556454
    6456    TRACE("(hwnd=%x,hdc=%x)\n", hwnd, hdc);
     6455//   TRACE("(hwnd=%x,hdc=%x)\n", hwnd, hdc);
    64576456
    64586457  if (hdc == 0)
     
    64896488  NMHDR nmh;
    64906489
    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);
    64926491
    64936492  /* send NM_RELEASEDCAPTURE notification */
     
    65266525  INT nItem;
    65276526
    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);
    65296528
    65306529  /* send NM_RELEASEDCAPTURE notification */
     
    65826581  NMHDR nmh;
    65836582
    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);
    65856584
    65866585  if (infoPtr->bRButtonDown != FALSE)
     
    66496648  UINT uView = GetWindowLongA(hwnd, GWL_STYLE) & LVS_TYPEMASK;
    66506649
    6651   TRACE("(hwnd=%x,hfont=%x,redraw=%hu)\n", hwnd, hFont, fRedraw);
     6650//  TRACE("(hwnd=%x,hfont=%x,redraw=%hu)\n", hwnd, hFont, fRedraw);
    66526651
    66536652  if (hFont == 0)
     
    66966695  UINT uView = lStyle & LVS_TYPEMASK;
    66976696
    6698   TRACE("(hwnd=%x, width=%d, height=%d)\n",hwnd, Width, Height);
     6697//  TRACE("(hwnd=%x, width=%d, height=%d)\n",hwnd, Width, Height);
    66996698
    67006699  LISTVIEW_UpdateSize(hwnd);
     
    67906789  RECT rcList = infoPtr->rcList;
    67916790
    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);
    67946793
    67956794  if (wStyleType == GWL_STYLE)
  • trunk/src/comctl32/propsheet.c

    r1615 r1730  
    1 /* $Id: propsheet.c,v 1.12 1999-11-05 13:01:33 achimha Exp $ */
     1/* $Id: propsheet.c,v 1.13 1999-11-14 10:58:38 achimha Exp $ */
    22/*
    33 * Property Sheets
     
    296296        return FALSE;
    297297
    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 );
    301300    }
    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);
    307305  }
    308306
  • trunk/src/comctl32/resource.asm

    r1668 r1730  
    11;/* This file is generated with wrc version 1.0.14 (08-Aug-1999). Do not edit! */
    22;/* Source : rsrc.rc */
    3 ;/* Cmdline: wrc -s -I. -IE:\IBMCPP\include -I..\..\include -I..\..\include\win -o resource.asm rsrc.rc */
    4 ;/* Date   : Wed Nov  3 23:21:54 1999 */
     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 */
    55
    66        .386p
     
    1212        public  _Resource_PEResTab
    1313        dd      0
    14         dd      03820b582h
     14        dd      0382affb5h
    1515        dd      0
    1616        dw      0, 4
     
    2525L2:
    2626        dd      0
    27         dd      03820b582h
     27        dd      0382affb5h
    2828        dd      0
    2929        dw      0, 6
     
    4242L4:
    4343        dd      0
    44         dd      03820b582h
     44        dd      0382affb5h
    4545        dd      0
    4646        dw      0, 1
     
    4949L5:
    5050        dd      0
    51         dd      03820b582h
     51        dd      0382affb5h
    5252        dd      0
    5353        dw      0, 3
     
    6060L16:
    6161        dd      0
    62         dd      03820b582h
     62        dd      0382affb5h
    6363        dd      0
    6464        dw      0, 1
     
    6767L2_120:
    6868        dd      0
    69         dd      03820b582h
     69        dd      0382affb5h
    7070        dd      0
    7171        dw      0, 1
     
    7474L2_121:
    7575        dd      0
    76         dd      03820b582h
     76        dd      0382affb5h
    7777        dd      0
    7878        dw      0, 1
     
    8181L2_124:
    8282        dd      0
    83         dd      03820b582h
     83        dd      0382affb5h
    8484        dd      0
    8585        dw      0, 1
     
    8888L2_125:
    8989        dd      0
    90         dd      03820b582h
     90        dd      0382affb5h
    9191        dd      0
    9292        dw      0, 1
     
    9595L2_130:
    9696        dd      0
    97         dd      03820b582h
     97        dd      0382affb5h
    9898        dd      0
    9999        dw      0, 1
     
    102102L2_131:
    103103        dd      0
    104         dd      03820b582h
     104        dd      0382affb5h
    105105        dd      0
    106106        dw      0, 1
     
    109109L4_300:
    110110        dd      0
    111         dd      03820b582h
     111        dd      0382affb5h
    112112        dd      0
    113113        dw      0, 1
     
    116116L5_200:
    117117        dd      0
    118         dd      03820b582h
     118        dd      0382affb5h
    119119        dd      0
    120120        dw      0, 1
     
    123123L5_1006:
    124124        dd      0
    125         dd      03820b582h
     125        dd      0382affb5h
    126126        dd      0
    127127        dw      0, 1
     
    130130L5_1020:
    131131        dd      0
    132         dd      03820b582h
     132        dd      0382affb5h
    133133        dd      0
    134134        dw      0, 1
     
    137137L16_1:
    138138        dd      0
    139         dd      03820b582h
     139        dd      0382affb5h
    140140        dd      0
    141141        dw      0, 1
Note: See TracChangeset for help on using the changeset viewer.