Login | Register   
RSS Feed
Download our iPhone app
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.

Tip of the Day
Language: Visual Basic
Expertise: Beginner
Oct 1, 1996



Application Security Testing: An Integral Part of DevOps

Loading Bitmaps

I am having trouble transferring a bitmap that I loaded with the LoadBitmap call from a resource to a picturebox. How do I do that?

The LoadBitmap call returns you a hWnd to the created bitmap. You should be able to use the GetDC API call to convert that hWnd and the hWnd of the picture box to hDC (device contexts), and then you can load those into the BitBlt function. You will have to look at the help for it in the Windows 3.1 SDK help file for more information, but that should get you going on the right track. The API declaration for GetDC is:

Declare Function GetDC Lib "user" (ByVal
hWnd%) As Integer
DevX Pro
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.
Thanks for your registration, follow us on our social networks to keep up-to-date