?? msgbox.h
字號:
#ifndef _MSGBOX_H_
#define _MSGBOX_H_
//////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////
// CMsgBox.h
//////////////////////////////////////////////////////////////////////////////////////////
//
//
//
//////////////////////////////////////////////////////////////////////////////////////////
#define CLICK_NONE 0
#define CLICK_OK 1
#define CLICK_YES 2
#define CLICK_NO 4
#define CLICK_CANCLE 8
#define HAVE_EDITOBOX 128
#define MSG_BTN_OK 1
#define MSG_BTN_YESNO 2
#define MSG_BTN_YESNOCANCLE 4
#define MSG_EDITEXIST 128
#define ASK_MAKE_BIG_GUILD 1 // 汲賦且 鞏頗狼 撈撫闌 利欄絞矯坷.
#define ASK_MAKE_SMALL_GUILD 2 // 汲賦且 規頗狼 撈撫闌 利欄絞矯坷.
#define ASK_OTHERSNAME 3 // 惑措 鞏頗疙闌 澇妨啊技夸.
#define ASK_DELMEMBER_NAME 4 // 鞏盔俊輯 力寇且 葷恩狼 撈撫闌 澇仿竅絞矯坷.
#define ASK_ADDMEMBER_NAME 5 // 鞏盔欄肺 眠啊且 葷恩狼 撈撫闌 澇仿竅絞矯坷.
#define ASK_DROP_GOLD 6 // 郴妨 初闌 陛咀闌 澇仿竅技夸.
#define ASK_DEAL_GOLD 7 // 芭貳且 陛咀闌 澇仿竅技夸.
#define ASK_GROUP_ADD_MEMBER_NAME 8 // 弊縫俊 曼咯且 葷恩狼 撈撫闌 利欄絞矯坷.
#define ASK_GROUP_DEL_MEMBER_NAME 9 // 弊縫俊輯 狐龍 葷恩狼 撈撫闌 利欄絞矯坷.
#define ASK_GUILD_BREAK_ALLY 10 // 悼竿闌 頗扁 且 鞏頗狼 撈撫闌 澇仿竅絞矯坷.
#define ASK_YN_LOGOUT_GAME 11 // 肺弊酒眶 竅矯擺嚼聰鱉?
#define ASK_YN_QUIT_GAME 12 // 固福狼傈汲2甫 輛豐竅矯擺嚼聰鱉?
#define ASK_YN_GUILD_ALLY 13 // 悼竿闌 竅扁 困秦輯綽 惑措規 鞏頗啊 [悼竿啊瓷] 惑怕 撈絹具 竅哥 惑措 鞏林客 付林絆焊 樂絹具 欽聰促.
#define ASK_YN_GAIN_SKILL 14 // 闌(甫) 勞灑矯擺嚼聰鱉?
#define ASK_YN_USE_ITEM 15 // 闌(甫) 葷儈竅矯擺嚼聰鱉?
#define ASK_WITHDRAWAL 16 // 茫絆磊 竅綽 陛咀闌 澇妨竅技夸.
#define ASK_RECEIPT 17 // 該扁絆磊竅綽 陛咀闌 澇仿竅技夸.
class CMsgBox
{
//////////////////////////////
// Function & Procedure
//////////////////////////////
public:
CMsgBox(); // Constructor
~CMsgBox(); // Destructor
// Function
virtual BOOL SetMsgBox(CHAR* szMsg,INT nType); // Init Messages
virtual BOOL ShowMessageBox(VOID); // Show Message box with Initialized
virtual BOOL ShowMessageBox(CHAR* szMsg,INT nType=0); // Show Message box with Initialization
virtual BOOL HideMessageBox(VOID); // Hide Message box
virtual BOOL DestoryMessageBox(VOID); // DestoryMessage box
// Information
BOOL IsActive(VOID);
BOOL IsInited(VOID);
// Message Process
virtual HRESULT OnButtonDown(LPARAM lParam, WPARAM wParam); // Button Down
virtual HRESULT OnButtonUp(LPARAM lParam,WPARAM wParam); // Button Up
// Render Process
virtual BOOL RenderMessageBox(INT nLoopTIme); // Render Function
private:
protected:
__inline BOOL IsInRect(int nPosX, int nPosY, RECT rc) // 瀝犬竅霸 Rect 救秦 樂綽啊甫 眉農
{ if (nPosX >= rc.left && nPosX <= rc.right && nPosY >= rc.top && nPosY <= rc.bottom)
return TRUE;
else
return FALSE;
}
public:
CHAR m_szMsg[MAX_PATH]; // 免仿且 鞏磊
private:
protected:
INT m_nType; // 0: OK(犬牢) ,1 : YES/NO ,2 : YES/NO/Cancle ,3 : EditBox & OK(犬牢) ...
BOOL m_bActive; // Show or Hide ??
BOOL m_bInited; // Initialized ?
BOOL m_bSet; // Set ?
};
#endif _MSGBOX_H_
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -