Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 268
  • Last Modified:

showing a bitmap

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
Maesy
Asked:
Maesy
1 Solution
 
AlexFMCommented:
HBITMAP h = (HBITMAP) LoadImage(AfxGetInstanceHandle(), MAKEINTRESOURCE(IDB_PIJLKE), IMAGE_BITMAP ,0, 0,LR_DEFAULTCOLOR);
0
 
lorenzociripensoCommented:
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
 
MaesyAuthor Commented:
u made my day :-)

thx
0

Featured Post

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now