skinbeautyexport.h

来自「多进程实现现代优化算法包括采用SSS的局部搜索、禁忌搜索算法和模拟退火算法的控制」· C头文件 代码 · 共 97 行

H
97
字号
#ifndef __SKINBEAUTY__EXPORT__H__
#define __SKINBEAUTY__EXPORT__H__

#ifdef SKINBEAUTY_LIB_EXPORT
	#define SKINBEAUTY__API extern "C" __declspec(dllexport)
#else
	#define SKINBEAUTY__API extern "C" __declspec(dllimport)
#endif


//the Windows control typed by ID
//控件窗口类型编号
#define  TYPE_UNKNOWN				 -1
#define  TYPE_BUTTON				  1
#define  TYPE_EDIT                    2
#define  TYPE_COMBOBOX                3
#define  TYPE_SCROLLBAR               4
#define  TYPE_LISTBOX                 5
#define  TYPE_STATIC                  6
#define  TYPE_RADIO                   7
#define  TYPE_CHECK                   8
#define  TYPE_DLG                     9
#define  TYPE_PROGRESS                10
#define  TYPE_MENU			          11
#define  TYPE_SPIN					  12
#define  TYPE_SLIDER			      13
#define  TYPE_GROUP                   14
#define  TYPE_TREECTRL                15
#define  TYPE_LISTCTRL                16
#define  TYPE_TOOLTIPCTRL             17
#define  TYPE_HEADCTRL                18
#define  TYPE_IPCTRL                  19
#define  TYPE_HOTKEY                  20
#define  TYPE_RICHEDIT                21

#define  TYPE_ANIMATECTRL             22
#define  TYPE_TABCTRL                 23
#define  TYPE_MONTHCALCTRL            24
#define  TYPE_DATETIMECTRL            25
#define  TYPE_STATUSBAR               26

#define  TYPE_TOOLBAR                 27
#define  TYPE_REBAR                   28
#define  TYPE_CONTROLBAR              29
#define  TYPE_FRAMEWND                30

#define  TYPE_MINI_FRAMEWND           31

//
////  Load & UnLoad Skin               Fun.Group
//

//load the skin with a skin-file from a path.
//[IN]:absolute file path 
SKINBEAUTY__API BOOL SkinLoad(char* szSkinPath);

//
//unload the skin. 
//
//COMMENT: normally, it's unnecessory to call this function,
//just when the user expect to force the process to unload the skin.
//the Skin-Engine will automatically unload itself before exit.
//
SKINBEAUTY__API BOOL SkinUnLoad(void);





//
////  User Config                      Fun.Group
//

//build the unSkin-Ctrl-List by Ctrl's type or ID. 
//[IN]:the count of Ctrl type/ID that to be set; Ctrl type/ID array
SKINBEAUTY__API void BuildUnSkinCtrlType(int nCount, int aCtrlType[]);
SKINBEAUTY__API void BuildUnSkinCtrlID(int nCount, DWORD aCtrlID[]);


//bind a skin_resource with a Ctrl by Ctrl ID or by handle
//[IN]:user resource define in the skin-file; the ID/handle of Ctrl to be set 
SKINBEAUTY__API void BindRes2CtrlbyID(int nUserResID,DWORD dwCtrlID);
SKINBEAUTY__API BOOL BindRes2CtrlbyHWND(int nUserResID,HWND hWnd);


//is skin the owner/custom-draw style ctrl?  get and set the Flag 
SKINBEAUTY__API BOOL GetIsSkinOwnerDrawCtrl(void);
SKINBEAUTY__API void SetSkinOwnerCrawCtrl(BOOL bSkin);


//
//all the functions above are very easy to understand it's usage
//for more detail, U could see the help-files adhere with the product,
//												www.afe-soft.com
//
#endif //__SKINBEAUTY__EXPORT__H__

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?