LImageViewer::GetProperties
#include "ltwrappr.h"
L_INT LImageViewer::GetProperties (pDispContainerProp, uFlags);
pDISPCONTAINERPROPERTIES pDispContainerProp; |
/* pointer to a container options structure */ |
L_UINT uFlags; |
/* reserved for future use */ |
Gets the current properties of the container. This function is available only in the Medical Imaging Suite toolkits.
Parameter |
Description |
pDispContainerProp |
Pointer to a DISPCONTAINERPROPERTIES options structure to be updated with the current properties used to control the behavior of the container. |
uFlags |
Reserved for future use. Must be zero. |
Returns
SUCCESS |
The function was successful. |
< 1 |
An error occurred. To get extended error information, call GetLastError, and refer to Return Codes. |
Comments
Before calling LImageViewer::GetProperties,
Declare a variable of type DISPCONTAINERPROPERTIES.
Set DISPCONTAINERPROPERTIES.uStructSize to sizeof(DISPCONTAINERPROPERTIES)
Set DISPCONTAINERPROPERTIES.uMask to indicate the properties to update with current values
Pass a pointer to the DISPCONTAINERPROPERTIES structure to LImageViewer::GetProperties as the pDispContainerProp parameter.
To set new container properties, call LImageViewer::SetProperties.
For more information on the available properties that can be used to control the behavior of the container, refer to the DISPCONTAINERPROPERTIES 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: |
LImageViewer::Create, LImageViewer::Destroy, LImageViewer::SetProperties, LImageViewer::GetWindowHandle, Class Members |
Topics: |
|
|
Window Control/Image Viewer Functions: Using the Image Viewer |
Example
// This function will give all the cells in the container the same size by resting the position of the cells' splitters, which might have been moved by the user.
void GetPropertiesExample(LImageViewer& ImageViewer)
{
DISPCONTAINERPROPERTIES DispContainerProp;
DispContainerProp.uStructSize = sizeof(DISPCONTAINERPROPERTIES);
DispContainerProp.uMask = DCPF_NUMCOLS | DCPF_NUMROWS;
// Call this function in order to retrieve the rows and columns count.
ImageViewer.GetProperties(&DispContainerProp, 0);
ImageViewer.SetProperties(&DispContainerProp, 0);
}