SvrSelProc.cpp
上传用户:cydong117
上传日期:2009-11-10
资源大小:638k
文件大小:2k
- #include "StdAfx.h"
- /******************************************************************************************************************
- 霸烙 敲饭捞 包访 窃荐甸.
- *******************************************************************************************************************/
- CSvrSelProcess::CSvrSelProcess()
- {
- }
- CSvrSelProcess::~CSvrSelProcess()
- {
- }
- VOID CSvrSelProcess::Load()
- {
- }
- VOID CSvrSelProcess::DeleteProc()
- {
- }
- VOID CSvrSelProcess::RenderScene(INT nLoopTime)
- {
- Clear(RGB(0, 0, 0));
- // ShowStatus(0, 0);
- }
- VOID CSvrSelProcess::SetNextProc()
- {
- DeleteProc();
- g_xMainWnd.m_pxDefProcess = &g_xChrSelProc;
- g_xChrSelProc.Load();
- g_bProcState = _CHAR_SEL_PROC;
- }
- /******************************************************************************************************************
- 皋矫瘤 包访 窃荐.
- *******************************************************************************************************************/
- LRESULT CSvrSelProcess::DefMainWndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
- {
- switch ( uMsg )
- {
- case WM_KEYDOWN:
- OnKeyDown(wParam, lParam);
- break;
- default:
- break;
- }
- return CWHDefProcess::DefMainWndProc(hWnd, uMsg, wParam, lParam);
- }
- LRESULT CSvrSelProcess::OnKeyDown(WPARAM wParam, LPARAM lParam)
- {
- switch ( wParam )
- {
- case VK_RETURN:
- {
- SetNextProc();
- }
- break;
- }
- return 0L;
- }
- /******************************************************************************************************************
- 扁鸥 窃荐棺 叼滚弊侩 窃荐.
- *******************************************************************************************************************/
- VOID CSvrSelProcess::ShowStatus(INT nStartX, INT nStartY)
- {
- TCHAR szBuff[MAX_PATH];
- sprintf(szBuff, "Server Select Procedure");
- g_xMainWnd.PutsHan(g_xMainWnd.GetBackBuffer(), nStartX, nStartY, RGB(250, 250, 250), RGB(0, 0, 0), szBuff);
- CWHDefProcess::ShowStatus(nStartX, nStartY+20);
- }