Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.10.23
LEADTOOLS Common Dialog C DLL Help

L_DlgGetStringLen

Show in webframe

#include "l_bitmap.h"

L_LTDLG_API L_INT L_DlgGetStringLen(uString, puLen)

L_UINT32 uString;

/* index of a string */

L_UINT * puLen;

/* pointer to the variable to be updated */

Gets the length of the string at the specified index.

Parameter

Description

uString

Index into a list of strings. For a list of the strings, refer to Dialog Strings.

puLen

Pointer to an unsigned integer variable that this function will update with the length of the item's current character string.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

Once you know the length of the string at the specified index, retrieve the text by calling L_DlgGetString.

Use L_DlgSetString to modify the text.

Before calling this function, you must declare an unsigned integer variable. Then, pass the address of the variable in the puLen parameter. This function will update the variable with the length of the automation item's character string.

Required DLLs and Libraries

LTDLGKRN
LTKRN

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:

L_DlgGetString, L_DlgSetString, L_DlgSetFont

Topics:

Dialogs: Maintenance and General Use

 

Using Imaging Common Dialog

Example

For an example, refer to L_DlgSetFont.

Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.