Click here to Skip to main content
15,891,316 members
Articles / Desktop Programming / MFC

CRHTree - An Owner-drawn CTreeCtrl that has Open/Close and Checkboxes on the Right

Rate me:
Please Sign up or sign in to vote.
4.76/5 (10 votes)
22 Aug 2007CPOL8 min read 83.6K   4.2K   55  
An owner-drawn CTreeCtrl that has checkboxes and open/close controls aligned vertically on the right hand edge of the tree for easy viewing regardless of the horizontal scroll position.
//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by TreeDemo.rc
//
#define IDD_TREEDEMO_DIALOG             102
#define IDR_MAINFRAME                   128
#define IDB_BITMAP1                     129
#define IDR_COLLAPSE                    131
#define IDR_COLLAPSEHOT                 132
#define IDR_EXPAND                      133
#define IDR_PNG1                        134
#define IDR_EXPANDHOT                   134
#define IDC_TREE1                       1000

// Next default values for new objects
// 
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE        135
#define _APS_NEXT_COMMAND_VALUE         32771
#define _APS_NEXT_CONTROL_VALUE         1001
#define _APS_NEXT_SYMED_VALUE           101
#endif
#endif

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

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


Written By
Software Developer (Senior)
United Kingdom United Kingdom
Started programming on a Commodore Vic 20(!), and later entered employment programming for the Mac back in the days of System 6. Soon the pull of the Dark Side became too strong and I switched to Windows (Win 3.1) and have been coding for Windows ever since.

I'm now lead programmer for a small software house in Glasgow, Scotland. Our main products include PTFB Pro, ColorCache, and LogMeister.

Comments and Discussions