Solved

showing a bitmap

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

776 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