LImageListControl::LImageListControl

Summary

Constructs and initializes the member variables of an LImageListControl object.

Syntax

#include "ltwrappr.h"

LImageListControl::LImageListControl()

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

Parameters

HWND hWndParent

Handle of the parent window.

L_INT nID

The controls ID.

DWORD dwStyle

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

L_INT x

The starting x position.

L_INT y

The starting y position.

L_INT nCx

The width of the bitmap window.

L_INT nCy

The height of the bitmap window.

COLORREF cbBackground

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, cbBackground) 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

Platforms

Win32, x64.

See Also

Functions

Topics

Example

// This is an example for LImageListControl::LImageListControl(): 
 
L_INT LImageListControl__LImageListControlExample_1() 
{ 
   // this will call the default constructor and destructor when it is out of scope 
 
   LImageListControl MyLImageListControl; 
 
   //... 
 
   return SUCCESS; 
} 
 
// This is an example for LImageListControl::LImageListControl(hWndParent, nID, dwStyle, x, y, nCX, nCY, cbBackground): 
 
L_INT LImageListControl__LImageListControlExample_2(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); 
 
   //... 
 
   return SUCCESS; 
} 
Help Version 22.0.2023.2.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C++ Class Library Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.