Solved

showing a bitmap

Posted on 2003-11-17
3
214 Views
Last Modified: 2013-11-20
hye,

i'm trying to change the bitmap in a CStatic but ut doesn't seem to work,
i'm having trouble with that first parameter

m_picture.SetBitmap( ::LoadBitmap(AfxGetResourceHandle(), MAKEINTRESOURCE(IDB_PIJLKE)) );

doesn't work, and to get a handle to the bitmap i tried

HANDLE handle =LoadImage(AfxGetResourceHandle() , _T("IDB_PIJL"), IMAGE_BITMAP ,0, 0,LR_DEFAULTCOLOR);

but this also doesn't work, can someone help me plz?

thx,
Maes

0
Comment
Question by:Maesy
3 Comments
 
LVL 48

Accepted Solution

by:
AlexFM earned 50 total points
ID: 9769070
HBITMAP h = (HBITMAP) LoadImage(AfxGetInstanceHandle(), MAKEINTRESOURCE(IDB_PIJLKE), IMAGE_BITMAP ,0, 0,LR_DEFAULTCOLOR);
0
 

Expert Comment

by:lorenzociripenso
ID: 9769845
sorry, i don't understand what you want to do. Maybe you should explain a little more to those not gurus of us. thats how we could help...

lorenz
0
 

Author Comment

by:Maesy
ID: 9769882
u made my day :-)

thx
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

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

10 Experts available now in Live!

Get 1:1 Help Now