|
Hi,
I have a tree control in document/view architecture.
When an item is collapsed and expanded by clicking + sign,
all children nodes are re-enumerated and added.
This works fine when I collapse and expand any item by hand (manually).
But if i do it programatically, i.e. by sending TVE_EXPAND, and TVE_COLLAPSE
messages the child nodes are just made invisible and visible again.
How do i simulate a real collapse and expand to a node?
Thanks
|
|
|
|
|
a_b_pathak wrote: When an item is collapsed and expanded by clicking + sign,
all children nodes are re-enumerated and added.
Huh ??? me not understand what you are writing; what do you mean by re-enumerated ? Are you filling the children as soon as you expand the parent or is the tree completely filled at some point ?
When the + is clicked, the sub-tree will either collapse and will hide the items (children) under that parent ITEM or will expand and show all items (children) under that parent ITEM.
If the children are already inserted they will only be shown/hide depending on the collapse state of the parent.
|
|
|
|
|
Oh,
i'm actually showing contents of file system in treeview.
So, every time a node is collapsed and expanded, the subfolders
are re-enumerated and added.
This will let user see if new folders have been created.
|
|
|
|
|
Hi everyone,
For the purpose of debugging, I want to output some temporary information to the "Debug" of the output window. Just like the VS's message
"
Loaded 'C:\WINDOWS\system32\kernel32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\ws2_32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\msvcrt.dll', no matching symbolic information found.
" etc.
I will greatly appreciate it if anyone could give some clue. Thanks.
zipliu
|
|
|
|
|
|
|
Stripping <items in="" here=""> from a text file
what i wan to do is get rid of items in <items in="" here="">
for example, for the string "dsafgsgwrgh<itema>grsgwrhhwr<itemb>fsdf"
i want to get rid of "itema" and "itemb"
here is my code
- open file
- copy file to a CString
- look for <
- look for >
CString file_string;<br />
CString file_string_temp;<br />
int start_index;<br />
int end_index;<br />
f.Read(file_string.GetBuffer(f.GetLength()),f.GetLength());<br />
<br />
start_index = file_string.Find("<");<br />
end_index = file_string.Find(">");<br />
file_string_temp = file_string.Left(start_index);<br />
<br />
int aaa = file_string.GetLength();<br />
int b=5;
but unfortunately it doesnt work
is the file too big? the file is about 2,000,000,000 in f.GetLength
[B]file_string.Left(start_index);[/B] copies the entire file_string instead of only copying left strings
can somebody tell me what's wrong?
|
|
|
|
|
Hi,
I am working on localization and I have to change the texts of "Next","Back" and "Finish" buttons which are displayed on the property pages.I need to change those texts to make them meaningfull in other language.
So,Can you please suggest me how can change those button texts?
With Regards
Neeraj Sinha
|
|
|
|
|
Do you need to multi languages on your program?
|
|
|
|
|
Yes ofcourse, I need to have multi languages in my application.
With Regards
Neeraj Sinha
|
|
|
|
|
|
You shouldn't be changing those buttons. They are part of the wizard control, and messing with them is likely to break in future OSes (for example, the Back button in Vista has no text and the wizards have other design changes).
|
|
|
|
|
Place the text in string table.
Load the string from string table.
Set the text of the button using this text.
Afterwards you can change the strings in string table and again build the project and therefore the changed text will be reflected on the buttons.
Satellite DLLs can help in Localization.
|
|
|
|
|
Is there a way to easily change the name of a workspace/project (VC6) or does it have to be a copy done in some way? If the latter, how can I make sure all my settings etc are the same for a clean compile.
I'd rather just rename it to be honest, and get the final executable to follow that name change
cheers
Lee
|
|
|
|
|
|
Hi,
I am developing video player in C++ using SDL and FFMpeg , i tried to run the sample code which comes with the ffmpeg.
I downloaded all the source file from
svn://svn.mplayerhq.hu/ffmpeg/trunk
when i compiled using msys and mgwin its not working
$ lib
when i entered lib command it said no command found
i want compiled ffmpeg libraries and dll anybody tell me where i can download
please help me thanks in advance
-- modified at 8:40 Friday 29th June, 2007
|
|
|
|
|
I am also trying to do the same thing. Were you able to solve your problem ?
|
|
|
|
|
Can anyone explain why we use COM.
|
|
|
|
|
See here[^]
I think it will help,
Regards,
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
My Blog: ^_^
|
|
|
|
|
Hi all,
I am sending video from one system to another using TCP protocol and i am constructing a filter graph using DirectShow and using the wmv codec for compression.But i am getting the delay of about 10 seconds in seeing the video from sender to receiver.If anyone has any idea why such delay is there.
Filter graph is like this on the sender/Transmitter side:
Video Capture-->SmarTee(capture)-->Video Compressor-->Sender
SmartTee(preview)-->Elecard color space-->Video Renderer
Regards,
Mayank
|
|
|
|
|
That depends on the codec settings and what "sender" and receiver you are using.
You need to configure preroll and buffering settings where spplicable.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi
I am useing ShellExecute() function for open Internet Expoler
Using this code
UpdateData(TRUE);
ShellExecute( 0, "open","C:\\Program Files\\Internet Explorer\\IEXPLORE.EXE",0,0,SW_SHOW);
Its work correctly....
Now I want When i press OK Button a A web page (Suppose www.codeproject.com )open
can any one told me how can i do this
Regard's
Kaushik
|
|
|
|
|
ShellExecute( 0, "open","www.codeproject.com",0,0,SW_SHOW);
|
|
|
|
|
Thank you So much sir
Regard's
Kaushik
|
|
|
|
|
No problemo
|
|
|
|