The study of Programming Windows with MFC--print's example
来源:互联网 发布:java getmethod 编辑:程序博客网 时间:2024/05/01 08:59
convert RGB color values into shades of gray with this formula:
r/g/b = (red * 0.30) + (green * 0.59) + (blue * 0.11)
class CHexDoc:public CDocument
{
public:
CHexDoc();
DECLARE_DYNCREATE(CHexDoc)
public:
BYTE GetBytes(UINT nIndex,UINT nCode,PVOID nBuffer);
UINT GetDocumentLength();
public:
virtual BOOL OnNewDocument();
virtual void Serialize(CArchive& ar);
virtual void DeleteContents();
public:
virtual ~CHexDoc();
protected:
BYTE* m_pFileData;
UINT m_nDocLength;
DECLARE_MESSAGE_MAP()
};
class CHexView : public CScrollView
{
protected:
CHexView();
DECLARE_DYNCREATE(CHexView)
public:
CHexDoc* GetDocument();
public:
virtual void OnDraw(CDC* pDC);
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual void OnInitialUpdate();
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
public:
virtual ~CHexView();
protected:
void FormatLine(CHexDoc* pDoc, UINT nLine, CString& string);
void PrintPageHeader(CHexDoc* pDoc, CDC* pDC, UINT nPageNumber);
void PrintPage(CHexDoc* pDoc, CDC* pDC, UINT nPageNumber);
UINT m_cxWidth;
UINT m_cxOffset;
UINT m_nLinesPerPage;
UINT m_nLinesTotal;
UINT m_cyPrinter;
UINT m_cyScreen;
CFont m_fontPrinter;
CFont m_fontScreen;
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
DECLARE_MESSAGE_MAP()
};
- The study of Programming Windows with MFC--print's example
- The study of Programming Windows with MFC
- The study of Programming Windows with MFC-printing tips
- The study of Programming Windows with MFC-Palette
- The study of Programming Windows with MFC--BitMap
- The Study of Programming Windows with MFC--Bitmap2
- The study of Programming Windows with MFC--CRgn
- The study of Programming Windows with MFC--Common Control
- The Study of Programming Windows with MFC--Slider,Spin,ToolTip
- The Study of Programming Windows with MFC--Imagelist and ComboBoxEx
- The study of chapter 13 in programming windows with mfc-printing with document and views
- The Study of Programming Windows with MFC--Progress and Animate control
- The study of Programming Windows with MFC--Ip Address control and Date control
- the study of programmng windows with mfc--timer
- programming windows with MFC
- study of The C Programming Language
- Programming Windows with MFC - Chapter 12 Toolbars
- print the layout of the structure with graphic bar
- Scrum 敏捷软件开发模型(不断完善中)
- 这个月的感想
- 汉字笔画教学控件开发-需求
- “中国剩余定理”简介、算理及其应用
- smarty 插件
- The study of Programming Windows with MFC--print's example
- 家长的十个坏习惯会毁掉孩子
- gcc的使用例子
- pku1410判断线段相交()
- Entity Framework 学习中级篇2—存储过程(上)
- mtd-utils工具的编译和使用
- 各种时间日期格式代码
- Ad-hoc测试
- 获取 google map key