#include "l_bitmap.h"

L_LTDLG_API L_INT L_DlgInit(uFlags)

L_UINT32 uFlags;

dialog data initialization flags

Initializes the internal data for the LEADTOOLS Common Dialogs.

Parameter Description
uFlags Data initialization flags. Determines the dialog data to be initialized.
  Value Meaning
  0 [0x00000000] initializes only the essential data, required for all dialogs.
  DLG_INIT_COLOR [0x00000001] initializes LEAD color data for the dialogs and enables the use of color models such as RGB, HSB, Lab, etc. Setting this flag lets LEADTOOLS display the LEAD Color dialog when the color picker button is pressed in any dialog that includes a color picker button.



The function was successful.

< 1

An error occurred. Refer to Return Codes.


You must call this function once and only once before using any LEADTOOLS Common Dialogs. Additionally, you must call L_DlgFree when you are finished using LEADTOOLS Common Dialogs in your application.

If you pass DLG_INIT_COLOR you must have ltclr15u.dll, ltdlgres15u.dll, and ltdlgclr14.dll being installed on your system.

Do not call this function in the "DllMain" function or its equivalent.

Required DLLs and Libraries


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




Dialogs: Maintenance and General Use


Using Imaging Common Dialog


For an example, refer to L_DlgRotate or L_DlgBrightness.

Help Version 20.0.2019.3.11
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2019 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Common Dialog C API Help