i am trying to place a bitmap image on a cbuton by using setBitmap() function, it is not showing up. kindly assist.

Recommended Answers

All 2 Replies

I put on my wizard-hat and robe.. err, I mean: I have a look in my crystal ball and see:
Post the code that isn't working

HBITMAP hBmp = (HBITMAP)LoadImage(NULL, "D:\\pradeeep\\Rootkit_Module\\Scan_Button.bmp",IMAGE_BITMAP, 0, 0, LR_DEFAULTCOLOR | LR_LOADFROMFILE);
m_scanbtn.SetBitmap(hBmp);

where m_scanbtn is a CButton
i have tried using a picture control and its working but i dont want to use picture control due to visualization problem.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.