Loading a DIB into a picturebox
Can anyone help me - having great difficulty with this. I have a DIB handle (or can have an HBITMAP handle if desired) passed to me from another application, and want to display this in a picturebox on my form.
I've tried using the DrawDIB functions in gdi32.dll, but DrawDIBDraw either (a) crashes the app, or (b) draws nothing at all.
Any advice welcome. As I said, I can have either a handle to a DIB, or a handle to an HBITMAP.