|
The only time an item will be added to the tree control is when you call InsertItem(). What I would do is do a search of your code for "InsertItem" and place a breakpoint by every line that you find. Then run your program. Just skip over the breakpoints (press F5) that you hit when the app starts. When your app is up and running click on an item in the tree control, the debugger should stop your app on the line that is calling InsertItem to duplicate the current item. Use the call stack to figure out how you got there from the click event.
HTH
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" - mYkel - 21 Jun '04
"There's not enough blatant self-congratulatory backslapping in the world today..." - HumblePie - 21 Jun '05
Within you lies the power for good - Use it!
|
|
|
|
|
hi,
The problem i am facing with ur suggestion is i could not
click on the tree nodes being generated at run time while debugging.
As the nodes are appended at run time , i could only see the application for a split of second and i dont have the oppurtunity to click on tree nodes while debugging
|
|
|
|
|
Which is why I said "Just skip over the breakpoints (press F5) that you hit when the app starts. When your app is up and running click on an item in the tree control".
Just keep hitting F5 until the tree is populated. Then you can click on a node.
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" - mYkel - 21 Jun '04
"There's not enough blatant self-congratulatory backslapping in the world today..." - HumblePie - 21 Jun '05
Within you lies the power for good - Use it!
|
|
|
|
|
hi,
I did exactly the way u said ,but the problem i'm facing is
once i start the run the nodes are being at run time.
the code is like this,
for(int i=0;i<ncount;i++)
{
="" strname="pDoc-">GetTraverseSpectralDataName(0,i);
TreeItem = m_treeCtrl->InsertItem(strName,5,5,m_hCS);
// kept my break point in the above line
m_treeCtrl->SetItemData(TreeItem,i);
}
now the corsor gets stuck in the for loop even is i press
F5 , my application appears for only a split of sec and
i could not have the chance of clicking on the samples (nodes)
as the nodes are generated continuously till the server stops.unless i click on the nodes at run time i could not find out why the duplicate sample(node) is being generated.
thanx for ur valuable suggestions
|
|
|
|
|
vamshin wrote: as the nodes are generated continuously till the server stops
What do you mean by "continously"? Do you mean that the loop runs once to fill the tree once at app startup (ie: adds say 1000 nodes and stops)? or do you mean that as long as the app is running, be it five minutes or five hours, there is always nodes being added to the tree? How about you change your code temporarily so that it only adds a few items (say 10) to the tree just to make debugging easier.
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" - mYkel - 21 Jun '04
"There's not enough blatant self-congratulatory backslapping in the world today..." - HumblePie - 21 Jun '05
Within you lies the power for good - Use it!
|
|
|
|
|
Hi
I want to make scrolling marquee which scrolls from right to left horizontally in my dialog based MFC application.
I have used timer and at perticular interval I am showing my text again and again at few fixels ahead of last time i have shown.
But it creates problem when I make my font size very big e.g. Font height of 200.
I have also tried the CBannerStatic class given here in codeproject example. But it also gets very slow when I make my font very big.
Is there a way through which I can show big text font whith smoothly moving marquee.
Any idea any program will definitely help me.....
Thanking you
Amarelia Maehsh
Gujarat
India
|
|
|
|
|
I sent an image ticker to genaro picazo here at CP some time ago. Ask him,
or drop me an e-mail to send it also to you.
SkyWalker
|
|
|
|
|
Use a memory bitmap. Draw your text onto the bitmap (preferably only once when the app starts) and use bitblt() to draw the bitmap onto the screen at the postion required.
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" - mYkel - 21 Jun '04
"There's not enough blatant self-congratulatory backslapping in the world today..." - HumblePie - 21 Jun '05
Within you lies the power for good - Use it!
|
|
|
|
|
Hi all
I am trying to open a workspace by opening .dsw ..but visual studio is empty ...nothing is opened !!!
And I opened .dsp ..it created a new .dsw ..with this new dsw also the workspace not opened ...!!
Have never seen such things before ...
anyone faced it before ? Any clues why its happening ?
I am sure there is no makefiles in the workspace
redindian
|
|
|
|
|
Did visual c++ lock up? Try deleting the .ncb,.clw and .aps files.
John
|
|
|
|
|
Dear friends,
I restart pc. go into xp professional. ask for enter user name and password.
I want to restart my pc at this situation. how these thing happen.
This situation is in client side. from server side client is detected. client is enter user name and password.but not start enter button. now restart pc from server side. how to do this. give me a reply .
Regards
kedar Bhagwat
|
|
|
|
|
vcforums wrote: give me a reply .
"here is a reply".
now, give me a question...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
vcforums wrote: I restart pc. go into xp professional. ask for enter user name and password.
I want to restart my pc at this situation.
Isn't this an endless loop?
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
|
First off this is the wrong forum as this is nothing related to visualc++. Secondly, what do you mean client and server? Are you running Remote desktop?
John
|
|
|
|
|
hi all
could anyone please post the link for Windows Message Naming Conventions?I am not able to find in MSDN.
I mean how can one know that WM is for Windows Messages,CBN-Combo box,TVHT is tree view etc.
Any Kind of Help is Highly Appreciated
|
|
|
|
|
|
Hello All,
I want to redirect only my perticular application's output (not full screen of my monitor) to my TV.
I am new to this feild.
Kindly let me know where i have to statr and refer me some useful links.
Thanks in Advance
Shah
|
|
|
|
|
Hello,
I have created a folder say "Temp".
It has default security settings like
1.Administrators
2.power users
3.System
4.Everyone etc...
In Everyone group entry, it has permissions for read,read & execute etc.
But it doesn't have "Full Control" permission.
How to set the "Full Control" permission for the Everyone group?.
Is there any API's available so that i can edit the existing permissions?.
Could anyone please help me on this?
Thank you,
Shiva
|
|
|
|
|
Has anybody used the SkinMagic toolkit from appspeed.com?
Because, I'd like to ask if somebody was able to use it in their program?
I've tried to load a skin in my program but it doesn't work, an error on external occurs when I use the function from their library.
If somebody was able to load a skin, please tell me how. Thanx
|
|
|
|
|
Hi
How to destroy a menu from SDI application. The SDI application should appear without Menu .
Help me.
|
|
|
|
|
At the end of OnCreate(...) of CMainFrame() ,
SetMenu(NULL);
this is this.
|
|
|
|
|
BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
{
if(cs.hMenu!=NULL)
{
::DestroyMenu(cs.hMenu);
cs.hMenu = NULL; }
return CFrameWnd::PreCreateWindow(cs);
return TRUE;
}
|
|
|
|
|
|
Hi all ,
I use FindWindowEx API, I want to send the message to all editable control currently has focus. So I want the common class name for all editable control running in windows OS.
See below
FindWindowEx(hHandle, NULL, "Edit", NULL);
This is for notepad Instead of using Edit I need to use general name for all editable control
|
|
|
|