📄 button.h
字号:
//button.hstruct _Button{
HWND m_grButtonID;
Rect m_rPosition;
eShape m_eShape;
eBack_Style m_eBackStyle;
TextItem m_tiActiveText;
TextItem m_tiInActiveText;
RectItem m_riActiveRect;
RectItem m_riInActiveRect;
ImageItem m_iiActiveImage;
ImageItem m_iiInActiveImage; HWND m_activePid; HWND m_inactivePid;
Rect m_rActiveLockRect;
Rect m_rInActiveLockRect;
int m_nID;
STRING m_szFlipPageIndex;
int m_nReturn;
STRING m_szGroupID;
BOOL m_bCommType; // BOOL Comm_Type;
eFeedbackType m_eFeedbackType; //feedback_type;
int m_nDelay; // m_ndelay
Page* m_pParentPage; //m_parent_page;
Page* gpage;
int m_nButtonType; //m_button_type;
int m_nRidus;
int m_nMoreStyle;
// window.
BOOL isdown;
int m_timer;
Page* target_page; Page* own_page; Page* sub_page;
// continue.
int press_timer;
int release_timer;
int m_spec;
int roll_index;
int roll_dire;
};Button* Button_Initialize2(
int Position_left,
int Position_top,
int Position_right,
int Position_bottom,
eShape eShape, \
eBack_Style eBackStyle, \
STRING AcText_szContent,
LOG_FONT AcText_LOG_FONT,
BOOL AcText_bFring,
eLocation AcText_eLocation,
COLORREF AcText_dwTextColor,
STRING InAcText_szContent,
LOG_FONT InAcText_LOG_FONT,
BOOL InAcText_bFring,
eLocation InAcText_eLocation,
COLORREF InAcText_dwTextColor,
COLORREF AcRect_dwFaceColor,
COLORREF AcRect_dwFrameColor,
eFrame AcRect_eFrameThick,
eFace_Style AcRect_eFaceStyle,
int AcRect_TopLeft_x,
int AcRect_TopLeft_y,
int AcRect_BottomRight_x,
int AcRect_BottomRight_y,
COLORREF InAcRect_dwFaceColor,
COLORREF InAcRect_dwFrameColor,
eFrame InAcRect_eFrameThick,
eFace_Style InAcRect_eFaceStyle,
int InAcRect_TopLeft_x,
int InAcRect_TopLeft_y,
int InAcRect_BottomRight_x,
int InAcRect_BottomRight_y,
STRING AcImage_ImageName,
COLORREF AcImage_dwForeColor,
COLORREF AcImage_dwBackColor,
BYTE AcImage_bStatus,
COLORREF AcImage_dwTransparenceColor,
STRING InAcImage_ImageName,
COLORREF InAcImage_dwForeColor,
COLORREF InAcImage_dwBackColor,
BYTE InAcImage_bStatus,
COLORREF InAcImage_dwTransparenceColor,
LONG AcLockRect_left,
LONG AcLockRect_top,
LONG AcLockRect_right,
LONG AcLockRect_bottom,
LONG InAcLockRect_left,
LONG InAcLockRect_top,
LONG InAcLockRect_right,
LONG InAcLockRect_bottom,
int nID,
STRING nFlipPageIndex ,
int nReturn,
STRING groupid,
BOOL Comm_Type,
eFeedbackType feedback_type,
int m_ndelay,
STRING sys_cmd_string,
STRING usr_cmd_string,
STRING sys_rev_string,
STRING usr_rev_string,
int sys_cmd_string_len,
int usr_cmd_string_len,
int sys_rev_string_len,
int usr_rev_string_len,
int nRidus,
int nActiveFStyle,
int nActiveFContrans,
int nInActiveFStyle,
int nInActiveFContrans,
int morestyle,
Page* gpage
);
Button* button_struct_init2(
Rect Position,eShape eShape,eBack_Style eBackStyle,
TextItem ActiveText,TextItem InActiveText,RectItem ActiveRect,RectItem InActiveRect,
ImageItem ActiveImage,ImageItem InActiveImage,Rect ActiveLockRect,Rect InActiveLockRect,
int nID,STRING nFlipPageIndex ,int nReturn,
STRING groupid,BOOL Comm_Type,eFeedbackType feedback_type,int m_ndelay,
STRING sys_cmd_string,STRING usr_cmd_string,STRING sys_rev_string,STRING usr_rev_string,
int sys_cmd_string_len,int usr_cmd_stirng_len,int sys_rev_string_len,int usr_rev_string_len,
int ridus,int stylemore,Page* gpage
);void ButtonDownButton(Button* button );
void ButtonUpButton(Button* button );
void ButtonUpButtonTools(Button* button );
void ButtonDownDisposal (Button* button);
void ButtonUpDisposal (Button* button);void ExposureButton(Button* button );
void ExecButtonDownButton(Button* button);
void ExecButtonUpButton(Button* button);
void ButtonPressPreButton(Button* button);
void ButtonRleasePreButton(Button* button);
void ExposureButtonDrawFrame(Button* button,int rim);
void ExposureButtonDrawFace(Button* button,int offset);
void ExposureButtonDraw3D(Button* button,int offset);
void ExposureButtonDrawShade(Button* button,int offset);
void ExposureButtonDrawLabel(Button* button);void ExposureButtonBitmap(Button* button);
// tools.
void nxDraw3dBox(HWND id,int x,int y,int w,int h,DWORD crTop,DWORD crBottom);
void nxDraw3dEllipse(HWND id,int x,int y,int w,int h,DWORD crTop,DWORD crBottom);
void button_free_resource(Button* pButton);
// miniGUI.
#define BUTTON_MINIGUI ("Button_miniGUI")
extern BOOL RegisterButtonminiGUI (void);
extern void UnRegisterButtonminiGUI (void);
extern int Button_miniGUIProc (HWND hwnd, int message, WPARAM wParam, LPARAM lParam);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -