Click here to Skip to main content
15,895,011 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Global Variable..(Simple but difficult....) Pin
V.26-Jul-04 22:52
professionalV.26-Jul-04 22:52 
GeneralRe: Global Variable..(Simple but difficult....) Pin
Ryan Binns27-Jul-04 19:01
Ryan Binns27-Jul-04 19:01 
GeneralRe: Global Variable..(Simple but difficult....) Pin
Sumit Kapoor27-Jul-04 19:22
Sumit Kapoor27-Jul-04 19:22 
GeneralRe: Global Variable..(Simple but difficult....) Pin
Ryan Binns27-Jul-04 20:44
Ryan Binns27-Jul-04 20:44 
GeneralTreeview in SDI App - Explorer style Pin
mavrick2326-Jul-04 18:47
mavrick2326-Jul-04 18:47 
GeneralRe: Treeview in SDI App - Explorer style Pin
User 58385226-Jul-04 18:58
User 58385226-Jul-04 18:58 
GeneralRe: Treeview in SDI App - Explorer style Pin
mavrick2326-Jul-04 20:35
mavrick2326-Jul-04 20:35 
GeneralRe: Treeview in SDI App - Explorer style Pin
User 58385226-Jul-04 21:01
User 58385226-Jul-04 21:01 
Im happy to help on the condition that you attempt to use the English language correctly. Thankx is not a word, nor is it an abreviation of any word in the English language. In fact its not an abreviation at all.
Now the rant is over....

a few questions...
1) why do you need the mask in the structure? If you are adding text and an image everytime the mask will be constant.
2) why do you need to know if it has children? I think you need to know if it has a parent
3) why not use CString and not char strNodeText[20]? to be really picky why is it called strNodeText? text would be fine. The node part is implied by the fact its a member of a class or struct that represents a node. The data type is implied by the word text so str is not required (i really hate hungarian notation)
4) tTreeNodeEnum.... what is this? I suspect its not required.

Why dont you have something like this
UINT id;
UINT parentId;
UINT iconResourceID;
CString text;
UINT order;

where id is just a unique number that you assign. This allows you to represent your tree structure in your data.

You could store this data in an xml file and the parentId would not be required as the tree structure would be represented by the xml. Same with the registry

Hope this helps
GeneralRe: Treeview in SDI App - Explorer style Pin
palbano26-Jul-04 19:55
palbano26-Jul-04 19:55 
Generalstatus bar Pin
Anonymous26-Jul-04 18:42
Anonymous26-Jul-04 18:42 
GeneralRe: status bar Pin
User 58385226-Jul-04 19:28
User 58385226-Jul-04 19:28 
Questionhow to call SQL BLOB in MFC Pin
Member 118298226-Jul-04 16:52
Member 118298226-Jul-04 16:52 
AnswerRe: how to call SQL BLOB in MFC Pin
Sumit Kapoor26-Jul-04 18:38
Sumit Kapoor26-Jul-04 18:38 
Generalopen/save dialog Pin
Archer28226-Jul-04 16:08
Archer28226-Jul-04 16:08 
GeneralRe: open/save dialog Pin
Ryan Binns26-Jul-04 17:59
Ryan Binns26-Jul-04 17:59 
GeneralRe: open/save dialog Pin
Ivan Cachicatari26-Jul-04 18:05
Ivan Cachicatari26-Jul-04 18:05 
GeneralInvalidateRect question Pin
Anonymous26-Jul-04 10:31
Anonymous26-Jul-04 10:31 
GeneralInvalidateRect question Pin
Anonymous26-Jul-04 10:30
Anonymous26-Jul-04 10:30 
GeneralDetecting CD/DVD Burning Devices Pin
Dean Michaud26-Jul-04 10:06
Dean Michaud26-Jul-04 10:06 
GeneralRe: Detecting CD/DVD Burning Devices Pin
David Crow26-Jul-04 10:11
David Crow26-Jul-04 10:11 
Generaladding a package!! Pin
Oriocat26-Jul-04 8:41
Oriocat26-Jul-04 8:41 
GeneralRe: adding a package!! Pin
David Crow26-Jul-04 9:54
David Crow26-Jul-04 9:54 
GeneralRe: adding a package!! Pin
Oriocat26-Jul-04 9:59
Oriocat26-Jul-04 9:59 
GeneralRe: adding a package!! Pin
David Crow26-Jul-04 10:05
David Crow26-Jul-04 10:05 
GeneralRe: adding a package!! Pin
palbano26-Jul-04 10:09
palbano26-Jul-04 10:09 

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.