• 如何隐藏TreeView,ListView等带有标准滚动条窗体的滚动条


    //  方法如下:     
    //  引用了来自CSDN上的一个解决方法。
    //  引用网址:http://topic.csdn.net/t/20060728/22/4912923.html
    //  解决方法源代码如下:
    //   TFrmVirtualListView   =   class(TForm)
    //        ListView:   TListView;
    //        procedure   ListViewData(Sender:   TObject;   Item:   TListItem);
    //        procedure   FormCreate(Sender:   TObject);
    //        procedure   FormDestroy(Sender:   TObject);
    //    private
    //        FListViewWndProc:   TWndMethod;
    //        procedure   ListViewWndProc(var   Msg:   TMessage);
    //    public
    //        FShowHoriz:   Boolean;
    //        FShowVert:   Boolean;
    //    end;
    // ......
    //
    //    procedure   TFrmVirtualListView.FormCreate(Sender:   TObject);
    //    begin
    //        ......
    //        FShowHoriz   :=   False;
    //        FShowVert   :=   False;
    //        FListViewWndProc   :=   ListView.WindowProc;
    //        ListView.WindowProc   :=   ListViewWndProc;
    //        ......
    //    end;
    //
    //    procedure   TFrmVirtualListView.ListViewWndProc(var   Msg:   TMessage);
    //    begin
    //    ShowScrollBar(ListView.Handle,   SB_HORZ,   FShowHoriz);
    //    ShowScrollBar(ListView.Handle,   SB_VERT,   FShowVert);
    //    FListViewWndProc(Msg);
    //    end;
    // ......
    //
    //

  • 相关阅读:
    李阳疯狂英语精选365句
    线程 notify,与notifyAll 的区别
    关于Logger,Tomcat 的Logger是如何工作的
    知豆 源
    关于好多继承的问题,我们应该如何去理解
    5+1+2
    wu xing
    ALBPM Time Question
    推荐书集
    “疯狂”的定义
  • 原文地址:https://www.cnblogs.com/chulia20002001/p/1902085.html
Copyright © 2020-2023  润新知