Available in LEADTOOLS Imaging Pro, Vector, Document, and Medical Imaging toolkits. |
#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))
HWND hWndParent; |
/* handle to the parent window */ |
L_INT nID; |
/* controls id */ |
DWORD dwStyle; |
/* the controls 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 cbBackground; |
/* background color */ |
Constructs and initializes the member variables of an LImageListControl object.
Parameter |
Description |
hWndParent |
Handle of the parent window. |
nID |
The controls 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 compilers 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. |
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
LTDIS For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application. |
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; }