|
I found the code but it is in C#. I tried to convert to VC++ in .NET but I was getting error for the following:
"tview.Nodes[k]" The error is in Nodes[k]. Can anyone please let me know how to solve it.
The code I got in C# is below:
<br />
{<br />
TreeNode temp = new TreeNode();<br />
<br />
for(int k=0; k<tview.Nodes.Count; k++) <br />
{<br />
temp = tview.Nodes[k];<br />
<br />
MessageBox.Show(temp.Text);<br />
<br />
for (int i = 0; i < temp.Nodes.Count; i++)<br />
visitChildNodes(temp.Nodes[i]);
}<br />
Any other sugesstions for how to traverse all the nodes in a treeview using VC++ .NET will be appreciated
|
|
|
|
|
Here's some actual code:
void CTreeTestDlg::WalkChildren(HTREEITEM hItem)
{
while (hItem != NULL)
{
OutputDebugString(m_treeCtrl.GetItemText(hItem) + _T("\n"));
if (m_treeCtrl.ItemHasChildren(hItem))
WalkChildren(m_treeCtrl.GetChildItem(hItem));
hItem = m_treeCtrl.GetNextSiblingItem(hItem);
}
}
void CTreeTestDlg::OnClickedWalk()
{
WalkChildren(m_treeCtrl.GetRootItem());
}
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
Hi,
I want to change my project name .Can I change my project name after creating it?
Cyber Friend
|
|
|
|
|
Yes, but it's fairly tedious. I always find it easier to just create a new project.
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
|
Hi,
This link is not working .Can u provide some other link ?
Regards.
Cyber Friend
|
|
|
|
|
Hmmm..
Just tried it and it worked.
I also tried typing in vsrename in the SEARCH box at top and it
comes up with the same valid link???
Roy
|
|
|
|
|
Hi,
Ya it worked n i have used this utility. Its fantastic utility. When anyone uses this utility then dont forget to remove spaces from the path of poject being renamed.
Best Regards.
Cyber Friend
|
|
|
|
|
Yes , It is possible but you should consume about 20 minute .
1 - del Debug and Release folders .
2 - get back up of your prj .
3 - click --> Start->Serach-> ... and search your prj name .
4 - rename all files were found to new prj name.
5 - type prj name in "Containing text" edit box of Search window and empty "Search for files or ..." on that window
6 - Open all file that found in notepad and serach prj name int it and change it to new prj name .
I changed prj name with this way more times .
-- modified at 1:58 Saturday 22nd July, 2006
|
|
|
|
|
Hiya there everyone... In Visual Studio 6 i used to be able to press CTRL + W to bring up classwizard. Then i could click on a class ( A CDialog dervied class for exampe ) in the workspace and it would bring up all the message handler that i could double-click and the Visual studio would create a skeleton function for me.
Im aware that ClassWizard is defunct with regards to Visual Studio 2005 but i was just wondering if there is any way for me to bring up a all the message handlers that are associated with a class beause im going around the bend at the moment trying to remember my Message map handlers
cheers!
|
|
|
|
|
I can't remember if it is still there for 2005, but in 2003 it is no longer a wizard, but instead is a docking window (VB-style) that sits below your solution explorer.
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week
Zac
|
|
|
|
|
Zac Howland wrote: I can't remember if it is still there for 2005, but in 2003 it is no longer a wizard, but instead is a docking window (VB-style) that sits below your solution explorer.
Yes it is a docking window in VS2005.
Click on View in your menu.
Then select "Class View"
It should then pop up and you can dock it.
or do: Ctrl+Shift+C
Kitty5
|
|
|
|
|
Does this help?
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
thanks everyone.. im rocking & rolling now
|
|
|
|
|
hmmm... So ive got class view up!. I click my CDialog derived class. Then it says "In the Properties window, click the Messages button." - The Properties window is the next tabbed window along but i cant see the "messages" button! - Ive tried clicking on the source and the class name but im not finding it! - am i being a dunce or.........
|
|
|
|
|
Hello there,
Sorry if this is the wrong forum for this question, but I couldn't decide which one to use.
I'm wanting to use Eclipse as a development environment for my C++ project (as I need to be able to easily port between Windows and Linux, it seems to be a good choice). I've successfully been able to compile a simple program with Eclipse using the gcc compiler via Cygwin. This means that I've got things set up for porting to Linux. I'd now like to be able to have my programs run on Windows independent of Cygwin, thus be able to compile for Windows and for Linux with Eclipse, simplifying porting to different systems.
Does anyone know of a plug in for Eclipse that would allow me to use the Visual Studio Compiler, or another Windows compiler that doesn't require Cygwin?
Thanks for your help.
Patrick
|
|
|
|
|
pgav wrote: Does anyone know of a plug in for Eclipse that would allow me to use the Visual Studio Compiler, or another Windows compiler that doesn't require Cygwin?
You can check the Eclipse plug-in repository (can't find the URL at the moment otherwise I would post it), but I doubt you will find anything like that in it.
A better solution for you might be to organize your project as follows:
ProjectDir
- source dir
- linux development (IDE files)
- windows development (IDE files)
Then you just have to make sure if you make changes to the project settings in one side, you also do it for the other side (you can write scripts or macros to do that for you if you really want to).
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week
Zac
-- modified at 11:22 Friday 21st July, 2006 ... apparently the "pre" button isn't working today?
|
|
|
|
|
hi all ,
I have a dialog box application.I want to remove the cancel button at the top right of a dialog box.Can anyone pls. tell me how to do it.
|
|
|
|
|
Have you considered removing the WS_SYSMENU style?
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
do in the resource editor, select your dialog box, once it's openned, select the "Cancel" button and press the delete key on your keyboard.
|
|
|
|
|
The "cancel" button he is referring to is the "X" in the top-right corner of the dialog.
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Do the following:
Open the dialog box resource from the resource window in the workspace pane. Right click once you are on the dialog box and open properties. On the 'sytles' tab uncheck the system menu. That should do the trick.
|
|
|
|
|
Hi ..
Do u mean the CANCEL button which comes by default when u start a new project?
Or some other cancel button, write it in clear
cheers..
Do Good, Be Good
|
|
|
|
|
|
Right now when I have a dialog box open I can only work in the one box and can't click on anything outside it (i.e. clicking on the toolbar to open another dialog box or getting the about box to come up isn't working...)
I want to be able to click on the toolbar, menu, open more than 1 dialog box, etc.
I guess I'm looking to make these dialog boxes work like child forms in an MDI MFC App. where no matter how many child windows you have open you can still click on the toolbar, menu, etc.
Is that possible?
Thanks,
Kitty5
|
|
|
|