06-16-2005 01:41 PM
06-27-2005 02:43 PM
/* If the depth is > 8 bits, there is no color table for the
* image, so we dimm the controls. This program is not very useful
* in such cases. To edit the colors your display must be set to
* 8-bit depth or less.
*/
if(colorTableSize == 0) {
SetCtrlAttribute (panelHandle, PANEL_COLORTABLEINDEX, ATTR_DIMMED, 1);
SetCtrlAttribute (panelHandle, PANEL_COLORTABLEENTRY, ATTR_DIMMED, 1);
SetCtrlAttribute (panelHandle, PANEL_UPDATECOLORTABLE, ATTR_DIMMED, 1);
SetCtrlAttribute (panelHandle, PANEL_TEXTMSG_2, ATTR_DIMMED, 1);
return;
}