AccusoftNotateXpress13 ActiveX DLL > NotateXpress Object : SetClientWindow Method |
Visual Basic |
---|
Public Sub SetClientWindow( _ ByVal hWnd As Long _ ) |
Setting the hWnd parameter to a valid window handle causes NotateXpress to query the window handle to determine if it is able to annotate it, and if it is, to establish an annotation connection with that control.
Setting the HWND parameter to a NULL value resets NotateXpress to a disconnected state and all existing layers are deleted.
To prevent potential memory and/or resource leaks, if NotateXpress is connected to an ImagXpress client it is important that you call this method with a NULL handle when you exit your program.
'ConnectNotateXpresstoImagXpress NotateXpress1.SetClientWindowImagXpress1.hwnd 'Whenyouaredone,disconnectNotateXpressandImagXpress NotateXpress1.SetClientWindow0