john pfeiffer
  • Home
  • Categories
  • Tags
  • Archives

Win CE Display Object Action

VOID  displayobjectAction (  HWND hwnd , displayobjectptr temp , int x , int y )
{   int i = 0 ;
    int action = 0;

    action = temp -> actionlist [0] ;
    switch ( action )
    {
        case ACTIONNONE :
        break;
        case ACTIONCLEAR :
            clearRectangle ( hwnd , temp->location );
        break;
        case ACTIONCLEARDISPLAY :
            clearDisplay ( hwnd );
            showAllDisplayObjectLists ( hwnd );
        break;
        case ACTIONFILL :
            filldisplayObject ( hwnd , temp , temp->location.color );
        break;
        case ACTIONQUIT :
            emptyAllDisplayObjectLists( );
            PostQuitMessage(0);    
        break;
        case ACTIONCHANGECOLOR :
            currentForegroundColorIndex++ ;
            if( currentForegroundColorIndex == COLORMAX )
            {    currentForegroundColorIndex =0;   }
            displayobjectRectangleClear ( hwnd , allDisplayObjectLists[ STATUSAREA ] );

            displayobjectChangeColor ( allDisplayObjectLists[ STATUSAREA ] , currentForegroundColor[  currentForegroundColorIndex ] );

            showdisplayobjectWinGUI (  hwnd , allDisplayObjectLists[ STATUSAREA ] );               
        break;
        case ACTIONPREVIOUSPAGE:

        break;
        case ACTIONNEXTPAGE:

        break;
        case ACTIONENTERTEXT :

        break;
        case ACTIONSCROLLBAR  :

      /* 
    i = horizontalRectangleClick (  hwnd , allDisplayObjectLists[ STATUSAREA ]  ,   x  );


verticalRectangleClick( hwnd
*/
        break;

        default:
        break;

    } /* end   switch ( action ) */

} /* end function displayobjectAction */


VOID displayobjectListClickCheck ( HWND hwnd , displayobjectptr temp , int x , int y  )
{ 
    while ( temp != NULL) 
    {  
        if( displayobjectClickCheck (  temp , x ,  y )  == 1 )
        {
            displayobjectAction ( hwnd , temp , x , y  );
        }

        temp = temp->next;

     } /* end while */
} /* end  displayobjectListClickCheck  */

VOID detectClickAllDisplayObjectLists ( HWND hwnd , int x , int y  )
{   int i;

    for ( i = 0 ; i < ALLDISPLAYOBJECTLISTSMAX; i++ )
    {
         displayobjectListClickCheck (  hwnd ,   allDisplayObjectLists[ i ] , x ,  y  );
     }

}  /* end detectClickAllDisplayObjectLists */

  • « Win CE Display Object List
  • Win CE configure menu »

Published

Aug 1, 2010

Category

c

~156 words

Tags

  • convert-to-win32 13
  • displayobjectaction 1
  • win-ce 40