Ignore:
Timestamp:
Mar 18, 2000, 5:17:35 PM (25 years ago)
Author:
cbratschi
Message:

Corel 20000317 merge, ccbase finished, bug fixes

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:51 cbratschi Exp $ */
     1/* $Id: updown.cpp,v 1.2 2000-03-18 16:17:35 cbratschi Exp $ */
    22/*
    33 * Updown control
     
    3737#include "commctrl.h"
    3838#include "winnls.h"
     39#include "ccbase.h"
    3940#include "updown.h"
    4041
     
    7071#define UNKNOWN_PARAM(msg, wParam, lParam)
    7172
    72 #define UPDOWN_GetInfoPtr(hwnd) ((UPDOWN_INFO *)GetWindowLongA(hwnd,0))
     73#define UPDOWN_GetInfoPtr(hwnd) ((UPDOWN_INFO*)getInfoPtr(hwnd))
    7374
    7475static LRESULT CALLBACK
     
    714715  DWORD dwStyle = GetWindowLongA(hwnd,GWL_STYLE);
    715716
    716   infoPtr = (UPDOWN_INFO*)COMCTL32_Alloc(sizeof(UPDOWN_INFO));
    717   SetWindowLongA (hwnd, 0, (DWORD)infoPtr);
     717  infoPtr = (UPDOWN_INFO*)initControl(hwnd,sizeof(UPDOWN_INFO));
    718718
    719719  /* initialize the info struct */
     
    744744        RemovePropA(infoPtr->Buddy, BUDDY_UPDOWN_HWND);
    745745
    746   COMCTL32_Free (infoPtr);
    747 
    748 //      TRACE(updown, "UpDown Ctrl destruction, hwnd=%04x\n", hwnd);
     746  doneControl(hwnd);
    749747
    750748  return 0;
     
    10941092//      ERR (updown, "unknown msg %04x wp=%04x lp=%08lx\n",
    10951093//           message, wParam, lParam);
    1096       return DefWindowProcA(hwnd,message,wParam,lParam);
     1094      return defComCtl32ProcA(hwnd,message,wParam,lParam);
    10971095    }
    10981096
     
    11591157    WNDCLASSA wndClass;
    11601158
    1161 //SvL: Don't check this now
    1162 //    if( GlobalFindAtomA( UPDOWN_CLASSA ) ) return;
    1163 
    11641159    ZeroMemory( &wndClass, sizeof( WNDCLASSA ) );
    11651160    wndClass.style         = CS_GLOBALCLASS | CS_VREDRAW;
     
    11841179UPDOWN_Unregister (VOID)
    11851180{
    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.