C++ Question Adding a Tree Control in a Dialog

fred18

Addon Developer
Addon Developer
Donator
Joined
Feb 2, 2012
Messages
1,667
Reaction score
115
Points
78
Hi all,

I'm trying to build quite a large dialog, and since it will be too large to display all the entries I need to add a Control to it that can be tabbed or preferably a tree control.

I read and studied Dr Martin's example of a tabbed control dialog but I am no good at all there... I need to start from a sort of an "hello world" example...

The rest of the dialog will be absolutely easy to build, I just need to be able to switch among different pages since an all in one dialog will be impossible to handle.

Is anyone willing to "tutor" me a bit on this?

Thanks in advance! :tiphat:

Fred
 
Is anyone willing to "tutor" me a bit on this?

Not sure if there is any way to really "tutor" you there, since Orbiter requires some pretty low-level windows programming there.

What you need is essentially defining the control in the resource file and then fill it with data during the event loop, when the correct event arrives.

Filling the control with data is again done by sending messages to the controls, but now, that is where my knowledge of the theory ends today. I would need to try it out to even find out, which kind of window class you need.

---------- Post added at 05:05 PM ---------- Previous post was at 05:04 PM ----------

See here for reference about how to communicate with the control:

https://msdn.microsoft.com/en-us/library/windows/desktop/bb759988(v=vs.85).aspx
 
I spent like two hours to understand why I couldn't get the proper messages etc to work...
Code:
#include Commctrl.h

was missing...

:facepalm:

thanks, I got it from the page you pointed me to!
 
Back
Top