Hi,
CVI does provide both a help and a variety of sample programs which are highly recommended 
In your particular case, the dimmed attribute is of type integer, so you should use
int is_dimmed = 0;
GetCtrlAttribute ( panel, PANEL_text_in_situ, ATTR_DIMMED, &is_dimmed );