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.

Checking a Menu Item<br />

2.2 Right Click Pop Up Menu<br />

Adding Menu Resource<br />

Trapping Right Button Clicking Event<br />

Using Class CMenu<br />

Implementing Right-Click Menu<br />

Message Mapping for Right-Click Menu<br />

2.3 Updating Menu Dynamically<br />

Menu Struture<br />

Inserting and Removing Menu Item<br />

Sample Implementation<br />

2.4 Bitmap Check<br />

2.5 System Menu and Bitmap Menu Item<br />

System Menu<br />

Bitmap Menu Item<br />

New Functions<br />

Menu Modification<br />

Message Mapping for System Command<br />

2.6 Owner-Draw Menu<br />

Overriding Two Functions<br />

Drawing a Bitmap<br />

Deriving a New Class from CMenu<br />

Overriding Function CMenu::MeasureItem(…)<br />

Overriding Function CMenu::DrawItem(…)<br />

Using the New Class<br />

2.7 Changing the Whole Menu Dynamically<br />

Summary<br />

SPLITTER WINDOW<br />

3.1 Implementing Static Splitter Windows<br />

3.2 Dynamic Splitter Window<br />

3.3 Customizing the Behavior of Split Bar<br />

Splitter Window Layout<br />

Overriding CSplitterWnd::DeleteRow(…) and CSplitterWnd:: DeleteColumn(…)<br />

Using the New Class<br />

3.4 Customizing the Default Appearance<br />

Drawing Functions<br />

Sample<br />

3.5 Splitter Window That Can’t be Resized by Tracking<br />

Summary<br />

iii

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

Saved successfully!

Ooh no, something went wrong!