Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
Does Image control have a DC? If yes, how to find it? Thanks. Mike. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
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 |