L_DispContainerGetActionCount
#include "ltivw.h"
L_INT EXT_FUNCTION L_DispContainerGetActionCount(hCon, pnCount, uFlags)
|
HDISPCONTAINER hCon; |
/* handle to the container */ |
|
/* pointer to the variable to be updated */ | |
|
L_UINT uFlags; |
/* reserved for future use */ |
Gets the number of actions associated with the container. This function is available only in the Medical Imaging Suite toolkits.
|
Parameter |
Description |
|
hCon |
Handle to the container. |
|
puCount |
Pointer to a variable to be updated with number of actions associated with the container. |
|
uFlags |
Reserved for future use. Must be zero. |
Returns
|
SUCCESS |
The function was successful. |
|
< 1 |
An error occurred. Refer to Return Codes. |
Comments
Call L_DispContainerAddAction to add an action to a container and call L_DispContainerRemoveAction to remove an action from the container.
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
Example
// Remove the actions and remove all the cells and the bitmap lists attached.
L_VOID ResetContainer(HDISPCONTAINER hCon)
{
L_UINT uCount;
// Check if there is any action added to the container.
L_DispContainerGetActionCount(hCon, &uCount, 0);
// Remove all the actions.
if (uCount != 0)
L_DispContainerRemoveAction (hCon, -1, 0);
// Check if there is any cell inserted to the container.
uCount = L_DispContainerGetCellCount (hCon, 0);
// Remove all the cells, along with the attached images.
if (uCount != 0)
L_DispContainerRemoveCell (hCon, -1, TRUE, 0);
}