L_DispContainerSetIconProperties

Summary

Changes the properties of the specific icon in the title bar.

Syntax

#include "ltivw.h"

L_LTIVW_API L_INT L_DispContainerSetIconProperties(hCellWnd, nIconIndex, pDispContainerIconProps, uFlags)

Parameters

L_HWND hCellWnd

A handle to the window that represents the cell on which the function's effect will be applied.

L_INT nIconIndex

A zero-based index of the icon in the title bar to change its properties. Pass -1 to set the properties to all icons.

pDISPCONTAINERTITLEBARICONPROPS pDispContainerIconProps

Pointer to the DISPCONTAINERTITLEBARICONPROPS structure that contains the icon properties to change.

L_UINT uFlags

Reserved for future use. Pass 0.

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Comments

Before calling L_DispContainerSetIconProperties the user should:

  1. Declare a variable of type DISPCONTAINERTITLEBARICONPROPS.
  2. Set the DISPCONTAINERTITLEBARICONPROPS.uStructSize member to the value of sizeof(DISPCONTAINERTITLEBARICONPROPS)
  3. Set the DISPCONTAINERTITLEBARICONPROPS.uMask member value to indicate what the members will be changed with the new values.
  4. Pass a pointer to the DISPCONTAINERTITLEBARPROPS structure to L_DispContainerSetIconProperties as the pDispContainerIconProps parameter.

To retrieve the properties of the specific icon in the title bar, call the L_DispContainerGetIconProperties function.

For more information on the available title bar icon properties, refer to the DISPCONTAINERTITLEBARICONPROPS structure.

Required DLLs and Libraries

See Also

Functions

Topics

Example

For an example, refer to L_DispContainerShowTitlebar.

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

LEADTOOLS Medical Image Viewer C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.