diff options
author | Ash Wolf <ninji@wuffs.org> | 2023-07-09 20:59:16 +0100 |
---|---|---|
committer | Ash Wolf <ninji@wuffs.org> | 2023-07-09 20:59:16 +0100 |
commit | c920fe38a19013b99f3f74e48da9724fb053c212 (patch) | |
tree | 6bb036fd3f61b85daceb26f74378eadcdd977db1 /src/T2NewDlg.h | |
parent | 96a63139221587c6be9659c1e07eacd3a8e7f048 (diff) | |
download | t2win-c920fe38a19013b99f3f74e48da9724fb053c212.tar.gz t2win-c920fe38a19013b99f3f74e48da9724fb053c212.zip |
support building from VC++ IDE, add resources
Diffstat (limited to '')
-rw-r--r-- | src/T2NewDlg.h | 35 |
1 files changed, 22 insertions, 13 deletions
diff --git a/src/T2NewDlg.h b/src/T2NewDlg.h index 5412231..caef686 100644 --- a/src/T2NewDlg.h +++ b/src/T2NewDlg.h @@ -1,5 +1,6 @@ #pragma once #include "common.h" +#include "resource.h" struct PluginRecord { T2BitImage *preview; @@ -12,28 +13,22 @@ struct PluginRecord { }; class T2NewDlg : public CFrameWnd { +protected: + T2NewDlg(); DECLARE_DYNCREATE(T2NewDlg) - DECLARE_MESSAGE_MAP() public: - T2NewDlg(); virtual ~T2NewDlg(); - virtual BOOL PreTranslateMessage(MSG *pMsg); void Setup(T2TowerDoc *inDoc, T2PluginLoader *inPluginLoader, BOOL inShowCancelButton); T2PluginSpecifier *GetSelectedPlugin(); -protected: + //{{AFX_VIRTUAL(T2NewDlg) + public: + virtual BOOL PreTranslateMessage(MSG *pMsg); + protected: virtual BOOL PreCreateWindow(CREATESTRUCT &cs); + //}}AFX_VIRTUAL - afx_msg void OnClose(); - afx_msg void OnTimer(UINT nIDEvent); - afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); - afx_msg BOOL OnQueryNewPalette(); - afx_msg void OnCommandOK(); - afx_msg void OnCommandCancel(); - afx_msg void OnCommand106(); - afx_msg void OnCommand107(); - afx_msg BOOL OnEraseBkgnd(CDC *pDC); void GoLeft(); void GoRight(); void DrawWorldPreview(CDC *pDC); @@ -59,4 +54,18 @@ protected: CButton mButton2; CButton mButton3; CButton mButton4; + +protected: + //{{AFX_MSG(T2NewDlg) + afx_msg void OnClose(); + afx_msg void OnTimer(UINT nIDEvent); + afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); + afx_msg BOOL OnQueryNewPalette(); + afx_msg void OnCommandOK(); + afx_msg void OnCommandCancel(); + afx_msg void OnCommand106(); + afx_msg void OnCommand107(); + afx_msg BOOL OnEraseBkgnd(CDC *pDC); + //}}AFX_MSG + DECLARE_MESSAGE_MAP() }; |