|
DrawCell 함수에서 어떻게 해야되는지 알고 싶습니다.
FixedRow, Col는 각각 2개씩입니다. 현재 소스는 아래 보시면 됩니다. DrawCell에서 한겁니다.
strgridPartList->Canvas->Font->Color = clBlack;
strgridPartList->Canvas->Brush->Color = clLime;
unsigned oldalign = SetTextAlign(strgridPartList->Canvas->Handle, 0);
for(int i=0; i<100; i++)
{
strgridPartList->Canvas->TextRect(Rect, strgridPartList->DefaultColWidth, strgridPartList->DefaultRowHeight,strgridPartList->Cells[5][i+2]);
}
SetTextAlign(strgridPartList->Canvas->Handle, oldalign);
실행 시키면 Fixed 0열 0행만 하나만 색상이 바뀌네요. 그리고 cell에 있는 text까지 지워버리더라고요
아직 초보라서 답변 부탁드리겠습니다. 감사합니다
|