NPCWnd.h
上传用户:cydong117
上传日期:2009-11-10
资源大小:638k
文件大小:1k
- #ifndef _CNPCWnd_H
- #define _CNPCWnd_H
- /*using namespace std;
- */
- class CNPCWnd : public CGameWnd
- {
- public:
- INT m_nNpcId;
- protected:
- CWHWilImageData m_xNPCImage;
- int m_nStartLine;
- int m_nMaxLine;
- public:
- CNPCWnd();
- ~CNPCWnd();
- VOID CreateNPCChatWnd(INT nID, CWHWilImageData* pxWndImage, INT nFrameImgIdx, INT nStartX, INT nStartY, INT nWidth, INT nHeight, BOOL bCanMove);
- VOID ShowNPCChatWnd();
- __inline void SetNPC(int nNPCID) { m_nNpcId = nNPCID; }
- void ResetDialog();
- public:
- VOID SetNpcEditBoxPos(VOID);
- VOID SetWndRectReduce(VOID);
- VOID SetWndRectExtend(VOID);
- // 皋矫瘤 窃荐.
- BOOL OnLButtonDown(POINT ptMouse);
- BOOL OnLButtonUp(POINT ptMouse);
- VOID OnMouseMove(POINT ptMouse);
- BOOL OnMsgInputted(VOID);
- VOID OnScrollDown();
- VOID OnScrollUp();
- VOID OnEnterKeyDown(VOID);
- private:
- // Command Click 贸府
- BOOL ClickCommandProcess(CMTxtBtn* ClickedBtn); // 酒贰 俊 乐绰 巴甸 辆钦
- BOOL SendCommandToSrv(CHAR* szMsg);
- INT m_nNpcMsgState;
- CMTxtBtn* m_pClickedTxtBtn;
- CMirMsgBox m_xMsgBox;
- /* ClickPepairCommand(VOID); // 绊摹促(@REPAIR)
- ClickSellCommand(VOID); // 迫促(@SELL)
- ClickBuyCommand(VOID); // 荤促(@BUY)
- ClickBuildGuildCommand(VOID); // 巩颇汲赋(@@BUILDGUILDNOW)
- ClickSpecialRepairCommand(VOID);// 漂荐荐府(@SPECIALREPAIR)
- ClickMakeCommand(VOID); // 父甸促(@MAKE)
- */
- };
- #endif // _CNPCWnd_H