Changeset 3154 for trunk/src/comctl32/updown.cpp
- Timestamp:
- Mar 18, 2000, 5:17:35 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/comctl32/updown.cpp
r2875 r3154 1 /* $Id: updown.cpp,v 1. 1 2000-02-23 17:09:51cbratschi Exp $ */1 /* $Id: updown.cpp,v 1.2 2000-03-18 16:17:35 cbratschi Exp $ */ 2 2 /* 3 3 * Updown control … … 37 37 #include "commctrl.h" 38 38 #include "winnls.h" 39 #include "ccbase.h" 39 40 #include "updown.h" 40 41 … … 70 71 #define UNKNOWN_PARAM(msg, wParam, lParam) 71 72 72 #define UPDOWN_GetInfoPtr(hwnd) ((UPDOWN_INFO *)GetWindowLongA(hwnd,0))73 #define UPDOWN_GetInfoPtr(hwnd) ((UPDOWN_INFO*)getInfoPtr(hwnd)) 73 74 74 75 static LRESULT CALLBACK … … 714 715 DWORD dwStyle = GetWindowLongA(hwnd,GWL_STYLE); 715 716 716 infoPtr = (UPDOWN_INFO*)COMCTL32_Alloc(sizeof(UPDOWN_INFO)); 717 SetWindowLongA (hwnd, 0, (DWORD)infoPtr); 717 infoPtr = (UPDOWN_INFO*)initControl(hwnd,sizeof(UPDOWN_INFO)); 718 718 719 719 /* initialize the info struct */ … … 744 744 RemovePropA(infoPtr->Buddy, BUDDY_UPDOWN_HWND); 745 745 746 COMCTL32_Free (infoPtr); 747 748 // TRACE(updown, "UpDown Ctrl destruction, hwnd=%04x\n", hwnd); 746 doneControl(hwnd); 749 747 750 748 return 0; … … 1094 1092 // ERR (updown, "unknown msg %04x wp=%04x lp=%08lx\n", 1095 1093 // message, wParam, lParam); 1096 return DefWindowProcA(hwnd,message,wParam,lParam);1094 return defComCtl32ProcA(hwnd,message,wParam,lParam); 1097 1095 } 1098 1096 … … 1159 1157 WNDCLASSA wndClass; 1160 1158 1161 //SvL: Don't check this now1162 // if( GlobalFindAtomA( UPDOWN_CLASSA ) ) return;1163 1164 1159 ZeroMemory( &wndClass, sizeof( WNDCLASSA ) ); 1165 1160 wndClass.style = CS_GLOBALCLASS | CS_VREDRAW; … … 1184 1179 UPDOWN_Unregister (VOID) 1185 1180 { 1186 if (GlobalFindAtomA (UPDOWN_CLASSA)) 1187 UnregisterClassA (UPDOWN_CLASSA, (HINSTANCE)NULL); 1188 } 1189 1181 UnregisterClassA (UPDOWN_CLASSA, (HINSTANCE)NULL); 1182 } 1183
Note:
See TracChangeset
for help on using the changeset viewer.