Resources | developer.brewmp.com Resources | developer.brewmp.com

Developer

resources

Example: Using the IBacklight interface in an applet

This example shows how an applet can enable and disable the backlight using a check box widget.

static void c_backlight_app_CheckCallback(IBacklight* pibl, ModelEvent* pme)
{
   ... Retrieve checkbox state into bEnabled...
   if (bEnabled){
      IBACKLIGHT_Enable(pibl);
   }
   else {
      IBACKLIGHT_Disable(pibl);
   }
}

Note: A complete sample application entitled c_backlight_app.zip, which includes all the files you need to build the complete application in Microsoft Visual Studio 2005, is attached to this technology guide. The application demonstrates the complete functionality of the IBacklight interface.