I am trying out various functions in Cpw. Currently working with the Visibility Event. Everything works as expected except the "Hide" and "Show" events.
I have included my example below. Nothing special, just a printf statement.
/************************************************** ******/
/* Window Visibility Event callback */
/* State Constants: 0 CPW_HIDE */
/* 1 CPW_SHOW */
/* 2 CPW_GAINEDFOCUS x */
/* 3 CPW_LOSTFOCUS x */
/* 4 CPW_ICONIC x */
/* 5 CPW_RESTORED x */
/************************************************** ******/
void visibility( pCpw cpw, uint_32 winid, uint_32 state )
{
printf("Visibility Event: State = %d\n", state ); /* JP - Print Vars */
return;
}



