Ignore:
Timestamp:
May 15, 2003, 4:25:14 PM (22 years ago)
Author:
sandervl
Message:

Wine resync

File:
1 edited

Legend:

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

    r9370 r10097  
    111111
    112112
    113 HANDLE COMCTL32_hHeap = (HANDLE)NULL;
    114 LPSTR    COMCTL32_aSubclass = (LPSTR)NULL;
     113HANDLE COMCTL32_hHeap = NULL;
     114LPSTR    COMCTL32_aSubclass = NULL;
    115115HMODULE COMCTL32_hModule = 0;
    116116LANGID  COMCTL32_uiLang = MAKELANGID(LANG_NEUTRAL, SUBLANG_NEUTRAL);
    117 HBRUSH  COMCTL32_hPattern55AABrush = (HANDLE)NULL;
     117HBRUSH  COMCTL32_hPattern55AABrush = NULL;
    118118COMCTL32_SysColor  comctl32_color;
    119119
    120 static HBITMAP COMCTL32_hPattern55AABitmap = (HANDLE)NULL;
     120static HBITMAP COMCTL32_hPattern55AABitmap = NULL;
    121121
    122122static const WORD wPattern55AA[] =
     
    128128
    129129/***********************************************************************
    130  * COMCTL32_LibMain [Internal] Initializes the internal 'COMCTL32.DLL'.
     130 * DllMain [Internal] Initializes the internal 'COMCTL32.DLL'.
    131131 *
    132132 * PARAMS
     
    140140 */
    141141
    142 BOOL WINAPI
    143 COMCTL32_LibMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
     142#ifdef __WIN32OS2__
     143BOOL WINAPI COMCTL32_DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
     144#else
     145BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
     146#endif
    144147{
    145148    TRACE("%p,%lx,%p\n", hinstDLL, fdwReason, lpvReserved);
     
    205208            /* delete local pattern brush */
    206209            DeleteObject (COMCTL32_hPattern55AABrush);
    207             COMCTL32_hPattern55AABrush = (HANDLE)NULL;
     210            COMCTL32_hPattern55AABrush = NULL;
    208211            DeleteObject (COMCTL32_hPattern55AABitmap);
    209             COMCTL32_hPattern55AABitmap = (HANDLE)NULL;
     212            COMCTL32_hPattern55AABitmap = NULL;
    210213
    211214            /* delete global subclassing atom */
    212215            GlobalDeleteAtom (LOWORD(COMCTL32_aSubclass));
    213216            TRACE("Subclassing atom deleted: %p\n", COMCTL32_aSubclass);
    214             COMCTL32_aSubclass = (LPSTR)NULL;
     217            COMCTL32_aSubclass = NULL;
    215218
    216219            /* destroy private heap */
    217220            HeapDestroy (COMCTL32_hHeap);
    218221            TRACE("Heap destroyed: %p\n", COMCTL32_hHeap);
    219             COMCTL32_hHeap = (HANDLE)NULL;
     222            COMCTL32_hHeap = NULL;
    220223            break;
    221224    }
     
    421424            TRACE("control id 0x%x\n", *lpRun);
    422425            GetWindowRect (hwndCtrl, &rcCtrl);
    423             MapWindowPoints ((HWND)0, hwnd, (LPPOINT)&rcCtrl, 2);
     426            MapWindowPoints (NULL, hwnd, (LPPOINT)&rcCtrl, 2);
    424427            SubtractRect (lpRect, lpRect, &rcCtrl);
    425428        }
     
    883886    nWidth  = (INT)lpBitmapInfo->biWidth;
    884887    nHeight = (INT)lpBitmapInfo->biHeight;
    885     hdcScreen = GetDC ((HWND)0);
     888    hdcScreen = GetDC (NULL);
    886889    hbm = CreateCompatibleBitmap (hdcScreen, nWidth, nHeight);
    887890    if (hbm) {
     
    896899        DeleteDC (hdcDst);
    897900    }
    898     ReleaseDC ((HWND)0, hdcScreen);
     901    ReleaseDC (NULL, hdcScreen);
    899902    GlobalFree ((HGLOBAL)lpBitmapInfo);
    900903    FreeResource (hglb);
     
    10411044
    10421045/***********************************************************************
    1043  * SetWindowSubclass [COMCTL32.@]
     1046 * SetWindowSubclass [COMCTL32.410]
    10441047 *
    10451048 * Starts a window subclass
     
    11401143
    11411144/***********************************************************************
    1142  * GetWindowSubclass [COMCTL32.@]
     1145 * GetWindowSubclass [COMCTL32.411]
    11431146 *
    11441147 * Gets the Reference data from a subclass.
     
    11471150 *     hWnd [in] Handle to window which were subclassing
    11481151 *     pfnSubclass [in] Pointer to the subclass procedure
    1149  *     iID [in] Unique indentifier of the subclassing procedure
     1152 *     uID [in] Unique indentifier of the subclassing procedure
    11501153 *     pdwRef [out] Pointer to the reference data
    11511154 *
    11521155 * RETURNS
    1153  *     Success: non-sero
    1154  *     Failure: zero
     1156 *     Success: Non-zero
     1157 *     Failure: 0
    11551158 */
    11561159
     
    11801183
    11811184/***********************************************************************
    1182  * RemoveWindowSubclass [COMCTL32.@]
     1185 * RemoveWindowSubclass [COMCTL32.412]
    11831186 *
    11841187 * Removes a window subclass.
     
    12441247
    12451248/***********************************************************************
    1246  * DefSubclassProc [COMCTL32.@]
     1249 * DefSubclassProc [COMCTL32.413]
    12471250 *
    12481251 * Calls the next window procedure (ie. the one before this subclass)
Note: See TracChangeset for help on using the changeset viewer.