Ignore:
Timestamp:
Mar 21, 2000, 6:30:46 PM (25 years ago)
Author:
cbratschi
Message:

bug fixes and improvements

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:23 cbratschi Exp $ */
     1/* $Id: pager.cpp,v 1.3 2000-03-21 17:30:44 cbratschi Exp $ */
    22/*
    33 * Pager control
     
    201201    /* allocate memory for info structure */
    202202    infoPtr = (PAGER_INFO*)initControl(hwnd,sizeof(PAGER_INFO));
    203     SetWindowLongA (hwnd, 0, (DWORD)infoPtr);
    204203
    205204    /* set default settings */
     
    277276}
    278277
    279 
     278static VOID PAGER_Draw(HWND hwnd,HDC hdc,RECT *updateRect)
     279{
     280  drawStubControl(hwnd,hdc);
     281}
     282
     283static 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}
    280299
    281300static LRESULT WINAPI
     
    338357            return SendMessageA (GetParent (hwnd), uMsg, wParam, lParam);
    339358
    340 /*      case WM_PAINT: */
    341 /*          return PAGER_Paint (hwnd, wParam); */
     359        case WM_PAINT:
     360          return PAGER_Paint(hwnd,wParam,lParam);
    342361
    343362        case WM_SIZE:
     
    345364
    346365        default:
    347 //          if (uMsg >= WM_USER)
    348 //              ERR (pager, "unknown msg %04x wp=%08x lp=%08lx\n",
    349 //                   uMsg, wParam, lParam);
    350             return defComCtl32ProcA (hwnd, uMsg, wParam, lParam);
     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);
    351370    }
    352371    return 0;
Note: See TracChangeset for help on using the changeset viewer.