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

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


How to create a tree control in a CControlBar derived classe

Dennis W. Tan -- dennis@ny.amarex.com
Monday, November 18, 1996

Environment: VC++ 4.2-flat, Win95

I tried to create the same interface as the one in the visual c++, a =
tree-control project workspace and a mdi client.  I began by creating a =
mdi client with floating dockable control bar on the left.  Everthing =
works ok until I tried to create a tree control inside this control bar. =
 The problem is that I was not able to create a tree control in it.  I =
first create a CTreeCtrl object in my derived CControlBar class, then I =
call the function create to create the tree control.  Then I also did =
some processing to fill in the my data into the tree structure.  The =
application complies, but when I run the application I didn't see the =
creation of tree structure in the control bar. =20
	Did anyone tries to create a tree control in a control bar ? If yes, it =
would be nice to give me a hint on how to begin on this.  =20
	Another question is that, let's say I am able to create a tree control =
in a control bar, how can I trapped down the On_notify messages in the =
tree control such as the ON_NOTIFY_REFLECT(NM_RCLICK, OnRClick) ?

Any help would be greatly appreciate.

Dennis W. Tan
Software Engineer
Email: dennis@amarex.com




Dennis W. Tan -- dennis@ny.amarex.com
Monday, November 18, 1996

Environment: VC++ 4.2-flat, Win95

I tried to create the same interface as the one in the visual c++, a =
tree-control project workspace and a mdi client.  I began by creating a =
mdi client with floating dockable control bar on the left.  Everthing =
works ok until I tried to create a tree control inside this control bar. =
 The problem is that I was not able to create a tree control in it.  I =
first create a CTreeCtrl object in my derived CControlBar class, then I =
call the function create to create the tree control.  Then I also did =
some processing to fill in the my data into the tree structure.  The =
application complies, but when I run the application I didn't see the =
creation of tree structure in the control bar. =20
	Did anyone tries to create a tree control in a control bar ? If yes, it =
would be nice to give me a hint on how to begin on this.  =20
	Another question is that, let's say I am able to create a tree control =
in a control bar, how can I trapped down the On_notify messages in the =
tree control such as the ON_NOTIFY_REFLECT(NM_RCLICK, OnRClick) ?

Any help would be greatly appreciate.

Dennis W. Tan
Software Engineer
Email: dennis@amarex.com





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