LAnnotationWindow::LAnnotationWindow

#include "ltwrappr.h"

L_VOID LAnnotationWindow::LAnnotationWindow(L_VOID)

L_VOID LAnnotationWindow::LAnnotationWindow(hWndParent, nID=0, dwStyle=WS_VISIBLE|L_BS_CENTER|L_BS_PROCESSKEYBOARD, x=0, y=0, nCx=200, nCy=200)

HWND hWndParent;

/* handle to the parent window */

L_INT nID;

/* the control's id */

DWORD dwStyle;

/* the control's style */

L_INT x;

/* x position for the bitmap window */

L_INT y;

/* y position for the bitmap window */

L_INT nCx;

/* width of the annotation window */

L_INT nCy;

/* height of the annotation window */

Constructs and initializes the member variables of the LAnnotationWindow object. This function is available in the Document/Medical Toolkits.

Parameter

Description

hWndParent

Handle to the parent window.

nID

The control's id.

dwStyle

The control's style. Apply any combination of window styles and LEAD window styles. For more information on Windows styles, refer to your compiler’s help file. For more information on LEAD window styles, refer to Bitmap Window LEAD specific styles.

x

X coordinate of the origin of the annotation window.

y

Y coordinate of the origin of the annotation window.

nCx

The width of the annotation window.

nCy

The height of the annotation window.

Returns

None

Comments

LAnnotationWindow::LAnnotationWindow(L_VOID) is the default constructor for this class.

LAnnotationWindow::LAnnotationWindow(hWndParent, nID, dwStyle, x, y, nCx, nCy) creates the window for the class object using the specified parameters and initializes the annotation automation engine.

Required DLLs and Libraries

LTANN
LTDIS
LTDLG
LTEFX
LTFIL
LTIMG
LTISI
LTSCR
LTTWN

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:

LAnnotationWindow::~LAnnotationWindow, Class Members

Example

This is an example for LAnnotationWindow::LAnnotationWindow():

L_VOID MyFunc()
{
    // this will call the default constructor and destructor when it is out of scope
    LAnnotationWindow LeadBitmapAnnWindow;

    //…
}

This is an example for LAnnotationWindow::LAnnotationWindow(hWndParent, nID, dwStyle, x, y, nCx, nCy)

L_VOID MyFunc(HWND hParentWnd)
{
   // this will call the constructor and will initialize the bitmap window with the specified parameters.

  LAnnotationWindow MyLAnnotationWindow(hParentWnd, 15);

   //…
   //…
}