Solved

BS_BITMAP button style - how place Bitmap?

Posted on 1997-10-08
2
1,319 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

If you have ever found yourself doing a repetitive action with the mouse and keyboard, and if you have even a little programming experience, there is a good chance that you can use a text editor to whip together a sort of macro to automate the proce…
As more and more people are shifting to the latest .Net frameworks, the windows presentation framework is gaining importance by the day. Many people are now turning to WPF controls to provide a rich user experience. I have been using WPF controls fo…
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…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

628 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