Solved

showing a bitmap

Posted on 2003-11-17
3
259 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
[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
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses

623 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