Solved

showing a bitmap

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone 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

Suggested Solutions

Title # Comments Views Activity
ODBC Connection Logging, ADO.NET 6 73
sumNumber challenge 16 148
mapAB Challlenge 35 186
how to split multiple lines delimiter : 8 134
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 …
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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 an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

710 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