Ctrl_Close

 

The "Ctrl_Cose()" function is called when sliceOmatic no longuer need your interface window.

 

 

Syntax

 

extern "C" __declspec(dllexportint  Ctrl_Close(

          void

)

 

 

Parameters

 

This function does not have a parameter.

 

 

Return value

 

The function returns "0" if an error occurred, "1" otherwise.

 

 

Remarks

 

The function will update the "Flag_Ctrl_Wnd_On" variable, for a Tool module, this only consist of setting the variable to 0.

 

 

Requirements

 

Header:

          sliceO_include.hpp

 

Library:

          sliceO_Structures.lib

 

 

Example

 

...

 

// ----------------------------------------------------------------------------

//

//          Function:          Ctrl_Close

//

//          Parameters:          (void)

//          Returns:          (int)                    0 if error

//

//          This is called each time your control is deactivate from the "Mode" menu

//

// ----------------------------------------------------------------------------

extern "C" __declspec(dllexport) int          Ctrl_Close( void )

{

          // --- the Ctrl Window is now "OFF" ---

          Flag_Ctrl_Wnd_On = 0 ;

 

          return( 1 ) ;

}

 

...

 

See also

 

Ctrl_Open