source: trunk/src/comctl32/comctl32.c@ 44

Last change on this file since 44 was 44, checked in by achimha, 26 years ago

* empty log message *

File size: 2.6 KB
Line 
1/*
2 * Win32 common controls implementation
3 *
4 * Copyright (C) 1999 Achim Hasenmueller
5 *
6 * Based on the work of the WINE group (www.winehq.com)
7 *
8 *
9 * Project Odin Software License can be found in LICENSE.TXT
10 *
11 */
12
13#include "comctl32.h"
14#include "progress.h"
15#include "comboex.h"
16#include "animate.h"
17#include "datetime.h"
18#include "flatsb.h"
19#include "hotkey.h"
20#include "ipaddress.h"
21#include "monthcal.h"
22#include "nativefont.h"
23#include "pager.h"
24#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"
33
34HANDLE COMCTL32_hHeap = (HANDLE)NULL;
35HMODULE COMCTL32_hModule = 0;
36LPSTR COMCTL32_aSubclass = (LPSTR)NULL;
37
38void RegisterCOMCTL32WindowClasses(unsigned long hinstDLL)
39{
40 /* create private heap */
41 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;
46
47 /* register controls */
48 PROGRESS_Register();
49 COMBOEX_Register();
50 ANIMATE_Register();
51 DATETIME_Register();
52 FLATSB_Register();
53 HOTKEY_Register();
54// IPADDRESS_Register();
55 MONTHCAL_Register();
56 NATIVEFONT_Register();
57 PAGER_Register();
58 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();
67}
68
69void UnregisterCOMCTL32WindowClasses(void)
70{
71 /* unregister controls */
72 PROGRESS_Unregister();
73 COMBOEX_Unregister();
74 ANIMATE_Unregister();
75 DATETIME_Unregister();
76 FLATSB_Unregister();
77 HOTKEY_Unregister();
78// IPADDRESS_Unregister();
79 MONTHCAL_Unregister();
80 NATIVEFONT_Unregister();
81 PAGER_Unregister();
82 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();
91
92 /* destroy private heap */
93 HeapDestroy(COMCTL32_hHeap);
94 COMCTL32_hHeap = (HANDLE)NULL;
95}
96
97/***********************************************************************
98 * InitCommonControls [COMCTL32.17]
99 *
100 * Registers the common controls.
101 *
102 * PARAMS
103 * No parameters.
104 *
105 * RETURNS
106 * No return values.
107 *
108 * NOTES
109 * This function is just a dummy.
110 * The Win95 controls are registered at the DLL's initialization.
111 * To register other controls InitCommonControlsEx() must be used.
112 */
113
114VOID WINAPI InitCommonControls(VOID)
115{
116}
Note: See TracBrowser for help on using the repository browser.