Click here to Skip to main content
15,902,275 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to set Shortcutkeys for Toolbar buttons? Pin
P_JAYAPRAKASH19-Oct-04 23:00
P_JAYAPRAKASH19-Oct-04 23:00 
GeneralRe: How to set Shortcutkeys for Toolbar buttons? Pin
Vikram Kashyap19-Oct-04 23:17
Vikram Kashyap19-Oct-04 23:17 
General_Crt APIs Pin
vikramlinux19-Oct-04 21:01
vikramlinux19-Oct-04 21:01 
GeneralRe: _Crt APIs Pin
22491719-Oct-04 21:22
22491719-Oct-04 21:22 
GeneralRe: _Crt APIs Pin
vikramlinux20-Oct-04 0:55
vikramlinux20-Oct-04 0:55 
QuestionWhat I use function ASCII to char Pin
vc-programmer-19-Oct-04 20:43
vc-programmer-19-Oct-04 20:43 
AnswerRe: What I use function ASCII to char Pin
bryce19-Oct-04 21:02
bryce19-Oct-04 21:02 
GeneralDeveloping a smarter approach to using CTreeCtrl Pin
Jesper Knudsen19-Oct-04 20:14
Jesper Knudsen19-Oct-04 20:14 
I am looking for strategies for using tree controls. The goal is to extend the CTreeCtrl (or maybe even build a new custom CWnd descendant tree control) in a way that makes it easy to use, and that hides away most of the uggly struct and message tweeking needed.

At init I would want to add one single node, the root, to the tree control. And as user expands nodes, the tree would ask the node to list its children. For the tree to be able to ask nodes for children, we need some kind of "class ITreeNode" interface. Implementing this interface would enable an object to be represented as a node in the tree. And the object would itself be in charge of how it should be represented in the tree.

The tree this way visualizes the object structure in memory, which is a fair approach imo.

The treenode interface could look something like this...

class ITreeNode<br />
{<br />
   virtual CString GetTreeLabel() { return "Default"; }<br />
   virtual void GetTreeChildren( CTreeNodeList& L ) {}<br />
   virtual int GetTreeImage() { return 0; }<br />
   virtual int GetTreeImageSelected( return GetTreeImage(); }<br />
}


Did anyone experiment with anything like this?
GeneralProblem With ToolTipCtrl Pin
Azghar Hussain19-Oct-04 20:06
professionalAzghar Hussain19-Oct-04 20:06 
GeneralRe: Problem With ToolTipCtrl Pin
Sujan Christo20-Oct-04 1:24
Sujan Christo20-Oct-04 1:24 
GeneralRe: Problem With ToolTipCtrl Pin
Sujan Christo20-Oct-04 1:28
Sujan Christo20-Oct-04 1:28 
GeneralPrblm with SDI Pin
balajeedurai19-Oct-04 18:59
balajeedurai19-Oct-04 18:59 
GeneralRe: Prblm with SDI Pin
Vikram Kashyap19-Oct-04 19:38
Vikram Kashyap19-Oct-04 19:38 
GeneralRe: Prblm with SDI Pin
balajeedurai19-Oct-04 20:21
balajeedurai19-Oct-04 20:21 
GeneralRe: Prblm with SDI Pin
balajeedurai19-Oct-04 21:29
balajeedurai19-Oct-04 21:29 
GeneralHandles! Pin
hou_12619-Oct-04 16:37
hou_12619-Oct-04 16:37 
GeneralRe: Handles! Pin
22491719-Oct-04 21:17
22491719-Oct-04 21:17 
QuestionHow to convert between ANSI and UTF-8 strings? Pin
hou_12619-Oct-04 14:52
hou_12619-Oct-04 14:52 
AnswerRe: How to convert between ANSI and UTF-8 strings? Pin
Michael Dunn19-Oct-04 15:28
sitebuilderMichael Dunn19-Oct-04 15:28 
Questionkeep a thread alive in a dll? Pin
QQrutxu19-Oct-04 13:41
QQrutxu19-Oct-04 13:41 
GeneralTab controls in CDialog Pin
Geoff Hunter19-Oct-04 13:39
Geoff Hunter19-Oct-04 13:39 
GeneralRe: Tab controls in CDialog Pin
pubududilena19-Oct-04 23:53
pubududilena19-Oct-04 23:53 
GeneralFull Unicode support in MBCS compiled application Pin
McTrump19-Oct-04 13:05
McTrump19-Oct-04 13:05 
GeneralMRU Files on a Lower Level Dialog Pin
Grahamfff19-Oct-04 11:07
Grahamfff19-Oct-04 11:07 
GeneralCatching the ScrollBar on Clistcontrol Pin
purshi19-Oct-04 10:58
purshi19-Oct-04 10:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.