Ignore:
Timestamp:
Mar 17, 2000, 6:13:26 PM (25 years ago)
Author:
cbratschi
Message:

trackbar buddy fix, tooltip enhancements

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:46 cbratschi Exp $ */
     1/* $Id: progress.cpp,v 1.2 2000-03-17 17:13:23 cbratschi Exp $ */
    22/*
    33 * Progress control
     
    1414#include "winbase.h"
    1515#include "commctrl.h"
     16#include "ccbase.h"
    1617#include "progress.h"
    1718#include "comctl32.h"
    1819
    19 
    2020/* Control configuration constants */
    2121
     
    2323#define BORDER_WIDTH 1
    2424
    25 #define PROGRESS_GetInfoPtr(hwnd) ((PROGRESS_INFO *)GetWindowLongA(hwnd,0))
     25#define PROGRESS_GetInfoPtr(hwnd) ((PROGRESS_INFO*)getInfoPtr(hwnd))
    2626
    2727
     
    279279
    280280  /* allocate memory for info struct */
    281   infoPtr = (PROGRESS_INFO *)COMCTL32_Alloc(sizeof(PROGRESS_INFO));
     281  infoPtr = (PROGRESS_INFO*)initControl(hwnd,sizeof(PROGRESS_INFO));
    282282  SetWindowLongA(hwnd,0,(DWORD)infoPtr);
    283283
     
    290290  infoPtr->ColorBk = CLR_DEFAULT;
    291291  infoPtr->hFont = (HANDLE)NULL;
    292 //      TRACE(progress, "Progress Ctrl creation, hwnd=%04x\n", hwnd);
    293292
    294293  return 0;
     
    299298  PROGRESS_INFO *infoPtr = PROGRESS_GetInfoPtr(hwnd);
    300299
    301   //      TRACE (progress, "Progress Ctrl destruction, hwnd=%04x\n", hwnd);
    302   COMCTL32_Free (infoPtr);
     300  doneControl(hwnd);
    303301
    304302  return 0;
     
    536534//      ERR(progress, "unknown msg %04x wp=%04x lp=%08lx\n",
    537535//                  message, wParam, lParam );
    538       return DefWindowProcA( hwnd, message, wParam, lParam );
     536      return defComCtl32ProcA( hwnd, message, wParam, lParam );
    539537    }
    540538
     
    553551{
    554552    WNDCLASSA wndClass;
    555 
    556 //SvL: Don't check this now
    557 //    if (GlobalFindAtomA(PROGRESS_CLASSA)) return;
    558553
    559554    ZeroMemory (&wndClass, sizeof( WNDCLASSA));
     
    578573PROGRESS_Unregister (VOID)
    579574{
    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.