Changeset 3182 for trunk/src/comctl32/pager.cpp
- Timestamp:
- Mar 21, 2000, 6:30:46 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/comctl32/pager.cpp
r3145 r3182 1 /* $Id: pager.cpp,v 1. 2 2000-03-17 17:13:23cbratschi Exp $ */1 /* $Id: pager.cpp,v 1.3 2000-03-21 17:30:44 cbratschi Exp $ */ 2 2 /* 3 3 * Pager control … … 201 201 /* allocate memory for info structure */ 202 202 infoPtr = (PAGER_INFO*)initControl(hwnd,sizeof(PAGER_INFO)); 203 SetWindowLongA (hwnd, 0, (DWORD)infoPtr);204 203 205 204 /* set default settings */ … … 277 276 } 278 277 279 278 static VOID PAGER_Draw(HWND hwnd,HDC hdc,RECT *updateRect) 279 { 280 drawStubControl(hwnd,hdc); 281 } 282 283 static LRESULT PAGER_Paint(HWND hwnd,WPARAM wParam,LPARAM lParam) 284 { 285 HDC hdc = (HDC)wParam; 286 287 if (!hdc) 288 { 289 PAINTSTRUCT ps; 290 291 hdc = BeginPaint(hwnd,&ps); 292 PAGER_Draw(hwnd, hdc,&ps.rcPaint); 293 EndPaint(hwnd,&ps); 294 } else 295 PAGER_Draw(hwnd,hdc,NULL); 296 297 return 0; 298 } 280 299 281 300 static LRESULT WINAPI … … 338 357 return SendMessageA (GetParent (hwnd), uMsg, wParam, lParam); 339 358 340 /* case WM_PAINT: */ 341 /* return PAGER_Paint (hwnd, wParam); */ 359 case WM_PAINT: 360 return PAGER_Paint(hwnd,wParam,lParam); 342 361 343 362 case WM_SIZE: … … 345 364 346 365 default: 347 //if (uMsg >= WM_USER)348 //ERR (pager, "unknown msg %04x wp=%08x lp=%08lx\n",349 //uMsg, wParam, lParam);350 366 //if (uMsg >= WM_USER) 367 // ERR (pager, "unknown msg %04x wp=%08x lp=%08lx\n", 368 // uMsg, wParam, lParam); 369 return defComCtl32ProcA (hwnd, uMsg, wParam, lParam); 351 370 } 352 371 return 0;
Note:
See TracChangeset
for help on using the changeset viewer.