关于ListView显示问题
下面这段代码对ListView显示有影响?
我把这段代码注销了显示就正常了,郁闷中。。。
谢谢各位啦~~~~~~~
void __fastcall TfrmCompare::FormCreate(TObject *Sender){ this->l1 = ListView1->WindowProc; this->l2 = ListView2->WindowProc; ListView1->WindowProc = MyProcList1; ListView2->WindowProc = MyProcList2;}//---------------------------------------void __fastcall TfrmCompare::MyProcList1(TMessage &message){ l1(message); if(message.Msg == WM_VSCROLL || message.Msg == SB_VERT) { l2(message); }}//---------------------------------------void __fastcall TfrmCompare::MyProcList2(TMessage &message){ l2(message); if(message.Msg == WM_VSCROLL || message.Msg == SB_VERT) { l1(message); }}