11.04.2014 Views

Advanced MFC Programming

Advanced MFC Programming

Advanced MFC Programming

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Clipboard DIB Format<br />

Preparing DIB Data<br />

Cut & Copy<br />

Paste<br />

11.10 Palette Change & Flickering<br />

Problems<br />

Message WM_PALETTECHANGED<br />

Flickering<br />

Summary<br />

SCREEN CAPTURING & PRINTING<br />

12.1 Capturing the Whole Screen<br />

Capture<br />

Converting DDB to DIB<br />

New Command<br />

12.2 Capturing a Specified Window<br />

Picking Up a Window<br />

Dialog Box IDD_DIALOG_SELECT<br />

New Command<br />

12.3 Simple Printing<br />

Mapping Mode<br />

Converting between Logical and Device Units<br />

Implementing Print<br />

Scaling the Image before Printing<br />

Displaying or Printing?<br />

Function CGDIView::OnDraw(…)<br />

12.4 Fixed Scale Printing<br />

Printing Related Functions<br />

Sample 12.4\GDI<br />

12.5 Printing on Separate Pages<br />

Number of required Pages is Known Beforehand<br />

Setting Number of Pages Just Before Printing Starts<br />

Calculating the Number of Pages when the Printing Is Undergoing<br />

12.6 Customizing Print Dialog Box<br />

Customizing Common Controls<br />

Using Custom Dialog Template<br />

Summary<br />

ADDING SPECIAL FEATURES TO APPLICATION<br />

13.1 One Instance Application<br />

Window Creation<br />

Function CWnd::PreCreateWindow(…)<br />

One-Instance Application in <strong>MFC</strong><br />

Sample 13.1\Once<br />

xii

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!