Solved

BS_BITMAP button style - how place Bitmap?

Posted on 1997-10-08
2
1,293 Views
Last Modified: 2013-12-03
title says it all.
rc(Resource Compiler) compiles BS_BITMAP well
but how put the bitmap

thanks
0
Comment
Question by:Onkel
2 Comments
 
LVL 3

Accepted Solution

by:
jaba earned 100 total points
ID: 1407280
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
 

Author Comment

by:Onkel
ID: 1407281
Works fine . I dont use MFC and implemented the
SendMessage(...


0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question