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.

BUTTONS<br />

4.1 Bitmap Button: Automatic Method<br />

Button States<br />

Owner-Draw Bitmap Button<br />

Automatic Method<br />

Sample<br />

4.2 Bitmap Check Box and Radio Button: Method 1<br />

4.3 Subclass<br />

Implementing Subclass<br />

Bitmap Button<br />

4.4 Bitmap Check Box and Radio Button: Method 2<br />

4.5 Irregular Shape Bitmap Button<br />

Transparent Background<br />

New Class<br />

Overriding Function CBitmapButton::LoadBitmaps(…)<br />

Overriding Function CBitmapButton::AutoLoad(…)<br />

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

Using Class MCBitmapButton<br />

4.6 Making Button Aware of Mouse Position<br />

Trapping Message WM_LBUTTONUP within Button<br />

User-Defined Message<br />

Sample<br />

4.7 Mouse Sensitive Button<br />

Setting Capture<br />

New Class<br />

Implementation<br />

Summary<br />

COMMON CONTROLS<br />

5.1 Spin Control<br />

Using Spin Control with Edit Box<br />

5.2 Customizing the Properties of Spin Control<br />

5.3 Displaying Text Strings in the Buddy Window<br />

5.4 Bitmap Button Buddy<br />

5.5 Slider<br />

Including Slider Control in the Application<br />

Handling Slider Related Messages<br />

5.6 List Box<br />

5.7 Handling List Box Messages<br />

iv

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

Saved successfully!

Ooh no, something went wrong!