|
-
Feb 25th, 2003, 03:01 PM
#1
Thread Starter
Addicted Member
GetBitmapBits() **Resolved**
I need to use GetBitmapBits(), but the function requires that you pass it an HBITMAP structure as the bitmap's handle. This is a problem if you create the bitmap using load image. LoadImage returns a HANDLE structure as the bitmaps handle. How do i get around this?
thanks,
jmiller
Last edited by jmiller; Feb 25th, 2003 at 07:12 PM.
-
Feb 25th, 2003, 06:39 PM
#2
Explicitly cast it:
C++
HBITMAP hbm = reinterpret_cast<HBITMAP>(handle);
C
HBITMAP hbm = (HBITMAP)handle;
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Feb 25th, 2003, 07:12 PM
#3
Thread Starter
Addicted Member
thanks a bunch! it works great
jmiller
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|