I inherited a new class from stringgrid, used to draw the custom format form; To rewrite drawcell, main is to draw the rectangle and display text,
Began to display is normal, but click on the scroll bar or scroll up and down (this time should be triggered by redrawing?) , there will be the color of the rectangle and fill will be disorder, don't know where this is not to deal with,
Excuse me, is there a way to trigger all of the cells in the stringgrid all drawing side?
thank you
CodePudding user response:
Click on the scroll bar up and down or rolling the mouse with an APi function in the scroll ScrollWindowExCodePudding user response:
If forced drawing will be flashingCodePudding user response:
QQ: 1054358758CodePudding user response:
Was studied, the problem is should, I am also do the merge cells column, click on the vertical scroll bar, seem to refresh based on line, some column also did not show, so the shadow, don't know is there any way to solve this? thank you