Ignore:
Timestamp:
Jun 7, 1999, 5:37:34 PM (26 years ago)
Author:
achimha
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/comctl32/comctl32.c

    r41 r44  
    2323#include "pager.h"
    2424#include "tab.h"
     25#include "status.h"
     26#include "header.h"
     27#include "updown.h"
     28#include "rebar.h"
     29#include "trackbar.h"
     30#include "tooltips.h"
     31#include "toolbar.h"
     32#include "treeview.h"
    2533
    2634HANDLE COMCTL32_hHeap = (HANDLE)NULL;
     35HMODULE COMCTL32_hModule = 0;
     36LPSTR    COMCTL32_aSubclass = (LPSTR)NULL;
    2737
    28 
    29 void RegisterCOMCTL32WindowClasses(void)
     38void RegisterCOMCTL32WindowClasses(unsigned long hinstDLL)
    3039{
    3140  /* create private heap */
    3241  COMCTL32_hHeap = HeapCreate(0, 0x10000, 0);
     42  /* add global subclassing atom (used by 'tooltip' and 'updown') */
     43  COMCTL32_aSubclass = (LPSTR)(DWORD)GlobalAddAtomA ("CC32SubclassInfo");
     44  /* This will be wrong for any other process attching in this address-space! */
     45  COMCTL32_hModule = (HMODULE)hinstDLL;
    3346
    34   /* register progress control */
     47  /* register controls */
    3548  PROGRESS_Register();
    36   /* register extended combobox control */
    3749  COMBOEX_Register();
    38   /* register animation control */
    3950  ANIMATE_Register();
    40   /* register date time control */
    4151  DATETIME_Register();
    42   /* register the flat scrollbar control */
    4352  FLATSB_Register();
    44   /* register hotkey control */
    4553  HOTKEY_Register();
    46   /* register IP address control */
    4754//  IPADDRESS_Register();
    48   /* register month calender control */
    4955  MONTHCAL_Register();
    50   /* register native font control */
    5156  NATIVEFONT_Register();
    52   /* register pager control */
    5357  PAGER_Register();
    54   /* register tab control */
    5558  TAB_Register();
     59  STATUS_Register();
     60  HEADER_Register();
     61  UPDOWN_Register();
     62  REBAR_Register();
     63  TRACKBAR_Register();
     64  TOOLTIPS_Register();
     65  TOOLBAR_Register();
     66  TREEVIEW_Register();
    5667}
    5768
    5869void UnregisterCOMCTL32WindowClasses(void)
    5970{
    60   /* unregister progress control */
     71  /* unregister controls */
    6172  PROGRESS_Unregister();
    62   /* unregister extended combobox control */
    6373  COMBOEX_Unregister();
    64   /* unregister animation control */
    6574  ANIMATE_Unregister();
    66   /* unregister date time control */
    6775  DATETIME_Unregister();
    68   /* unregister flat scrollbar control */
    6976  FLATSB_Unregister();
    70   /* unregister hotkey control */
    7177  HOTKEY_Unregister();
    72   /* unregister IP address control */
    7378//  IPADDRESS_Unregister();
    74   /* unregister month calendar control */
    7579  MONTHCAL_Unregister();
    76   /* unregister native font control */
    7780  NATIVEFONT_Unregister();
    78   /* unregister pager control */
    7981  PAGER_Unregister();
    80   /* unregister tab control */
    8182  TAB_Unregister();
     83  STATUS_Unregister();
     84  HEADER_Unregister();
     85  UPDOWN_Unregister();
     86  REBAR_Unregister();
     87  TRACKBAR_Unregister();
     88  TOOLTIPS_Unregister();
     89  TOOLBAR_Unregister();
     90  TREEVIEW_Unregister();
    8291
    8392  /* destroy private heap */
Note: See TracChangeset for help on using the changeset viewer.