Ctrl_Show

 

The "Ctrl_Show()" function is called when sliceOmatic need to display your interface window.

 

 

Syntax

 

extern "C" __declspec(dllexportvoid  Ctrl_Show(

          void

)

 

 

Parameters

 

This function does not have a parameter.

 

 

Return value

 

This function does not return a value.

 

 

Remarks

 

The following template provide the necessary code for:

·The function will update the "Flag_Ctrl_Visible" variable, to '1".

·The function will also insure that the interface window is enabled, visible and on top.

 

extern "C" __declspec(dllexport) void          Ctrl_Show( void )

{

          assert( Flag_Ctrl_Wnd_On ) ;

 

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

          Flag_Ctrl_Visible = 1 ;

 

          // --- make this window invisible ---

          EnableWindow( box_box.wnd, TRUE ) ;

          ShowWindow( box_box.wnd, SW_SHOW ) ;

          BringWindowToTop( box_box.wnd ) ;

}

 

 

Requirements

 

Header:

          sliceO_include.hpp

 

Library:

          sliceO_Structures.lib

 

 

Example

 

...

 

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

//

//          Function:          Ctrl_Show

//

//          Parameters:          (void)

//          Returns:          (void)

//

//          The window already exist, it is made visible

//

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

extern "C" __declspec(dllexport) void          Ctrl_Show( void )

{

          assert( Flag_Ctrl_Wnd_On ) ;

 

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

          Flag_Ctrl_Visible = 1 ;

 

          // --- make this window invisible ---

          EnableWindow( box_box.wnd, TRUE ) ;

          ShowWindow( box_box.wnd, SW_SHOW ) ;

          BringWindowToTop( box_box.wnd ) ;

}

 

...

 

See also

 

Ctrl_Hide