Click here to Skip to main content
15,879,239 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Good day!

In my project I have MainFrame where I put 3 floating TreeCtrl (which can move across the screen and even leave MainFrame). My employer want me to place all TreeCtrl's handlers in some CDialog(SW_HIDDEN).
How can I redirect TreeCtrl message handlers?

Thanks for your help.
Posted
Comments
Richard MacCutchan 15-Apr-12 10:17am    
My employer want me to place all TreeCtrl's handlers in some CDialog(SW_HIDDEN).
Why, what are you trying to achieve?
Diego2la 15-Apr-12 10:45am    
To tell the truth at TreeCtrl I mean CSizingControlBarG
http://www.datamekanix.com/
This is a container which can move across the screen. I put my CtreeCtrl on it.

Firstly employer want me to create some invisible CDialog where I should create my CSizingControlBarG with TreeCtrl. After I should dock CSizingControlBarG to FrameWnd. And we are expected to put all handlers to CDialog.

But now I understand that I cannot dock CSizingControlBarG to FrameWnd and I decide to create CSizingControlBarG in FrameWnd. Here I found this problem with redirecting message handlers.

What do you think about it?
Richard MacCutchan 15-Apr-12 12:10pm    
Since I have no idea what CSizingControlBarG is or does, I cannot offer much advice. I still don't quite understand what this CDialog is adding to your project. I think you need to go back to your design and look at what your are trying to achieve, rather than just accept someone saying you need to put your handlers in a dialog. Maybe you also need to talk to the people that developed this control.
Diego2la 15-Apr-12 12:54pm    
Richard, sorry that I didn't explain all the CDialog details.
The reason thanks to which I try to put handlers into CDialog is that HANDLERS has been already writen.

I'am a beginner programmer sturded at the first year of university(MEPHI UNIVERSITY in Russia). I have read a lot about programming course it is realy interesting for me. I've even took part in many programmer contests befor. And now my university teacher proposed me to add some funcional in finished program whish wroted in the company where he works. After that test, I think, he will invited me to company.

So, I'd like to say, that program has olready finished. In program there is a CDialog on FrameWnd where placed TreeCtrl. Teacher want me make this TreeCtrl floating. He advise me to find some implementation of the moving control (link above) and attach it to the project.

In order not to remodel this TreeCtrl's handler I'd like to create my CSizingControlBarG in FrameWnd. And divert the flow of messages to CDialog.

Does not depend on the outcome, I really appreciate your help, Richard.
Richard MacCutchan 15-Apr-12 13:08pm    
Sorry, but as I said I know nothing of this control so cannot offer any suggestions.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900