| 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 |
|
|---|
| 34 | HANDLE COMCTL32_hHeap = (HANDLE)NULL;
|
|---|
| 35 | HMODULE COMCTL32_hModule = 0;
|
|---|
| 36 | LPSTR COMCTL32_aSubclass = (LPSTR)NULL;
|
|---|
| 37 |
|
|---|
| 38 | void CDECL 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 |
|
|---|
| 69 | void CDECL 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 |
|
|---|
| 114 | VOID WINAPI InitCommonControls(VOID)
|
|---|
| 115 | {
|
|---|
| 116 | }
|
|---|