|
궁금이 님이 쓰신 글 :
: 이학균 님이 쓰신 글 :
: : 안녕하세요..
: :
: : StringGrid를 써서 특정 Row에 특정 색을 씌울려고 하는데, 어떻게 해야 하나요..
: :
: : 아무리 찾아봐도 방법이 없군요..
: :
: : 고수님들의 답변 부탁드립니다.
: :
참고하세요.
void __fastcall TForm1::StringGrid1DrawCell(TObject *Sender, int ACol,
int ARow, TRect &Rect, TGridDrawState State)
{
int RectWidth,StartHear;
String ShowMe;
//3번째 행만 색깔을 파란색으로
if(ARow == 3)
{
StringGride1->Canvas->Brush->Color = clBlue;
StringGrid1->Canvas->TextRect(Rect,Rect.Left+2,Rect.Top+2,StringGrid1->Cells[Acol][Arow]);
}
|