Hi, Jeffery:
My goal is to have one CControlBar-derived class object which shows two objects of CListCtrl derived classes in the CMDIFrameWnd of my application. One CListCtrl object will be at the left and the other CListCtrl object will be at the right of client area of the CContrlBar object. I also like to able to move the border line between the two CListCtrl object so that I can change the viewing width of them. For exmple, if I move CListCtrl's border line to the right, the width of left CListCtrl will increase while the width of right CListCtrl will decrease. In this way, I could get similar result as that of CSplitterWnd although a CSplitterWnd object is not used.
The reason why I don't want to use CSplitterWnd is because I already have a CSplitterWnd in the CMDIFrameWnd and I don't want to show both the CSplitterWnd and the CCtontrolBar at the same time.
I guess my problem is how to put two CListCtrl objects into one CControlBar. What is the code inside of OnCreate() of CControlBar object to show two CListCtrls objects? What are the size parameters of CListCtrls?
Thanks in advance for your help.
Xiaoming