📄 init.h
字号:
// #define DEBUG_MYBUTTON //调试自定义按钮用
void DemoRegist(void );
typedef struct _CTRLCLASSINFO
{
unsigned char name[15 + 1];
// class name
/*
* common properties of this class
*/
DWORD dwStyle; // Default control styles.
DWORD dwExStyle; // Default control extended styles.
HCURSOR hCursor; // control cursor
int iBkColor; // control background color.
int (*ControlProc)(HWND, int, WPARAM, LPARAM);
// control procedure.
DWORD dwAddData; // the additional data.
int nUseCount; // use count.
struct _CTRLCLASSINFO* next;
// next class info
}CTRLCLASSINFO;
typedef CTRLCLASSINFO* PCTRLCLASSINFO;
typedef struct _CONTROL
{
/*
* These fields are similiar with MAINWIN struct.
*/
short DataType; // the data type
short WinType; // the window type
int left, top; // the position of control in main window's
int right, bottom; // client area.
int cl, ct; // the positio of control client in main window's
int cr, cb; // client area.
DWORD dwStyle; // the styles of child window.
DWORD dwExStyle; // the extended styles of child window.
int iBkColor; // the background color.
HMENU hMenu; // handle of menu.
HACCEL hAccel; // handle of accelerator table.
HCURSOR hCursor; // handle of cursor.
HICON hIcon; // handle of icon.
HMENU hSysMenu; // handle of system menu.
PLOGFONT pLogFont; // pointer to logical font.
HDC privCDC; // the private client DC.
// the Z order node,
// only for control with WS_EX_CTRLASMAINWIN.
DWORD dwAddData; // the additional data.
DWORD dwAddData2; // the second addtional data.
int (*ControlProc) (HWND, int, WPARAM, LPARAM);
unsigned char* spCaption; // the caption of control.
int id; // the identifier of child window.
struct _CONTROL* pParent;// the parent of this control.
/*
* Child windows.
*/
struct _CONTROL* children;
// the first child control.
struct _CONTROL* active;
// the active child control.
struct _CONTROL* old_under_pointer;
// the old under pointer child control.
struct _CONTROL* primitive;
// the premitive child of mouse event.
/*
* The following members are only implemented for control.
*/
struct _CONTROL* next; // the next sibling control.
struct _CONTROL* prev; // the prev sibling control.
PCTRLCLASSINFO pcci; // pointer to Control Class Info struct.
}CONTROL;
typedef CONTROL* PCONTROL;
typedef struct tagBUTTONDATA
{
DWORD status; // button flags
DWORD data; // bitmap or icon of butotn.
} BUTTONDATA;
typedef BUTTONDATA* PBUTTONDATA;
#define BUTTON_DATA(pCtrl) (((PBUTTONDATA)(pCtrl->dwAddData2))->data)
void LoadBmp ( );
//void LoadOtherBmp (void );
BOOL RegisterMybutton(void);
void ConfigInit(void);
void ChanInit( HWND hWnd);
void ToolTimerInit(void);
void Init(void);
void ReadDefaultValue(int gchannum,int index);
void Test();
void DeviceDefaultReg(void);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -