www.pudn.com > PG20101.zip > MainWin.h
//
// Main window--主視窗
//
// Copyright (c) 2000-2001 Chihiro.SAKAMOTO (HyperWorks)
//
#ifndef __MainWin_h__
#define __MainWin_h__
#include "Window.h"
#include "dc.h"
#include "Action.h"
#include "Image.h"
#include "DrawImage.h"
//
// 主視窗類別
//
class CMainWin: public CWindow {
public:
CMainWin();
~CMainWin();
LRESULT WindowProc(UINT uMsg, WPARAM wParam, LPARAM lParam);
void OnCommand(UINT notifyCode, UINT id, HWND ctrl);
void DeleteAllAction();
// 戰鬥畫面使用
BOOL Battle();
CDrawImage *GetViewImage() { return &ViewImage; }
protected:
virtual BOOL PreCreateWindow(CREATESTRUCT &cs);
BOOL OnCreate(CREATESTRUCT *cs);
void OnFirstAction();
void OnClose();
void OnPaint();
void OnTimer(int id);
protected:
CAction *Action; // 目前的Action
CDrawImage ViewImage; // 顯示
UINT TimePeriod; // Timer的解析度
} ;
#endif