Z ZRY Unregistered / Unconfirmed GUEST, unregistred user! 1999-11-24 #2 在OnDrawCell事件中用DrawText自己画出来(使用DT_CENTER水平居中标志)
P point Unregistered / Unconfirmed GUEST, unregistred user! 1999-11-24 #3 注意要把stringGrid.DefaultDrawing设为False
W www Unregistered / Unconfirmed GUEST, unregistred user! 1999-11-24 #4 自己画 int DrawText( HDC hDC, // handle to device context LPCTSTR lpString, // pointer to string to draw int nCount, // string length, in characters LPRECT lpRect, // pointer to structure with formatting imensions UINT uFormat // text-drawing flags );
自己画 int DrawText( HDC hDC, // handle to device context LPCTSTR lpString, // pointer to string to draw int nCount, // string length, in characters LPRECT lpRect, // pointer to structure with formatting imensions UINT uFormat // text-drawing flags );
S spear Unregistered / Unconfirmed GUEST, unregistred user! 1999-11-27 #5 dbgrid.defaultdrawing:=false; ondrawcell event: canvas.textout( rect.left+ (rect.width-canvas.textwidth(column.field.displaytext)) mod 2, rect.top+3, column.field.displaytext);
dbgrid.defaultdrawing:=false; ondrawcell event: canvas.textout( rect.left+ (rect.width-canvas.textwidth(column.field.displaytext)) mod 2, rect.top+3, column.field.displaytext);