WGS.cpp
上传用户:garry_shen
上传日期:2015-04-15
资源大小:45647k
文件大小:5k
- #include "stdafx.h"
- #include <windows.h>
- #include <time.h>
- #include "Common.h"
- #include "WGS.h"
- #include "..FacePlate.h"
- #include "..XMudClient.h"
- extern int g_nGameState;
- extern D3DAppInfo* d3dapp;
- extern BOOL bShowCaret;
- WGS wgs;
- BOOL WGS::Initiate(HWND hwnd)
- {
- WGS::hwnd=hwnd;
- hSaveOption=NULL;
- bOk=FALSE;
- bCancel=FALSE;
- SetRect(&rcWGS,0,0,800,600);
- SetRect(&rcCheck,0,600,19,616);
- SetRect(&rcOk,20,600,95,623);
- SetRect(&rcCancel,96,600,171,623);
- SetRect(&rcCaret,172,600,176,612);
- SetRect(&rcName,530,375,606,390);
- SetRect(&rcPassword,530,411,606,426);
- SetRect(&rcLine,522,501,597,524);
- SetRect(&rcExit,641,501,716,524);
- SetRect(&rcFont,210,230,340,260);
- SetRect(&rectBulletin,529,256,709,342);
- SetRect(&rcSaveOption,507,456,526,472);
- LoadOption();
- if(!InitiateAllEdit())
- return FALSE;
- editPassword.Disable();
- editName.Enable();
- font=GetFont(FONT_HEIGHT,"灿