Fct_Change_Child

 

This function change the currently selected child of a class.

 

 

Syntax

 

void  Fct_Change_Child(

          SliceO_Window *window,

          SliceO_Class *elem,

          SliceO_Class *old=NULL

) ;

 

 

Parameters

 

window

Pointer to the currently selected window.

 

elem

Pointer to the child that will become the currently selected child.

 

old

Optional pointer to the currently selected child.

 

 

Return value

 

This function does not return a value.

 

 

Remarks

 

 

Requirements

 

Header:

          sliceO_include.hpp

 

 

Library:

          sliceO_Structures.lib

 

 

Example

 

From the loop control

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

void   CALLBACK  TimerProc( HWND hwnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime  )

{

          // --- is it time to change the current value ? ---

          SliceO_Class *pt = timer_class[idEvent] ;

          SliceO_Window *window = timer_window[idEvent] ;

 

          // --- go to the next frame --

          int id_old = pt->Child_Get_Cur( window ) ;

          int id_new = (id_old+1) % pt->Child_Get_Nb() ;

 

          Fct_Change_Child( window, pt->Child_Get_Pt( id_new ), pt->Child_Get_Pt( id_old ) ) ;

}

 

See also