Finding Image1's hdc

VB_Lover
07-11-2003, 02:34 AM
Need Guru HELP!!! How do i get the hdc of an Image1 control? How do i get its offset from the form's hdc that its on?? A little code would be helpful. Please no short blurbs about "try using a picture control instead".

Thanks

Squirm
07-11-2003, 02:40 AM
Simply put, the image control does not have a DC, and therefore no hDC either.
It is not a window, its contents are drawn directly onto the DC of its parent.

ImmortalWarrior
07-11-2003, 04:59 AM
If you want to use it for Bit Block Transfer, Perform the operation on the form/object underneath but use the Image control's Left/Top Values for X/Y placement, and the images Height/Width for the size of the section to transfer..

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum