Button with image.

Follow these instructions to display image in place of button, to make it attractive instead of standard look.

1. Add button to dialog box in design mode(as usual).

2. Add Member variable to this button which will be used to access this button.

3.  go to “.h” file, Change CButton type to CBitmapButton.

4.  Add some bitmap resources to display over image.

5. go to “.cpp” file, in OnInitDialog(),


thats it.

NOTE :: Remember m_btnOk is of type CBitmapButton.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: