- Visual C++源码
- Visual Basic源码
- C++ Builder源码
- Java源码
- Delphi源码
- C/C++源码
- PHP源码
- Perl源码
- Python源码
- Asm源码
- Pascal源码
- Borland C++源码
- Others源码
- SQL源码
- VBScript源码
- JavaScript源码
- ASP/ASPX源码
- C#源码
- Flash/ActionScript源码
- matlab源码
- PowerBuilder源码
- LabView源码
- Flex源码
- MathCAD源码
- VBA源码
- IDL源码
- Lisp/Scheme源码
- VHDL源码
- Objective-C源码
- Fortran源码
- tcl/tk源码
- QT源码
eDrawDlg.h
资源名称:eDraw2 [点击查看]
上传用户:fjzzwyy
上传日期:2007-01-14
资源大小:244k
文件大小:3k
源码类别:
绘图程序
开发平台:
Visual C++
- // eDrawDlg.h : header file
- //
- //{{AFX_INCLUDES()
- #include "statusbar.h"
- #include "drawmethod.h"
- #include "CSBitmap.h"
- //}}AFX_INCLUDES
- #if !defined(AFX_EDRAWDLG_H__71A3619C_2682_49B6_ACE4_771FC083A53B__INCLUDED_)
- #define AFX_EDRAWDLG_H__71A3619C_2682_49B6_ACE4_771FC083A53B__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #define LINEMODE_FREE 0
- #define LINEMODE_BPB 1
- #define LINEMODE_DDA 2
- #define LINEMODE_BRESENHAM 3
- #define LINEMODE_BROKEN 4
- #define LINEMODE_THICK 5
- #define DRAWMODE_FILL 0
- #define DRAWMODE_LINE 1
- #define DRAWMODE_POLY 2
- #define DRAWMODE_CIRCLE 3
- #define DRAWMODE_ELLIPSE 4
- #define DRAWMODE_PIPO 6
- #define DRAWMODE_ERASE 5
- #define CURSORMODE_PEN 1
- #define CURSORMODE_FILL 2
- #define CURSORMODE_POLY 3
- #define CURSORMODE_CIRCLE 4
- #define CURSORMODE_CROSS 5
- #define CURSORMODE_ERASE 6
- #define CURSORMODE_STANDARD 0
- /////////////////////////////////////////////////////////////////////////////
- // CEDrawDlg dialog
- #include "GfxOutBarCtrl.h"
- class CEDrawDlg : public CDialog
- {
- // Construction
- public:
- CEDrawDlg(CWnd* pParent = NULL); // standard constructor
- CGfxOutBarCtrl wndBar; //Outlook风格窗口控件
- CImageList imaLarge, imaSmall,imaDisable,imaSunken; //需要用的图象列表
- CBitmap currentClientBmp;
- CBrush m_BGBrush;
- bool m_isDrawing;
- int m_DrawMode;
- int m_CursorMode;
- int m_LineMode;
- PointType m_PolyPoint[100];
- int m_PolyPointCount,m_LastPolyPointCount;
- COLORREF m_CurrentPenColor,m_CurrentBGColor;
- PointType StartPoint,EndPoint;
- BOOL SaveCurrentClientToDC();
- BOOL RestoreClientFromDC();
- BOOL ClearClient();
- int m_Step;
- CSBitmap bitmap;
- // Dialog Data
- //{{AFX_DATA(CEDrawDlg)
- enum { IDD = IDD_EDRAW_DIALOG };
- CStatusBar1 m_statusAxis;
- //}}AFX_DATA
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CEDrawDlg)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- HICON m_hIcon;
- // Generated message map functions
- //{{AFX_MSG(CEDrawDlg)
- virtual BOOL OnInitDialog();
- afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
- afx_msg void OnPaint();
- afx_msg HCURSOR OnQueryDragIcon();
- afx_msg void OnMouseMove(UINT nFlags, CPoint point);
- afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
- afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
- afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
- afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
- afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
- //}}AFX_MSG
- afx_msg long OnOutbarNotify(WPARAM wParam,LPARAM lParam);
- DECLARE_MESSAGE_MAP()
- };
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_EDRAWDLG_H__71A3619C_2682_49B6_ACE4_771FC083A53B__INCLUDED_)