Solved

BS_BITMAP button style - how place Bitmap?

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

This article describes how to programmatically preset the "Pages per Sheet" option that's available with most printer drivers.   This setting lets you do "n-Up" printing, where two, four, or more pages are printed on each sheet of paper. If your …
For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
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…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

751 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