L_DispContainerSetRulerAttributes

#include "ltivw.h"

L_LTIVW_API L_INT L_DispContainerSetRulerAttributes(hCellWnd, pAttributes);

Gets the current attributes of the cell rulers.

Parameters

L_HWND hCellWnd

A handle to the window that represent the cell which the function effect will be implemented on.

LPRULERATTRIBS pAttributes

Pointer to the RULERATTRIBS structure that contains the cell properties to set.

Returns

Value Meaning
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

See Also

Functions

Topics

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 20.0.2020.4.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Medical Image Viewer C API Help