Solved

BS_BITMAP button style - how place Bitmap?

Posted on 1997-10-08
2
1,285 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

This tutorial is about how to put some of your C++ program's functionality into a standard DLL, and how to make working with the EXE and the DLL simple and seamless.   We'll be using Microsoft Visual Studio 2008 and we will cut out the noise; that i…
This article surveys and compares options for encoding and decoding base64 data.  It includes source code in C++ as well as examples of how to use standard Windows API functions for these tasks. We'll look at the algorithms — how encoding and decodi…
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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

708 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now