Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Long) As Long
Const WM_COMMAND = &H111
Sub KillDraw()
Dim hwCorel As Long
hwCorel = CorelDRAW.AppWindow.Handle
Call SendMessage(hwCorel, WM_COMMAND, 32773, ByVal 0&)
End Sub