L_UseImageListControl

#include "ltlst.h"

L_VOID EXT_FUNCTION L_UseImageListControl(L_VOID)

Dynamically loads the appropriate DLL to let your program use the LTIMGLISTCLASS registered class.

Returns

None.

Comments

Because the LTIMGLISTCLASS registered class uses messages rather than function calls, the required dynamic link library (LTLST14n.dll) is not loaded automatically. Therefore, the toolkit provides this dummy function in the DLL, which you can call before using the registered class messages.

Required DLLs and Libraries

LTLST

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

Platforms

Windows 95 / 98 / Me, Windows 2000 / XP, Windows CE.

See Also

Functions:

L_CreateImageListControl

Topics:

ImageList Control Messages, ImageList Control Command Notifications, Using the ImageList Control

Example

HWND hCtl;
HINSTANCE hInst;

L_VOID CreateCtl(HWND hWnd)
{
   /* create the image list control */
   L_UseImageListControl(); /* make sure dll is loaded */
   hCtl = CreateWindow(LTIMGLISTCLASS,
                       TEXT(""),
                       WS_CHILD | WS_BORDER,
                       10,
                       10,
                       250,
                       250,
                       hWnd,
                       NULL,
                       hInst,
                       NULL);
   ShowWindow (hCtl, SW_SHOW);
}