1 2 #pragma once 3 4 #include <afxcview.h> 5 6 #include "recent_project_win.h" 7 8 class target_frame : public CScrollView 9 { 10 public: 11 target_frame(); 12 virtual void OnInitialUpdate(); 13 virtual void OnDraw(CDC* pDC); 14 15 void UpdateScrollSize(); 16 17 // Generated message map functions 18 protected: 19 BOOL PreCreateWindow(CREATESTRUCT &cs); 20 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); 21 afx_msg void OnSize(UINT nType, int cx, int cy); 22 afx_msg void OnLButtonDown(UINT nFlags, CPoint point); 23 afx_msg void OnKeyDown(UINT nChar, UINT Rep, UINT flags); 24 afx_msg BOOL OnEraseBkgnd(CDC *pDC); 25 DECLARE_MESSAGE_MAP() 26 27 private: 28 public: 29 virtual BOOL OnScroll(UINT nScrollCode, UINT nPos, BOOL bDoScroll = TRUE); 30 }; 31 32 class target_view : public CView 33 { 34 protected: 35 DECLARE_DYNCREATE(target_view) 36 37 public: 38 target_view(); 39 ~target_view(); 40 virtual void OnInitialUpdate(); 41 virtual void OnDraw(CDC* pDC); 42 GetTargetScreen()43 target_screen *GetTargetScreen() {return mpTargetScreen;} 44 void DisplayTarget(); 45 void DisplayRecentProjects(); 46 void InitialDisplay(); GetRecentDialog()47 CDialog *GetRecentDialog() { return mpRecentDialog;} 48 49 // Generated message map functions 50 protected: 51 BOOL PreCreateWindow(CREATESTRUCT &cs); 52 afx_msg BOOL OnEraseBkgnd(CDC *pDC); 53 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); 54 afx_msg void OnSize(UINT nType, int cx, int cy); 55 afx_msg void OnSetFocus(CWnd* pOldWnd); 56 virtual BOOL PreTranslateMessage(MSG* pMsg); 57 DECLARE_MESSAGE_MAP() 58 59 private: 60 61 target_frame *mpTargetFrame; 62 63 express_dialog *mpRecentDialog; 64 target_screen *mpTargetScreen; 65 CToolBar *mpToolBar; 66 };