CTreeView Form
-
:sigh:I Creat an SDI Application with CTreeView as a main view, How can i access and manpulate the CTreeView from a CDialog class in the same application ? M. Gamal
-
:sigh:I Creat an SDI Application with CTreeView as a main view, How can i access and manpulate the CTreeView from a CDialog class in the same application ? M. Gamal
One solution : - Add a pointer to your main view in the App class - Then in the CTreeView constructor you initialize the pointer with the local this pointer. You can access the pointer member variable using "theApp" object. It is the current instance of your application and it is availabe since you include your app header (for instance "myApp.h") -You can access that pointer member everywhere provided that you include the header("myApp.h")
-
:sigh:I Creat an SDI Application with CTreeView as a main view, How can i access and manpulate the CTreeView from a CDialog class in the same application ? M. Gamal
may be you need to pass the handle of the tree view window to the dialog box you create, either by sending a message or a member function call. In your dialog use the handle of the tree view to get a pointer to the tree view, and access it freely good luck, Mohammad Gdeisat And ever has it been that love knows not its own depth until the hour of separation