LAnnContainer::SetWnd

#include "ltwrappr.h"

virtual L_INT LAnnContainer::SetWnd(hWnd)

HWND hWnd;

/* the window handle */

Sets the window handle for the annotation object.

This function is available in the Document/Medical Toolkits.

Parameter

Description

hWnd

The window handle.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

You set this property on the root container, and all objects in the container inherit the property.

Required DLLs and Libraries

LTANN

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

See Also

Functions:

Class Members

Topics:

Annotation Functions: Global Properties

 

Implementing Annotations

Example

void TestAnnWnd(LAnnContainer L_FAR*pLAnnContainer,HWND hWnd)
{
   
/* Set the window to the current window, unless it is already current */
   
if(pLAnnContainer->GetWnd()!=hWnd)
      
pLAnnContainer->SetWnd(hWnd);
}