LImageListControl::LImageListControl

#include "ltwrappr.h"

L_VOID LImageListControl::LImageListControl(L_VOID)

L_VOID LImageListControl::LImageListControl(hWndParent, nID, dwStyle=WS_CHILD|WS_VISIBLE|WS_BORDER, x=0, y=0, nCx=200, nCy=200, cbBackground=RGB(128,128,128))

HWND hWndParent;

/* handle to the parent window */

L_INT nID;

/* control’s id */

DWORD dwStyle;

/* the control’s style */

L_INT x;

/* x position */

L_INT y;

/* y position */

L_INT nCx;

/* width of the control window */

L_INT nCy;

/* height of the control window */

COLORREF crBackground

/* background color */

Constructs and initializes the member variables of an LImageListControl object.

Parameter

Description

hWndParent

Handle of the parent window.

nID

The control’s ID.

dwStyle

Specifies the control's style, for example WS_VISIBLE, WS_BORDER, or WS_CHILD. For more information on Windows styles, refer to your compiler’s help file.

x

The starting x position.

y

The starting y position.

nCx

The width of the bitmap window.

nCy

The height of the bitmap window.

crBackground

The background color of the control.

Returns

None

Comments

LImageListControl::LImageListControl() is the default constructor for the LImageListControl class.

LImageListControl::LImageListControl(hWndParent, nID, dwStyle, x, y, nCX, nCY, crBackground) creates the image list control using the specified options. This will fill in the m_hWnd data member with the handle to the new control window.

Required DLLs and Libraries

LTDIS
LTFIL
LTIMG

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:

LImageListControl::~LImageListControl, Class Members

Topics:

Using Color Values in LEADTOOLS

Example

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

L_VOID MyFunction()
{
   // this will call the default constructor and destructor when it is out of scope
   LImageListControl MyLImageListControl;

   //…
}

This is an example for LImageListControl::LImageListControl(hWndParent, nID, dwStyle, x, y, nCX, nCY, crBackground):

L_VOID MyFunction(HWND hParentWnd) 
{
     // this will call the constructor and will initialize the image list control with the specified parameters.
     
     /*initialize hParentWnd  with the handle of the parent window*/
     LImageListControl MyLImageListControl(hParentWnd,15,WS_VISIBLE,0,0,100,100);

     //…
}