Click here to Skip to main content
15,887,135 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to load bitmap on picture ctrl Pin
Nibu babu thomas1-Mar-06 23:05
Nibu babu thomas1-Mar-06 23:05 
GeneralRe: how to load bitmap on picture ctrl Pin
baldha rakesh1-Mar-06 23:42
baldha rakesh1-Mar-06 23:42 
GeneralRe: how to load bitmap on picture ctrl Pin
Nibu babu thomas1-Mar-06 23:45
Nibu babu thomas1-Mar-06 23:45 
GeneralRe: how to load bitmap on picture ctrl Pin
baldha rakesh2-Mar-06 0:02
baldha rakesh2-Mar-06 0:02 
GeneralRe: how to load bitmap on picture ctrl Pin
Nibu babu thomas2-Mar-06 0:04
Nibu babu thomas2-Mar-06 0:04 
GeneralRe: how to load bitmap on picture ctrl Pin
sunithakiranmaye2-Mar-06 18:54
sunithakiranmaye2-Mar-06 18:54 
AnswerRe: how to load bitmap on picture ctrl Pin
janisha1-Mar-06 22:20
janisha1-Mar-06 22:20 
AnswerRe: how to load bitmap on picture ctrl Pin
_AnsHUMAN_ 1-Mar-06 23:19
_AnsHUMAN_ 1-Mar-06 23:19 
Set the type of button as bitmap and perform the following :
(here m_bit is an object of CBitmap , m_btnStart is the variable for CBitmapButton)
m_bit1.LoadBitmap(IDB_BMPSTART);
HBITMAP hBit1 = (HBITMAP) m_bit1.GetSafeHandle();
m_btnStart.SetBitmap(hBit1);
// Use m_btnStart.SizeToContent() if you want to set the size of the button to that of the image being displayed on it
(open the resource editor and copy the .gif image to the bitmap image in the resource editor)
*******and yes on the picture control you have to set the type as bitmap and pass the image name of the bitmap in the IMAGE option of resource editor

Vision is Always important and so is your ATTITUDE.

Wishes.

Anshuman Dandekar


-- modified at 5:31 Thursday 2nd March, 2006
QuestionLaunching 3rd party application from MFC Button Pin
amanoullah1-Mar-06 22:02
amanoullah1-Mar-06 22:02 
AnswerRe: Launching 3rd party application from MFC Button Pin
Cedric Moonen1-Mar-06 22:11
Cedric Moonen1-Mar-06 22:11 
AnswerRe: Launching 3rd party application from MFC Button Pin
_AnsHUMAN_ 1-Mar-06 22:14
_AnsHUMAN_ 1-Mar-06 22:14 
AnswerRe: Launching 3rd party application from MFC Button Pin
Cool Ju1-Mar-06 22:22
Cool Ju1-Mar-06 22:22 
QuestionCalling Crystal Reports 11 from VC++ Pin
xdeveloper_del1-Mar-06 21:42
xdeveloper_del1-Mar-06 21:42 
Questionserial port sniffer Pin
szilics1-Mar-06 20:37
szilics1-Mar-06 20:37 
AnswerRe: serial port sniffer Pin
Cedric Moonen1-Mar-06 20:48
Cedric Moonen1-Mar-06 20:48 
GeneralRe: serial port sniffer Pin
szilics1-Mar-06 21:34
szilics1-Mar-06 21:34 
GeneralRe: serial port sniffer Pin
James Brown1-Mar-06 22:29
James Brown1-Mar-06 22:29 
GeneralRe: serial port sniffer Pin
szilics1-Mar-06 23:22
szilics1-Mar-06 23:22 
AnswerRe: serial port sniffer Pin
Rick York1-Mar-06 21:32
mveRick York1-Mar-06 21:32 
QuestionMultithreading Pin
Waldermort1-Mar-06 20:34
Waldermort1-Mar-06 20:34 
AnswerRe: Multithreading Pin
Naveen1-Mar-06 20:46
Naveen1-Mar-06 20:46 
GeneralRe: Multithreading Pin
Stephen Hewitt1-Mar-06 22:23
Stephen Hewitt1-Mar-06 22:23 
GeneralRe: Multithreading Pin
Naveen1-Mar-06 23:28
Naveen1-Mar-06 23:28 
AnswerRe: Multithreading Pin
Cedric Moonen1-Mar-06 21:00
Cedric Moonen1-Mar-06 21:00 
GeneralRe: Multithreading Pin
Waldermort1-Mar-06 21:54
Waldermort1-Mar-06 21:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.