Object Model Reference : Classes : A : AppWindow : Properties : AppWindow.Handle |
Property Handle As Long
Member of AppWindow
The Handle property returns the window handle value of the main application window. The value can be used with calls to Windows API functions that require handles.
The Handle property returns a read-only value.
The following VBA example shows a message using the Windows API function, MessageBox, and specifying the CorelDRAW window as the parent to the message box.
Private Declare Function MessageBox Lib "user32" Alias "MessageBoxA" _ |
(hwnd As Long, lpText As String, _ |
lpCaption As String, wType As Long) As Long |
Sub Test() |
MessageBox AppWindow.Handle, "Some Message", "Some Caption", 64 |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.