WGS.h
上传用户:garry_shen
上传日期:2015-04-15
资源大小:45647k
文件大小:1k
- #ifndef __WGS
- #define __WGS
- #define MAXEDIT MAXPLAYERNAME
- #include <Stdio.h>
- #include "CEditBar.h"
- #include "CMessageList.h"
- struct Option
- {
- BOOL bSaveOption;
- TCHAR szName[MAXEDIT];
- TCHAR szPassword[MAXEDIT];
- };
- extern char szUserCount[];
- extern char szUserPassword[];
- class WGS
- {
- private:
- HWND hwnd;
- FILE *hSaveOption;
- Option option;
- TCHAR szSaveOption[512];
- BOOL bOk;
- BOOL bCancel;
- RECT rcWGS;
- RECT rcCheck;
- RECT rcOk;
- RECT rcCancel;
- RECT rcCaret;
- RECT rcName;
- RECT rcPassword;
- RECT rcSaveOption;
- RECT rcLine;
- RECT rcExit;
- RECT rcFont;
- RECT rectBulletin;
- CEditBar editName;
- CEditBar editPassword;
- HFONT font;
- HFONT font_big;
- BOOL bLink;
- CMessageList messlistBulletin;
- private:
- void LoadOption();
- void SaveOption();
- BOOL InitiateAllEdit();
- void DisableAllEdit();
- protected:
- public:
- WGS(){}
- ~WGS(){}
- BOOL Initiate(HWND hwnd);
- void Release();
- HRESULT ShowWGS(IDirectDrawSurface *lpdds,IDirectDrawSurface *lpddsWGS);
- void LButtonDown(int x,int y);
- int LButtonUp(int x,int y);
- void DoExit();
- int Enter();
- void Tab();
- void Exit(LPCTSTR lpstr);
- void PutCharAllEdit(WPARAM wParam,int iRepeat);
- void ControlAllEdit(WPARAM wParam);
- void SetUserName(){lstrcpy(szUserCount,editName.GetEdit());}
- void SetUserPassword(){lstrcpy(szUserPassword,editPassword.GetEdit());}
- void AddMessage(LPTSTR lpstr);
- };
- extern WGS wgs;
- #endif