Changeset 3145 for trunk/src/comctl32/progress.cpp
- Timestamp:
- Mar 17, 2000, 6:13:26 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/comctl32/progress.cpp
r2875 r3145 1 /* $Id: progress.cpp,v 1. 1 2000-02-23 17:09:46cbratschi Exp $ */1 /* $Id: progress.cpp,v 1.2 2000-03-17 17:13:23 cbratschi Exp $ */ 2 2 /* 3 3 * Progress control … … 14 14 #include "winbase.h" 15 15 #include "commctrl.h" 16 #include "ccbase.h" 16 17 #include "progress.h" 17 18 #include "comctl32.h" 18 19 19 20 20 /* Control configuration constants */ 21 21 … … 23 23 #define BORDER_WIDTH 1 24 24 25 #define PROGRESS_GetInfoPtr(hwnd) ((PROGRESS_INFO *)GetWindowLongA(hwnd,0))25 #define PROGRESS_GetInfoPtr(hwnd) ((PROGRESS_INFO*)getInfoPtr(hwnd)) 26 26 27 27 … … 279 279 280 280 /* allocate memory for info struct */ 281 infoPtr = (PROGRESS_INFO *)COMCTL32_Alloc(sizeof(PROGRESS_INFO));281 infoPtr = (PROGRESS_INFO*)initControl(hwnd,sizeof(PROGRESS_INFO)); 282 282 SetWindowLongA(hwnd,0,(DWORD)infoPtr); 283 283 … … 290 290 infoPtr->ColorBk = CLR_DEFAULT; 291 291 infoPtr->hFont = (HANDLE)NULL; 292 // TRACE(progress, "Progress Ctrl creation, hwnd=%04x\n", hwnd);293 292 294 293 return 0; … … 299 298 PROGRESS_INFO *infoPtr = PROGRESS_GetInfoPtr(hwnd); 300 299 301 // TRACE (progress, "Progress Ctrl destruction, hwnd=%04x\n", hwnd); 302 COMCTL32_Free (infoPtr); 300 doneControl(hwnd); 303 301 304 302 return 0; … … 536 534 // ERR(progress, "unknown msg %04x wp=%04x lp=%08lx\n", 537 535 // message, wParam, lParam ); 538 return DefWindowProcA( hwnd, message, wParam, lParam );536 return defComCtl32ProcA( hwnd, message, wParam, lParam ); 539 537 } 540 538 … … 553 551 { 554 552 WNDCLASSA wndClass; 555 556 //SvL: Don't check this now557 // if (GlobalFindAtomA(PROGRESS_CLASSA)) return;558 553 559 554 ZeroMemory (&wndClass, sizeof( WNDCLASSA)); … … 578 573 PROGRESS_Unregister (VOID) 579 574 { 580 if (GlobalFindAtomA(PROGRESS_CLASSA)) 581 UnregisterClassA(PROGRESS_CLASSA, (HINSTANCE)NULL); 582 } 583 575 UnregisterClassA(PROGRESS_CLASSA, (HINSTANCE)NULL); 576 } 577
Note:
See TracChangeset
for help on using the changeset viewer.