BS_BITMAP button style - how place Bitmap?

title says it all.
rc(Resource Compiler) compiles BS_BITMAP well
but how put the bitmap

thanks
OnkelAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
jabaConnect With a Mentor Commented:
IF you using MFC you have to create CButton member associated with your button and in your OnInitDialog call this :

MyDlgnitDialog()
{
...
m_cBmpBtn.SetBitmap(...);
}

If you dont use MFC , on WM_INITDIALOG message call this:
SendMesage(GetDlgItem(hwnd, ID_MY_BMPBTN), BM_SETIMAGE, ... , ... );


0
 
OnkelAuthor Commented:
Works fine . I dont use MFC and implemented the
SendMessage(...


0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.