L_DispContainerSetRulerAttributes

#include "ltivw.h"

L_LTIVW_API L_INT L_DispContainerSetRulerAttributes(hCellWnd, pAttributes);

L_HWND hCellWnd;

handle to the cell window

LPRULERATTRIBS pAttributes;

pointer to a ruler attribute structure

Gets the current attributes of the cell rulers.

Parameter

Description

hCellWnd A handle to the window that represent the cell which the function effect will be implemented on.
pAttributes Pointer to the RULERATTRIBS structure that contains the cell properties to set.

Returns

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

Comments

Before calling L_DispContainerSetRulerAttributes apply the following:

To get the current properties set for a cell, call L_DispContainerGetRulerAttributes.

For more information on the actual properties that can be set, refer to the RULERATTRIBS structure.

Required DLLs and Libraries

LTIVW
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_DispContainerGetRulerAttributes, L_DispContainerCreate, L_DispContainerRemoveCell, L_DispContainerInsertCell, L_DispContainerGetCellCount, L_DispContainerGetWindowHandle, L_DispContainerSetCellBitmapList, L_DispContainerSetCellTag, L_DispContainerSetCellProperties, L_DispContainerGetCellPosition, L_DispContainerRepositionCell, L_DispContainerGetCellBitmapList, L_DispContainerGetCellBounds, L_DispContainerFreezeCell, L_DispContainerSetBounds, L_DispContainerSelectCell, L_DispContainerIsCellSelected, L_DispContainerIsCellFrozen
Topics: Image Viewer Cells
Image Viewer Functions: Image Viewer Cells

Example

This function changes the look of the cell ruler.

L_INT L_DispContainerSetRulerAttributeExample(HWND hCellWnd) 
{ 
   RULERATTRIBS RulerAttributes = {0}; 
   RulerAttributes.uFlags = RULERATTRIBS_ALL; 
   RulerAttributes.uStructSize = sizeof(RULERATTRIBS); 
   L_INT nRet = L_DispContainerGetRulerAttributes(hCellWnd, &RulerAttributes); 
   RulerAttributes.bShowMeasurement = TRUE; 
   nRet = L_DispContainerSetRulerAttributes(hCellWnd, &RulerAttributes); 
   return nRet; 
} 

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS Medical Image Viewer C API Help