11.04.2014 Views

Advanced MFC Programming

Advanced MFC Programming

Advanced MFC Programming

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Trapping Double Clicking Message<br />

Retrieving the Contents of an Item<br />

Message WM_DESTROY<br />

5.8 Combo Box<br />

Implementing Combo Boxes<br />

Handling Messages CBN_CLOSEUP and CBN_SELCHANGE<br />

5.9 Trapping RETURN key strokes for the Combo Box<br />

Problem & Workaround<br />

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

Accessing the Edit Box of a Combo Box<br />

5.10 Implementing Subclass for the Edit Box of a Combo Box<br />

Designing New Classes<br />

Implementing Subclass<br />

5.11 Owner Draw List Box and Combo Box<br />

Owner-Draw Styles<br />

Preparing Bitmaps<br />

Identifying Item Types<br />

Handling Message WM_MEASUREITEM<br />

Handling Message WM_DRAWITEM<br />

5.12 Tree Control<br />

Image List<br />

Adding Nodes<br />

Sample<br />

5.13 Handling Tree Control Messages<br />

Handling TVN_ITEMEXPANDING to Change a Node’s Associated Image<br />

Handling TVN_ENDLABELEDIT to Enable Label Editing<br />

Using the New Class<br />

5.14 Drag-n-Drop<br />

Handling New Messages<br />

New Member Variables and Functions<br />

Node Copy<br />

TVN_BEGINDRAG<br />

WM_MOUSEMOVE<br />

WM_LBUTTONUP<br />

5.15 List Control<br />

LV_COLUMN and LV_ITEM<br />

Sample<br />

Creating Image Lists<br />

Creating Columns<br />

Creating Sub-items<br />

Changing List Style Dynamically<br />

5.16 Tab Control<br />

Using Tab Control<br />

Handling Tab Control Message<br />

5.17 Animate Control and Progress Control<br />

v

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

Saved successfully!

Ooh no, something went wrong!