// MfcKatsunari.h : MFCKATSUNARI アプリケーションのメイン ヘッダー ファイル // #ifndef __AFXWIN_H__ #error include 'stdafx.h' before including this file for PCH #endif #include "resource.h" // メイン シンボル ///////////////////////////////////////////////////////////////////////////// // CMfcKatsunariApp: // このクラスの動作の定義に関しては MfcKatsunari.cpp ファイルを参照してください。 // class CMfcKatsunariApp : public CWinApp { public: virtual BOOL PreTranslateMessage(MSG* pMsg); CMfcKatsunariApp(); bool m_bCommUseable; // オーバーライド // ClassWizard は仮想関数を生成しオーバーライドします。 //{{AFX_VIRTUAL(CMfcKatsunariApp) public: virtual BOOL InitInstance(); virtual BOOL OnIdle(LONG lCount); //}}AFX_VIRTUAL // インプリメンテーション //{{AFX_MSG(CMfcKatsunariApp) afx_msg void OnAppAbout(); // メモ - ClassWizard はこの位置にメンバ関数を追加または削除します。 // この位置に生成されるコードを編集しないでください。 //}}AFX_MSG DECLARE_MESSAGE_MAP() }; typedef BOOL (*Pinitcom)(int port); typedef BOOL (*Psendxy)(int x, int y); typedef BOOL (*Preceivexy)(int *x, int *y); typedef BOOL (*Pnewgame)(int color); typedef BOOL (*Pclosecom)(VOID); #ifdef MAIN_SRC HICON hStoneIcon[32][2]; // こんなに種類はないけど。 HICON hBlackStoneIcon[2]; HICON hWhiteStoneIcon[2]; HCURSOR hStoneCursor[3][2]; // HICON hHoshiIcon[2]; // 星 HICON hMarkIcon[2]; // 最近打たれた石に印を。 HICON hRedSquareIcon[2]; Pinitcom initcom; Psendxy sendxy; Preceivexy receivexy; Pnewgame newgame; Pclosecom closecom; LPVOID lpSound; #else extern HICON hStoneIcon[32][2]; extern HICON hBlackStoneIcon[2]; extern HICON hWhiteStoneIcon[2]; extern HCURSOR hStoneCursor[3][2]; extern HICON hHoshiIcon[2]; extern HICON hMarkIcon[2]; extern HICON hRedSquareIcon[2]; extern Pinitcom initcom; extern Psendxy sendxy; extern Preceivexy receivexy; extern Pnewgame newgame; extern Pclosecom closecom; extern LPVOID lpSound; #endif /////////////////////////////////////////////////////////////////////////////