-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSkinMagicLib.h
More file actions
executable file
·602 lines (536 loc) · 25.1 KB
/
SkinMagicLib.h
File metadata and controls
executable file
·602 lines (536 loc) · 25.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
/***************************************************************************
// This is a part of the SkinMagic SDK library.
// Copyright (C) 2003-2002 Appspeed Inc.
// All rights reserved.
//
// This source code is only intended as a supplement to the
// SkinMagic SDK Reference and related electronic documentation
// provided with the library.
// See these sources for detailed information regarding the
// SkinMagic SDK product.
// SkinMagicLib SDK is a library designed for C/C++ programmer,
// you can add the most popular function of changing skin to your
// application with the API supplied by this library. SkinMagic
// is picture-based skin system, you can power your application
// with skin-changeable with simple call of several functions.
// And with the skin editor of SkinMagicBuilder, you can customize
// your own skin.
*****************************************************************************/
#ifndef _SKINMAGICLIB_H__
#define _SKINMAGICLIB_H__
#include <windows.h>
#include <commctrl.h>
//Skinmagic error code
#define SMEC_OK 0
#define SMEC_REGISTERWINDOW 1 //fail to register windows class
#define SMEC_MESSAGEHOOK 2 //fail to set message hook
#define SMEC_KEYHOOK 3 //fail to set keyboard hook
#define SMEC_FILENOTFOUND 4 //not find the file
#define SMEC_DECOMPRESSERROR 5 //fail to decompress skin file
#define SMEC_HEADERERROR 6 //skin file header error
#define SMEC_SKINVERSIONERROR 7 //skin file version not match
#define SMEC_OBJECTNOTFOUND 8 //obect not found
#define SMEC_OBJECTTYPEUNMATCH 9 //Object type not match
#define SMEC_IMAGESIZEERROR 10 //Image size error
#define SMEC_CREATEIMAGELISTFAIL 11 //fail to create image list object
#define SMEC_NOTIMPLEMENT 12 //The function not implement
#define SMEC_PARAMETERERROR 13 //the function parameter error
#define SMEC_INITSCROLLBARFAIL 14 //fail to skin scrollbar
#define SMEC_LOADRESOURCEFAIL 15 //fail to load the resource
#define SMEC_FINDRESOURCEFAIL 16 //fail to find the resource
#define SMEC_WINDOWSXPNOTCOMPATIBLE 17 //not compatible with Windows XP
#define SMEC_OUTOFMEMORY 18 //Out of memory
#define SMEC_LIBARAYNOTINITIALIZED 19 //Library not initialized
#pragma pack(push, 8)
///////////////////////////////////////////////////////////////////////////
//Function: InitSkinMagicLib(HINSTANCE hInstance, LPCTSTR szApplication ,
// LPCTSTR szReserved1,
// LPCTSTR szReserved2
//
//Parameters:
// hInstance
// [in] Handle of application instance.
// szApplication
// [in] Application defined in skin file. If you set this parameter the
// library can only load the skin file which application object named
// match szApplication.
// szReserved1
// [in] Reserved.
// szReserved2
// [in] Reserved.
//Return Values:
// If the function success, the return value is nonzero
// If the function fail, the return value is zero
//Remarks:
// InitSkinMagicLib function should be the first API called in SkinMagicLib SDK,
// followed by other APIs.
// For multithreaded applications, you must call InitSkinMagicLib in every thread.
//
int __stdcall InitSkinMagicLib( HINSTANCE hInstance,
LPCTSTR lpApplication ,
LPCTSTR lpReserved1,
LPCTSTR lpReserved2 );
///////////////////////////////////////////////////////////////////////////
//Function: LoadSkinFile( LPCTSTR SkinFile )
// Load skin from file.
//Parameters:
// SkinFile
// [in] Specifies the skin file name.
//Return Values:
// If the function success, the return value is nonzero
// If the function fail, the return value is zero
//Remarks:
// ExitSkinMagicLib function should be the last API called in SkinMagicLib SDK.
// For multithreaded applications, you must call InitSkinMagicLib in every thread.
void __stdcall ExitSkinMagicLib();
///////////////////////////////////////////////////////////////////////////
//Function: LoadSkinFile( LPCTSTR SkinFile )
// Load skin from file.
//Parameters:
// SkinFile
// [in] Specifies the skin file name.
//Return Values:
// If the function success, the return value is nonzero
// If the function fail, the return value is zero
//Remarks:
// Load skin from file.
int __stdcall LoadSkinFile( LPCTSTR lpSkinFile );
///////////////////////////////////////////////////////////////////////////
//Function: LoadSkinFromResource(HMODULE hModule, LPCTSTR lpSkinName ,LPCTSTR lpType)
// Use this function to load skin from resource.
//Parameters:
// hModule
// [in] Handle to the module whose executable file contains the resource.
// A value of NULL specifies the module handle associated with the image
// file that the operating system used to create the current process.
// lpSkinName
// [in] Specifies the name of the skin resource.
// lpType
// [in] Specifies the resource type.
//Return Values:
// If the function success, the return value is nonzero
// If the function fail, the return value is zero
//Remarks:
// The application can use skin defined in resource.
int __stdcall LoadSkinFromResource(HMODULE hModule, LPCTSTR lpSkinName ,LPCTSTR lpType);
///////////////////////////////////////////////////////////////////////////
//Function: SetWindowSkin( HWND hWnd , LPCTSTR SkinName )
// Use SetWindowSkin to skin the standard windows - with rectangular
// opaque client area and region-based non-client area, menu bar,
// system/maximize/minimize/close buttons, caption and sizing edges
// and corners.
//
//Parameters:
// hWnd
// [in]Handle to the window to be remove skin.
// SkinName
// [in]Specifies the name of FrameWnd object which defined in skin file.
//
//Return Values:
// If the function success, the return value is nonzero
// If the function fail, the return value is zero
//Remarks:
// Use SetWindowSkin to skin the standard windows - with rectangular
// opaque client area and region-based non-client area, menu bar,
// system/maximize/minimize/close buttons, caption and sizing edges
// and corners.
int __stdcall SetWindowSkin( HWND hWnd , LPCTSTR lpSkinName );
///////////////////////////////////////////////////////////////////////////
//Function: SetShapeWindowSkin( HWND hWnd , LPCTSTR SkinName )
// Use SetShapeWindowSkin to skin application-specific windows
// without non-client area and menu bar. These windows can have
// absolutely any shape or even be translucent.
//
//Parameters:
// hWnd
// [in]Handle to the window to be remove skin.
// SkinName
// [in]Specifies the name of ShapeWnd object which defined in skin file.
//
//Return Values:
// If the function success, the return value is nonzero
// If the function fail, the return value is zero
//Remarks:
// Use SetShapeWindowSkin to skin application-specific windows
// without non-client area and menu bar. These windows can have
// absolutely any shape or even be translucent.
//
int __stdcall SetShapeWindowSkin( HWND hWnd , LPCTSTR SkinName );
///////////////////////////////////////////////////////////////////////////
//Function: RemoveWindowSkin( HWND hWnd )
// set skin of new create dialog
//
//Parameters:
// hWnd
// [in]Handle to the window to be remove skin.
//
//Return Values:
// If the function success, the return value is nonzero
// If the function fail, the return value is zero
//Remarks:
// Use this function to remove window skin.
//
int __stdcall RemoveWindowSkin( HWND hWnd );
///////////////////////////////////////////////////////////////////////////
//Function: SetDialogSkin( LPCTSTR szSkinName )
// set skin of new create dialog
//
//Parameters:
// szSkinName
// [in]Specifies the name of FrameWnd object which defined in skin file.
//
//Return Values:
// If the function success, the return value is nonzero
// If the function fail, the return value is zero
//Remarks:
// Use this function to set dialog skin. dialog will auto be skinned
// after this function called.
//
int __stdcall SetDialogSkin( LPCTSTR szSkinName );
///////////////////////////////////////////////////////////////////////////
//Function: SetSingleDialogSkin( HWND hWnd ,LPCTSTR szSkinName )
// Set the skin of an dialog
//
//Parameters:
// hWnd
// [in]Handle to the dialog to be set skin.
// szSkinName
// [in]Specifies the skin nanem.
//
//Return Values:
// If the function success, the return value is nonzero
// If the function fail, the return value is zero
//Remarks:
// Use this function to set single dialog skin.
//
int __stdcall SetSingleDialogSkin( HWND hWnd , LPCTSTR szSkinName );
///////////////////////////////////////////////////////////////////////////
//Function: RemoveDialogSkin()
// This function will stop auto skin dialog.
// the function will not remove the dialog's
// skin which already set. The new create dialog will have no skin.
//
//Parameters:
// none.
//Return Values:
// If the function success, the return value is nonzero
// If the function fail, the return value is zero
//Remarks:
// Use this function to stop auto skin dialog.
//
int __stdcall RemoveDialogSkin();
///////////////////////////////////////////////////////////////////////////
//Function: EnableWindowScrollbarSkin( HWND hWnd ,int fnBar )
// Initialize the skin scrollbars for a window
//
//Parameters:
// hWnd
// [in]Handle to the window to be set skin scrollbar.
// fnBar
// [in]Specifies the type of scroll bar for which to skin.
// This parameter can be one of the following values
// SB_HORZ for the window's standard horizontal scroll bar.
// SB_VERT for the window's standard scroll bar.
// SB_BOTH for both horizontal and vertical scroll bar.
//
//Return Values:
// If the function success, the return value is nonzero
// If the function fail, the return value is zero
//Remarks:
// Use this function to skin your window scrollbar
//
int __stdcall EnableWindowScrollbarSkin( HWND hWnd ,int fnBar );
///////////////////////////////////////////////////////////////////////////
//Function: DisableWindowScrollbarSkin( HWND hWnd )
// disable the skin scrollbars for a window
//
//Parameters:
// hWnd
// [in]Handle to the window to be disable skin scrollbar.
//
//Return Values:
// If the function success, the return value is nonzero
// If the function fail, the return value is zero
//Remarks:
// Use this function to skin your window scrollbar
//
int __stdcall DisableWindowScrollbarSkin( HWND hWnd );
///////////////////////////////////////////////////////////////////////////
//Function: TrackSkinPopupMenu( HMENU hMenu,int x, int y, HWND hWnd )
// The TrackSkinPopupMenu function displays a shortcut menu at the
// specified location and tracks the selection of items on the menu.
// The shortcut menu can appear anywhere on the screen.
//
//Parameters
// hMenu
// [in] Handle to the shortcut menu to be displayed.
// The handle can be obtained by calling CreatePopupMenu
// to create a new shortcut menu, or by calling GetSubMenu
// to retrieve a handle to a submenu associated with an
// existing menu item.
//uFlags
// [in] Use zero of more of these flags to specify function options.
// Use one of the following flags to specify how the function positions
// the shortcut menu horizontally.
// ------------------------------------------------------------------------------
// TPM_CENTERALIGN If this flag is set, the function centers the shortcut
// menu horizontally relative to the coordinate specified
// by the x parameter.
// TPM_LEFTALIGN If this flag is set, the function positions the shortcut
// menu so that its left side is aligned with the coordinate
// specified by the x parameter.
// TPM_RIGHTALIGN Positions the shortcut menu so that its right side is
// aligned with the coordinate specified by the x parameter.
// ------------------------------------------------------------------------------
// Use one of the following flags to specify how the function positions the shortcut
// menu vertically.
// TPM_BOTTOMALIGN If this flag is set, the function positions the shortcut
// menu so that its bottom side is aligned with the coordinate
// specified by the y parameter.
// TPM_TOPALIGN If this flag is set, the function positions the shortcut
// menu so that its top side is aligned with the coordinate
// specified by the y parameter.
// TPM_VCENTERALIGN If this flag is set, the function centers the shortcut menu
// vertically relative to the coordinate specified by the y parameter.
//
// x
// [in] Specifies the horizontal location of the shortcut menu,
// in screen coordinates.
// y
// [in] Specifies the vertical location of the shortcut menu,
// in screen coordinates.
// hWnd
// [in] Handle to the window that owns the shortcut menu.
// This window receives all messages from the menu.
// The window does not receive a WM_COMMAND message from the
// menu until the function returns.
BOOL __stdcall TrackSkinPopupMenu( HMENU hMenu, UINT uFlags, int x, int y, HWND hWnd );
int __stdcall EnableCaptionButtons(HWND hWnd , LPCTSTR lpName , BOOL bEnable );
//for custom control support
#define WM_SKINDATACHANGED WM_USER + 1
//for
#define WM_SETSKIN WM_APP + 1000
typedef HANDLE HSKIN; // handle to a skin data object
int __stdcall RegisterSkinWindow( HWND hWnd , UINT uNotifyMsg );
int __stdcall UnregisterSkinWindow( HWND hWnd );
HSKIN __stdcall OpenSkinData( LPCTSTR pszSkinObjectName );
void __stdcall CloseSkinData( HSKIN hSkin );
//stocked property for every custom control
int __stdcall GetSkinControlRect( HSKIN hSkin , RECT* pRect, BOOL* pAutoPlace );
int __stdcall GetSkinControlID( HSKIN hSkin , DWORD* dwID );
int __stdcall GetSkinControlFont( HSKIN hSkin , HFONT* phFont , COLORREF* pColor );
int __stdcall GetSkinControlColor( HSKIN hSkin , COLORREF* pColor );
int __stdcall GetSkinControlBkColor( HSKIN hSkin , COLORREF* pColor );
int __stdcall GetSkinTransparentColor( COLORREF* pColor , BOOL* pBool );
//user customed property
int __stdcall GetSkinFont( HSKIN hSkin,LPCTSTR pszName , LOGFONT* pLogFont , COLORREF* pColor );
int __stdcall GetSkinColor( HSKIN hSkin , LPCTSTR pszName, COLORREF* pColor );
int __stdcall GetSkinBool( HSKIN hSkin , LPCTSTR pszName, bool* pbVal );
int __stdcall GetSkinInt( HSKIN hSkin , LPCTSTR pszName, int* piVal );
int __stdcall GetSkinDWORD( HSKIN hSkin , LPCTSTR pszName, DWORD* pdwVal );
int __stdcall GetSkinEnum( HSKIN hSkin , LPCTSTR pszName, DWORD* pdwVal );
int __stdcall GetSkinString( HSKIN hSkin, LPCTSTR pszName , LPTSTR pszBuff , unsigned long* pMaxBuffChars );
int __stdcall DrawSkinImageRect( HSKIN hSkin,
LPCTSTR pszName,
HDC hdc,
RECT* pRect
);
int __stdcall DrawSkinImageSection( HSKIN hSkin,
LPCTSTR pszName,
HDC hdc,
RECT* pRect );
int __stdcall DrawSkinImageSectionFrame( HSKIN hSkin,
LPCTSTR pszName,
HDC hdc,
RECT* pRect );
int __stdcall GetSkinImageSectionMargins( HSKIN hSkin, LPCTSTR pszName , const RECT* pRect , const RECT* pMargins );
int __stdcall CreateSkinImageRectRegion( HSKIN hSkin,
LPCTSTR pszName,
RECT* pRect ,
HRGN* pRegion);
int __stdcall CreateSkinImageSectionRegion( HSKIN hSkin,
LPCTSTR pszName,
RECT* pRect,
HRGN* pRegion );
int __stdcall DrawSkinTextEffect( HSKIN hSkin,
LPCTSTR pszName,
HDC hdc,
const RECT* pRect,
LPCTSTR lpText,
UINT uLen,
UINT uFlag );
///////////////////////////////////////////////////////////////////////////////////////////////
//CreateImageList
//
//The CreateImageList create a new image list from skin file.
//
// Parameters:
// lpImagelistObjectName [in] The skinImageList object name.
// Return Values
// Returns the handle to the image list if successful, or NULL otherwise
///////////////////////////////////////////////////////////////////////////////////////////////
HIMAGELIST __stdcall CreateImageList( LPCTSTR pszImageListObjectName );
struct MENUIMAGEINFO
{
UINT itemID;
int iImage;
};
//////////////////////////////////////////////////////////////////////////////////////////////////
//Function: SetWindowMainMenuImage
// The SetWindowMainMenuImage function set windows main menu item's bitmap.
//
//Parameters:
// hWnd
// [in] Handle to the window own the menu..
// pMenuImage
// [in] Pointer of an array of MENUIMAGEINFO struct .
// nCount
// [in] length of array pMenuImage.
// hImageList
// [in] imagelist used by the main menu to display normal item images.
// hHotImageList
// [in] imagelist used by the main menu to display hot item images.
// hDisabledImagelist
// [in] imagelist used by the main menu to display disabled item images.
//
//Return Values:
// If the function success, the return value is nonzero
// If the function fail, the return value is zero
///////////////////////////////////////////////////////////////////////////////////////////
int __stdcall SetWindowMainMenuImage( HWND hWnd ,
MENUIMAGEINFO* pMenuImage,
UINT nCount ,
HIMAGELIST hImageList ,
HIMAGELIST hHotImageList,
HIMAGELIST hDisabledImagelist );
/////////////////////////////////////////////////////////////////////////////////////////////
//Function: TrackSkinPopupMenuEx
// The TrackSkinPopupMenuEx function displays a shortcut menu at the
// specified location and tracks the selection of items on the menu.
// The shortcut menu can appear anywhere on the screen.
//
//Parameters
// hMenu
// [in] Handle to the shortcut menu to be displayed.
// The handle can be obtained by calling CreatePopupMenu
// to create a new shortcut menu, or by calling GetSubMenu
// to retrieve a handle to a submenu associated with an
// existing menu item.
// lpSkinPopupMenuName
// [in] The SkinPopupMenu object name. If lpSkinPopupMenuName is NULL SkinMagic
// use default popupmenu skindata.
// uFlags
// [in] Use zero of more of these flags to specify function options.
// Use one of the following flags to specify how the function positions
// the shortcut menu horizontally.
// ------------------------------------------------------------------------------
// TPM_CENTERALIGN If this flag is set, the function centers the shortcut
// menu horizontally relative to the coordinate specified
// by the x parameter.
// TPM_LEFTALIGN If this flag is set, the function positions the shortcut
// menu so that its left side is aligned with the coordinate
// specified by the x parameter.
// TPM_RIGHTALIGN Positions the shortcut menu so that its right side is
// aligned with the coordinate specified by the x parameter.
// ------------------------------------------------------------------------------
// Use one of the following flags to specify how the function positions the shortcut
// menu vertically.
// TPM_BOTTOMALIGN If this flag is set, the function positions the shortcut
// menu so that its bottom side is aligned with the coordinate
// specified by the y parameter.
// TPM_TOPALIGN If this flag is set, the function positions the shortcut
// menu so that its top side is aligned with the coordinate
// specified by the y parameter.
// TPM_VCENTERALIGN If this flag is set, the function centers the shortcut menu
// vertically relative to the coordinate specified by the y parameter.
//
// x
// [in] Specifies the horizontal location of the shortcut menu,
// in screen coordinates.
// y
// [in] Specifies the vertical location of the shortcut menu,
// in screen coordinates.
// hWnd
// [in] Handle to the window that owns the shortcut menu.
// This window receives all messages from the menu.
// The window does not receive a WM_COMMAND message from the
// menu until the function returns.
// pMenuImage
// [in] Pointer of an array of MENUIMAGEINFO struct .
// nCount
// [in] length of array pMenuImage.
// hImageList
// [in] imagelist used by the main menu to display normal item images.
// hHotImageList
// [in] imagelist used by the main menu to display hot item images.
// hDisabledImagelist
// [in] imagelist used by the main menu to display disabled item images.
///////////////////////////////////////////////////////////////////////////////////////////
BOOL __stdcall TrackSkinPopupMenuEx( HMENU hMenu,
LPCTSTR lpSkinName,
UINT uFlags,
int x,
int y,
HWND hWnd ,
MENUIMAGEINFO* pMenuImage,
UINT nCount ,
HIMAGELIST hImageList ,
HIMAGELIST hHotImageList,
HIMAGELIST hDisabledImagelist );
int __stdcall RedrawCaptionStatic( HWND hWnd , LPCTSTR lpName );
DWORD __stdcall GetSkinMagicErrorCode();
//menu function
//Use these function to get and set skinned window's menu
HMENU __stdcall GetSkinMenu( HWND hWnd );
BOOL __stdcall SetSkinMenu( HWND hWnd , HMENU hMenu );
//The state of caption button
#define CPBS_HOVERED 0x00000000
#define CPBS_PRESSED 0x00000001
#define CPBS_DISABLED 0x00000002
#define CPBS_NORMAL 0x00000003
//////////////////////////////////////////////////////////////////////////////////////////////////
//Function: GetCaptionButtonState
// The GetCaptionBttonState function get captionbutton object's state.
//
//Parameters:
// hWnd
// [in] Handle to the window own the captionbutton.
// lpName
// [in] the captionbutton's name
// pdwState
// [out] the state of captionbutton.
//
//Return Values:
// If the function success, the return value is nonzero
// If the function fail, the return value is zero
///////////////////////////////////////////////////////////////////////////////////////////
int __stdcall GetCaptionButtonState(HWND hWnd , LPCTSTR lpName , DWORD* pdwState );
//////////////////////////////////////////////////////////////////////////////////////////////////
//Function: SetCaptionButtonState
// The SetCaptionBttonState function set captionbutton object's state.
//
//Parameters:
// hWnd
// [in] Handle to the window own the captionbutton.
// lpName
// [in] the captionbutton's name
// dwState
// [in] the state of captionbutton.
//
//Return Values:
// If the function success, the return value is nonzero
// If the function fail, the return value is zero
///////////////////////////////////////////////////////////////////////////////////////////
int __stdcall SetCaptionButtonState(HWND hWnd , LPCTSTR lpName , DWORD dwState );
///////////////////////////////////////////////////////////////////////////////////////////
int __stdcall SetSkinWindowAccelerator( HWND hWnd, HACCEL hAccTable );
////////////////////////////////////////////////////////////////////////////////////////////
int __stdcall SetControlTooltip( HWND hWnd , LPCTSTR lpTooltip );
int __stdcall SetCaptionButtonTooltip( HWND hWnd , LPCTSTR lpName , LPCTSTR lpTooltip );
int __stdcall ShowTooltipPoint( HWND hWnd , LPCTSTR lpTooltip , LPPOINT lpPoint );
int __stdcall HideTooltip();
int __stdcall SetControlSkin( HWND hWnd , LPCTSTR szSkinName, LPCTSTR szOwnerSkinName );
COLORREF __stdcall GetSkinSysColor( int nIndex );
HBRUSH __stdcall GetSkinSysColorBrush( int nIndex );
#pragma pack(pop)
#endif