00001
00009 #if !defined(HAMOLVIEW_MFC_H)
00010 #define HAMOLVIEW_MFC_H
00011
00012 #include "hamolview.h"
00013
00014 class HaMolViewMFC : public CView, public HaMolView
00015 {
00016 public:
00017 HaMolViewMFC();
00018
00019 friend class MolViewParDlg;
00020
00021 DECLARE_DYNCREATE(HaMolViewMFC)
00022
00023
00024
00025
00026 public:
00027 virtual void OnDraw(CDC* pDC);
00028 virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
00029 protected:
00030 virtual void OnInitialUpdate();
00031 virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
00032
00033
00034 virtual void OnActivateView(BOOL bActivate, CView* pActivateView,
00035 CView* pDeactiveView );
00036
00037 int HeldButton;
00038
00039
00040
00041
00042 afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
00043 afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
00044 afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
00045 afx_msg void OnMouseMove(UINT nFlags, CPoint point);
00046 afx_msg void OnDropFiles(HDROP hDropInfo );
00047 afx_msg void OnSize(UINT nType, int cx, int cy );
00048 afx_msg void SaveOutputFile();
00049 afx_msg void OnSaveImageClipboard();
00050 afx_msg void OnTimer(UINT nIDEvent);
00051 afx_msg void OnLabelsOff();
00052 afx_msg void OnLabelsAtomNames();
00053 afx_msg void OnLabelsAtomId();
00054 afx_msg void OnLabelsAtomSeqNum();
00055 afx_msg void OnCenterViewSel();
00056
00057
00058 afx_msg void OnSelectAll();
00059 afx_msg void OnCopy();
00060 afx_msg void OnWireFrame();
00061 afx_msg void OnBackBone();
00062 afx_msg void OnSticks();
00063 afx_msg void OnSpheres();
00064 afx_msg void OnBallStick();
00065 afx_msg void OnRibbons();
00066 afx_msg void OnStrands();
00067 afx_msg void OnCartoons();
00068 afx_msg void OnMono();
00069 afx_msg void OnCPK();
00070 afx_msg void OnShapely();
00071 afx_msg void OnStruct();
00072 afx_msg void OnColGroups();
00073 afx_msg void OnColResidues();
00074 afx_msg void OnColChain();
00075 afx_msg void OnColTemper();
00076 afx_msg void OnSlab();
00077 afx_msg void OnHydrogen();
00078 afx_msg void OnHetero();
00079 afx_msg void OnSpecular();
00080 afx_msg void OnStereo();
00081 afx_msg void OnLabels();
00082 afx_msg void OnShowAtomID();
00083 afx_msg void OnMeasureDist();
00084 afx_msg void OnMeasureAngle();
00085 afx_msg void OnMeasureDihed();
00086 afx_msg void OnMolConnect();
00087 afx_msg void OnWorldConnect();
00088 afx_msg void DoViewParamDlg();
00089 afx_msg void DoObject3DDialog();
00090
00091 LRESULT OnUpdateGeom(WPARAM wParam, LPARAM lParam);
00092
00093 DECLARE_MESSAGE_MAP()
00094
00095 public:
00096 HBITMAP PixMap;
00097
00098 HWND view_param_dlg_wnd;
00099 HWND object3d_dlg_wnd;
00100
00101 static BITMAPINFO* BitInfo;
00102
00103 virtual void UpdateThisView(long lHint=0);
00104 virtual void TransferImage();
00105 virtual void ClearImage();
00106 virtual int PrintImage();
00107 virtual int ClipboardImage();
00108 virtual void RefreshScreen();
00109
00110 HaMolSetDoc* GetDocument();
00111
00112 };
00113
00114 class HaMolViewFrame : public CMDIChildWnd
00115 {
00116 DECLARE_DYNCREATE(HaMolViewFrame)
00117 public:
00118 HaMolViewFrame();
00119
00120
00121 public:
00122
00123
00124 public:
00125
00126
00127
00128 virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
00129 virtual BOOL OnCreateClient( LPCREATESTRUCT lpcs, CCreateContext* pContext );
00130
00131 virtual void OnUpdateFrameTitle(BOOL bAddToTitle);
00132
00133
00134 public:
00135 virtual ~HaMolViewFrame();
00136
00137
00138 protected:
00139
00140
00141
00142 DECLARE_MESSAGE_MAP()
00143 };
00144
00145
00146 #endif // !defined(HAMOLVIEW_MFC_H)