Ignore:
Timestamp:
Feb 25, 2000, 6:00:18 PM (26 years ago)
Author:
cbratschi
Message:

unicode and other changes

File:
1 edited

Legend:

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

    r2875 r2895  
    1 /* $Id: CCBase.cpp,v 1.1 2000-02-23 17:09:39 cbratschi Exp $ */
     1/* $Id: CCBase.cpp,v 1.2 2000-02-25 17:00:15 cbratschi Exp $ */
    22/*
    33 * COMCTL32 Base Functions and Macros for all Controls
     
    3030
    3131  setInfoPtr(hwnd,infoPtr);
     32  ZeroMemory(infoPtr,dwSize);
    3233  infoPtr->dwSize        = dwSize;
    3334  infoPtr->iVersion      = 0;
     
    9091      } else return IsWindowUnicode(hwnd);
    9192
    92     case WM_NOTIFY:
     93    case WM_NOTIFYFORMAT:
    9394    {
    9495      infoPtr = getInfoPtr(hwnd);
     
    128129//Notifications
    129130
     131BOOL isUnicodeNotify(COMCTL32_HEADER *infoPtr)
     132{
     133  if (!infoPtr) return FALSE;
     134
     135  return infoPtr->uNotifyFormat == NFR_UNICODE;
     136}
     137
     138BOOL isUnicodeNotify(HWND hwnd)
     139{
     140  COMCTL32_HEADER *infoPtr = getInfoPtr(hwnd);
     141
     142  return isUnicodeNotify(infoPtr);
     143}
     144
    130145LRESULT sendNotify(HWND hwnd,UINT code)
    131146{
     
    136151  nmhdr.code     = code;
    137152
    138   return SendMessageA(hwnd,WM_NOTIFY,nmhdr.idFrom,(LPARAM)&nmhdr);
     153  return SendMessageA(GetParent(hwnd),WM_NOTIFY,nmhdr.idFrom,(LPARAM)&nmhdr);
    139154}
    140155
     
    147162  nmhdr->code     = code;
    148163
    149   return SendMessageA(hwnd,WM_NOTIFY,nmhdr->idFrom,(LPARAM)nmhdr);
     164  return SendMessageA(GetParent(hwnd),WM_NOTIFY,nmhdr->idFrom,(LPARAM)nmhdr);
    150165}
    151166
Note: See TracChangeset for help on using the changeset viewer.