Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Image control DC
Hi,
Does Image control have a DC? If yes, how to find it? Thanks. Mike. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Image control DC
Hi Mile510,
A control image does not have a hdc, but a userform yes. If you place the image on the userform, you can recover the hdc with: Private Declare Function GetDC Lib "user32" (ByVal hwnd As Long) As Long Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" _ (ByVal lpClassName As String, ByVal lpWindowName As String) As Long Private Sub UserForm_Initialize() Dim MehDC As Long MehDC = GetDC(FindWindow(vbNullString, Me.Caption)) End Sub MP "Mile510" a écrit dans le message de ... Hi, Does Image control have a DC? If yes, how to find it? Thanks. Mike. |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Image control DC
Mike510 wrote:
I assume that Image in VBA is the same as Picture Box in VB. Not quite. A VB picturebox is a container object. Userform controls that are containers include frame and mulipage which do have a hWnd (but is hard to find without a caption <g). Jamie. -- |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Thank you very much for your help.
Thank you all for your help.
Mike. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Image control | Excel Programming | |||
image edit control | Excel Programming | |||
Displaying a Tif image in the Image Control | Excel Programming | |||
copy shape image into image control | Excel Programming | |||
Click on Image Control disables it | Excel Programming |