15 мая 2023 года "Исходники.РУ" отмечают своё 23-летие!
Поздравляем всех причастных и неравнодушных с этим событием!
И огромное спасибо всем, кто был и остаётся с нами все эти годы!

Главная Форум Журнал Wiki DRKB Discuz!ML Помощь проекту


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.
----------





| Вернуться в корень Архива |