OCX with CTreeCtrl and CListCtrl
Thomas Stryger Olsen -- stryger.himsa@inet.uni-c.dk Wednesday, October 02, 1996 Environment: VC++ 4.x, Win 95,NT 4.0 I want to develop an OCX that contains a CTreeCtrl and a CListCtrl = somewhat like in the explorer. >From an earlier project I am familiar with development of an OCX that = subclasses f.ex. a treectrl. Likewise I have studied the source for Bob = Wilkins controls (as mentioned in the OCX FAQ) that uses another OCX. My problem is that it does not seem possible to create a dialog template = (of type IDD_FORMVIEW) that contains the tree control and list control, = and somehow attach this template to my control as a view. Has someone experience in creating an OCX somewhat like this ? Thanks - Thomas S.
S. Iris Chu -- iris-chu@isomedia.com Thursday, October 03, 1996 You cannot subcalss the control directly. But you can do this:CTreeCtrl m_tree; CListCtrl m_list; YourCtrl::OnCreate(....) m_tree.create (....) m_list.create (....) ---------- From: Thomas Stryger Olsen To: 'MFC List' Subject: OCX with CTreeCtrl and CListCtrl Date: Wednesday, October 02, 1996 01:49 AM Environment: VC++ 4.x, Win 95,NT 4.0 I want to develop an OCX that contains a CTreeCtrl and a CListCtrl somewhat like in the explorer. >From an earlier project I am familiar with development of an OCX that subclasses f.ex. a treectrl. Likewise I have studied the source for Bob Wilkins controls (as mentioned in the OCX FAQ) that uses another OCX. My problem is that it does not seem possible to create a dialog template (of type IDD_FORMVIEW) that contains the tree control and list control, and somehow attach this template to my control as a view. Has someone experience in creating an OCX somewhat like this ? Thanks - Thomas S. ----------
| Вернуться в корень Архива |