Print Page | Close Window

CXTPTreeViewBase not visible in Class View

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=24302
Printed Date: 23 November 2024 at 1:24pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPTreeViewBase not visible in Class View
Posted By: Florian Bous
Subject: CXTPTreeViewBase not visible in Class View
Date Posted: 30 June 2022 at 6:54am
I use a class derived from CXTPTreeView in Visual C++ and have a problem, because I can't add message handlers like I am used to with the Class Wizard. The Class Wizard claims that my class is not derived from CCmdTarget. But actually it is derived from CCmdTarget, indirectly through CXTPTreeView and CXTPTreeViewBase. On closer look the problem is also visible in the Class View: CXTPTreeView is shown without any Base Types.

The obvious suspect is a multi-line macro that expands into the class declaration for CXTPTreeViewBase in XTPTreeViewCtrl.h:

DECLARE_TREE_BASE(CXTPTreeViewBase, CTreeView, CXTPTreeBase)

Unhappy

Does anybody know a way to solve or work around this problem, so that I could use the Visual Studio Class View and Class Wizard with my tree view? 



Replies:
Posted By: adamg
Date Posted: 08 April 2023 at 10:55am
yeah, i have the same problem (i am newbie in MFC wrorld) and the class wizard, or control events in property grid was a great help, but switching to CJ controls make the work much harder.

wondering how other poeple work with CJ - everything done manually? XAML is not an option for everythig...



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net