Rich text drawing,printing preview and printing (gdi only) in c

The following C project contains the C source code and C examples used for rich text drawing,printing preview and printing (gdi only). Rich Text Drawing,Printing Preview and Printing (GDI only) Introduction "Why the drawing and printing preview of my rich text work fine,but when I tried to print to paper,it cann't work?" I had found that there are many people asked for this question many many times,I hope this article and codes can help you.

The source code and files included in this project are listed in the project files section, please make sure whether the listed source code meet your needs there.

Project Files: 

File NameSize
ChildFrm.cpp 1544
ChildFrm.h 1397
MainFrm.cpp 2824
MainFrm.h 1479
ReadMe.txt 5063
TestRichEditPrint.ico 1078
TestRichEditPrint.rc2 409
TestRichEditPrintDoc.ico 1078
Toolbar.bmp 630
resource.h 651
StdAfx.cpp 219
StdAfx.h 1054
TestRichEditPrint.cpp 4675
TestRichEditPrint.dsp 4914
TestRichEditPrint.dsw 557
TestRichEditPrint.h 1477
TestRichEditPrint.rc 13443
TestRichEditPrintDoc.cpp 1962
TestRichEditPrintDoc.h 1596
TestRichEditPrintView.cpp 10264
TestRichEditPrintView.h 2876