www.pudn.com > XmudOSr.rar > MainWnd.h
#if !defined(AFX_MAINWND_H__7E99D4A0_5976_11D3_BA84_0000E8A021D8__INCLUDED_)
#define AFX_MAINWND_H__7E99D4A0_5976_11D3_BA84_0000E8A021D8__INCLUDED_
#include "StartGameMenu.h" // Added by ClassView
#include "SplashWnd.h"
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// MainWnd.h : header file
//
#define MSG_PIECE_NUMBER 15 //定义在输入条中可以存放的最大信息条数
#define MSG_PIECE_LEN 86 //在输入条中可以存放的最大信息长度(char)
#define MSG_WIDTH_LEN 784 //在输入条中可以存放的最大信息长度(pixel)
/////////////////////////////////////////////////////////////////////////////
// CMainWnd window
typedef struct tagQuickTalk
{
char szTitle[16];
char szTalkMsg[128];
}CQuickTalk;
class CMainWnd : public CWnd
{
// Construction
public:
CMainWnd();
// Attributes
public:
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMainWnd)
protected:
virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
//}}AFX_VIRTUAL
// Implementation
public:
CSplashWnd m_SplashWnd;
virtual ~CMainWnd();
// Generated message map functions
protected:
//{{AFX_MSG(CMainWnd)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnDestroy();
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
BOOL CreateD3DRM(HWND win);
BOOL CreateD3DApp(LPSTR lpCmdLine);
BOOL AfterDeviceCreated(int w, int h, LPDIRECT3DVIEWPORT* lpViewport,
LPVOID lpContext);
BOOL BeforeDeviceDestroyed(LPVOID lpContext);
BOOL SetRenderState(void);
VOID AddMediaPath( LPDIRECT3DRM3 pD3DRM );
DWORD WINAPI DoInputMsg(LPVOID pv);
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MAINWND_H__7E99D4A0_5976_11D3_BA84_0000E8A021D8__INCLUDED_)