Changeset 10097 for trunk/src/comctl32/commctrl.c
- Timestamp:
- May 15, 2003, 4:25:14 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/comctl32/commctrl.c
r9370 r10097 111 111 112 112 113 HANDLE COMCTL32_hHeap = (HANDLE)NULL;114 LPSTR COMCTL32_aSubclass = (LPSTR)NULL;113 HANDLE COMCTL32_hHeap = NULL; 114 LPSTR COMCTL32_aSubclass = NULL; 115 115 HMODULE COMCTL32_hModule = 0; 116 116 LANGID COMCTL32_uiLang = MAKELANGID(LANG_NEUTRAL, SUBLANG_NEUTRAL); 117 HBRUSH COMCTL32_hPattern55AABrush = (HANDLE)NULL;117 HBRUSH COMCTL32_hPattern55AABrush = NULL; 118 118 COMCTL32_SysColor comctl32_color; 119 119 120 static HBITMAP COMCTL32_hPattern55AABitmap = (HANDLE)NULL;120 static HBITMAP COMCTL32_hPattern55AABitmap = NULL; 121 121 122 122 static const WORD wPattern55AA[] = … … 128 128 129 129 /*********************************************************************** 130 * COMCTL32_LibMain [Internal] Initializes the internal 'COMCTL32.DLL'.130 * DllMain [Internal] Initializes the internal 'COMCTL32.DLL'. 131 131 * 132 132 * PARAMS … … 140 140 */ 141 141 142 BOOL WINAPI 143 COMCTL32_LibMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) 142 #ifdef __WIN32OS2__ 143 BOOL WINAPI COMCTL32_DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) 144 #else 145 BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) 146 #endif 144 147 { 145 148 TRACE("%p,%lx,%p\n", hinstDLL, fdwReason, lpvReserved); … … 205 208 /* delete local pattern brush */ 206 209 DeleteObject (COMCTL32_hPattern55AABrush); 207 COMCTL32_hPattern55AABrush = (HANDLE)NULL;210 COMCTL32_hPattern55AABrush = NULL; 208 211 DeleteObject (COMCTL32_hPattern55AABitmap); 209 COMCTL32_hPattern55AABitmap = (HANDLE)NULL;212 COMCTL32_hPattern55AABitmap = NULL; 210 213 211 214 /* delete global subclassing atom */ 212 215 GlobalDeleteAtom (LOWORD(COMCTL32_aSubclass)); 213 216 TRACE("Subclassing atom deleted: %p\n", COMCTL32_aSubclass); 214 COMCTL32_aSubclass = (LPSTR)NULL;217 COMCTL32_aSubclass = NULL; 215 218 216 219 /* destroy private heap */ 217 220 HeapDestroy (COMCTL32_hHeap); 218 221 TRACE("Heap destroyed: %p\n", COMCTL32_hHeap); 219 COMCTL32_hHeap = (HANDLE)NULL;222 COMCTL32_hHeap = NULL; 220 223 break; 221 224 } … … 421 424 TRACE("control id 0x%x\n", *lpRun); 422 425 GetWindowRect (hwndCtrl, &rcCtrl); 423 MapWindowPoints ( (HWND)0, hwnd, (LPPOINT)&rcCtrl, 2);426 MapWindowPoints (NULL, hwnd, (LPPOINT)&rcCtrl, 2); 424 427 SubtractRect (lpRect, lpRect, &rcCtrl); 425 428 } … … 883 886 nWidth = (INT)lpBitmapInfo->biWidth; 884 887 nHeight = (INT)lpBitmapInfo->biHeight; 885 hdcScreen = GetDC ( (HWND)0);888 hdcScreen = GetDC (NULL); 886 889 hbm = CreateCompatibleBitmap (hdcScreen, nWidth, nHeight); 887 890 if (hbm) { … … 896 899 DeleteDC (hdcDst); 897 900 } 898 ReleaseDC ( (HWND)0, hdcScreen);901 ReleaseDC (NULL, hdcScreen); 899 902 GlobalFree ((HGLOBAL)lpBitmapInfo); 900 903 FreeResource (hglb); … … 1041 1044 1042 1045 /*********************************************************************** 1043 * SetWindowSubclass [COMCTL32. @]1046 * SetWindowSubclass [COMCTL32.410] 1044 1047 * 1045 1048 * Starts a window subclass … … 1140 1143 1141 1144 /*********************************************************************** 1142 * GetWindowSubclass [COMCTL32. @]1145 * GetWindowSubclass [COMCTL32.411] 1143 1146 * 1144 1147 * Gets the Reference data from a subclass. … … 1147 1150 * hWnd [in] Handle to window which were subclassing 1148 1151 * pfnSubclass [in] Pointer to the subclass procedure 1149 * iID [in] Unique indentifier of the subclassing procedure1152 * uID [in] Unique indentifier of the subclassing procedure 1150 1153 * pdwRef [out] Pointer to the reference data 1151 1154 * 1152 1155 * RETURNS 1153 * Success: non-sero1154 * Failure: zero1156 * Success: Non-zero 1157 * Failure: 0 1155 1158 */ 1156 1159 … … 1180 1183 1181 1184 /*********************************************************************** 1182 * RemoveWindowSubclass [COMCTL32. @]1185 * RemoveWindowSubclass [COMCTL32.412] 1183 1186 * 1184 1187 * Removes a window subclass. … … 1244 1247 1245 1248 /*********************************************************************** 1246 * DefSubclassProc [COMCTL32. @]1249 * DefSubclassProc [COMCTL32.413] 1247 1250 * 1248 1251 * Calls the next window procedure (ie. the one before this subclass)
Note:
See TracChangeset
for help on using the changeset viewer.