Advanced MFC Programming

Advanced MFC Programming Advanced MFC Programming

math.hcmuns.edu.vn
from math.hcmuns.edu.vn More from this publisher
11.04.2014 Views

Clipboard DIB Format Preparing DIB Data Cut & Copy Paste 11.10 Palette Change & Flickering Problems Message WM_PALETTECHANGED Flickering Summary SCREEN CAPTURING & PRINTING 12.1 Capturing the Whole Screen Capture Converting DDB to DIB New Command 12.2 Capturing a Specified Window Picking Up a Window Dialog Box IDD_DIALOG_SELECT New Command 12.3 Simple Printing Mapping Mode Converting between Logical and Device Units Implementing Print Scaling the Image before Printing Displaying or Printing? Function CGDIView::OnDraw(…) 12.4 Fixed Scale Printing Printing Related Functions Sample 12.4\GDI 12.5 Printing on Separate Pages Number of required Pages is Known Beforehand Setting Number of Pages Just Before Printing Starts Calculating the Number of Pages when the Printing Is Undergoing 12.6 Customizing Print Dialog Box Customizing Common Controls Using Custom Dialog Template Summary ADDING SPECIAL FEATURES TO APPLICATION 13.1 One Instance Application Window Creation Function CWnd::PreCreateWindow(…) One-Instance Application in MFC Sample 13.1\Once xii

13.2 Creating Applications without Using Document/View Structure How Application, Document and View Are Bound Together Creating Window Sample 13.2\Gen Excluding Classes from Build 13.3 Implementing Multiple Views Simple View Implementation Attaching Multiple Views to One Document Sample 13.3\Chart Window Origin and View Port Origin MM_ANISOTROPIC & MM_ISOTROPIC Window Extents and View Port Extents Pie Chart Drawing 13.4 Multiple Documents Implementation 13.5 Painting Caption Bar Non-client Area and Related Messages Caption Text Area Sample 13.5\Cap 13.6 Irregular Shape Window Problem Style WS_EX_TRANSPARENT Using Dialog Box Disabling Default Background Painting Disabling Non-client Area Painting Moving the Window with Mouse 13.7 Saving Initial States Where to Save the Information Functions Used to Write and Read Information Format of “.ini” File Sample 13.7\Ini 13.8 Exchanging User-Defined Messages Among Applications Registering User Defined Messages Sample Finding Window & Sending Message 13.9 Z-Order 13.10 Hook Hook Installation System Wide Hook Variables in DLL Defining Data Segment DLL Implementation Sample 13.6\Hook 13.11 Journal Record and Journal Playback Hooks Analyzing Events Playing back the Recorded Events Using Functions Contained in DLL xiii

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!