G
George Hester
So I trie it like this:
In my UserForm:
Private Sub CommandButton1_Click()
'............
hOldFont = SelectObject(Me.TheDeviceContext, hFont)
'............
End Sub
Public Function TheHandle() As Long
TheHandle = FindWindow(vbNullString, Me.Caption)
End Function
Public Function TheDeviceContext() As Long
TheDeviceContext = GetWindowDC(Me.TheHandle)
End Function
Here is the rest:
http://support.microsoft.com/default.aspx?scid=kb;en-us;158870&Product=vbb
In Visual Basic 6 SP5 this does exacrly what it is supposed to do. But in VBA in Outlook 2002 SP2 I get no errors but I don't get the Kanji characters. I believe it is because I did not make the DeviceContext handle correctly. Any ideas. I'd prefer to write the Kanji characters to a message box and I suppose once I get this to work for the window UserForm I should be able to get it to work for a message box as well. Thanks.
In my UserForm:
Private Sub CommandButton1_Click()
'............
hOldFont = SelectObject(Me.TheDeviceContext, hFont)
'............
End Sub
Public Function TheHandle() As Long
TheHandle = FindWindow(vbNullString, Me.Caption)
End Function
Public Function TheDeviceContext() As Long
TheDeviceContext = GetWindowDC(Me.TheHandle)
End Function
Here is the rest:
http://support.microsoft.com/default.aspx?scid=kb;en-us;158870&Product=vbb
In Visual Basic 6 SP5 this does exacrly what it is supposed to do. But in VBA in Outlook 2002 SP2 I get no errors but I don't get the Kanji characters. I believe it is because I did not make the DeviceContext handle correctly. Any ideas. I'd prefer to write the Kanji characters to a message box and I suppose once I get this to work for the window UserForm I should be able to get it to work for a message box as well. Thanks.