Click here to Skip to main content
15,917,320 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerMicrosoft Paint Pin
SimpleProgramer20-Oct-04 3:10
SimpleProgramer20-Oct-04 3:10 
GeneralRe: Microsoft Paint Pin
Larsson20-Oct-04 3:12
Larsson20-Oct-04 3:12 
GeneralSave As -- Microsoft Paint Pin
SimpleProgramer20-Oct-04 3:17
SimpleProgramer20-Oct-04 3:17 
GeneralRe: Save As -- Microsoft Paint Pin
Larsson20-Oct-04 3:20
Larsson20-Oct-04 3:20 
AnswerRe: convert jpg to bmp? Pin
XIII20-Oct-04 3:59
XIII20-Oct-04 3:59 
Questionhow to know send data to device Pin
vc-programmer-19-Oct-04 22:31
vc-programmer-19-Oct-04 22:31 
GeneralSpin Control with Real Numbers Pin
sweep12319-Oct-04 21:56
sweep12319-Oct-04 21:56 
QuestionC++ Runtime - different Instance in DLL? Pin
peterchen19-Oct-04 21:53
peterchen19-Oct-04 21:53 
AnswerRe: C++ Runtime - different Instance in DLL? Pin
jan larsen20-Oct-04 0:16
jan larsen20-Oct-04 0:16 
AnswerRe: C++ Runtime - different Instance in DLL? Pin
Nemanja Trifunovic20-Oct-04 3:39
Nemanja Trifunovic20-Oct-04 3:39 
GeneralRe: C++ Runtime - different Instance in DLL? Pin
peterchen20-Oct-04 6:20
peterchen20-Oct-04 6:20 
QuestionHow to set Shortcutkeys for Toolbar buttons? Pin
P_JAYAPRAKASH19-Oct-04 21:36
P_JAYAPRAKASH19-Oct-04 21:36 
AnswerRe: How to set Shortcutkeys for Toolbar buttons? Pin
Vikram Kashyap19-Oct-04 22:00
Vikram Kashyap19-Oct-04 22:00 
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 

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.