|
Basically, when you insert an item into a tree, you do something along the lines of
HTREEITEM hMyItem = pMyTree->InsertItem(&lvTreeItem);
Is it ever possible that the value of hMyItem will change throughout the lifetime of the tree?
My reason for asking is that I have an object for each item in the tree, and I would like to maintain the handle within the object so that changes to it can be reflected easily in the tree (i.e. by changing the icon etc)
Thanks in advance!
|
|
|
|
|
Martyn Pearson wrote:
Is it ever possible that the value of hMyItem will change throughout the lifetime of the tree?
As far as I know a handle to a tree item should be valid during whole lifetime of the tree. I can't guess any situation in which the handle could be changed - especially as you can use it on any time for further operations like deleting, ...
|
|
|
|
|
Martyn Pearson wrote:
Is it ever possible that the value of hMyItem will change throughout the lifetime of the tree?
No, if that happened then HTREEITEM s would be useless.
--Mike--
Looks like I picked the wrong week to stop sniffing glue.
1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
Where can I find guide about using Microsoft ADO Control(
like ADO DataCombo,DataList...).
Thank You
|
|
|
|
|
when u insert these controls in your project,a dialog appear. there is a button on that dialog named
"More Info".
click on it.
u get the help
|
|
|
|
|
hi all,
I have a IE toolbar thru which i want to add a function to block all IE popups..I am using VS6.0 on windows 98. If anyone has anyideas please forward..Any ideas are most welcome..thanks in advance..please..
cheers
Himanshu
|
|
|
|
|
Can somebody help me in this matter ???
I want to make a password entry screen(CDialog);P and want to save/change password from registry . Please guide...
|
|
|
|
|
Take a look at the DPAPI and of course my article[^] about it
Holy Sh*t! I'm speechless. (hey, that's a first) Marc Clifton, The Lounge
|
|
|
|
|
Help req.
Does anyone have any examples or source code for GINA.DLL which works with Windows XP or Windows 2000. I need to replace the Microsft Windows Logon screen with a custom one.
I would be grateful for any help what so ever.
Richard Hudson
|
|
|
|
|
a) Platform SDK has a sample
b) try to think about another (better) solution, there are almost no reasons for replacing the logon screen.
Holy Sh*t! I'm speechless. (hey, that's a first) Marc Clifton, The Lounge
|
|
|
|
|
But it is some sort of a "Holy Land" for all trojans
My opinions may have changed, but not the fact that I am right.
|
|
|
|
|
you are a mean guy
Holy Sh*t! I'm speechless. (hey, that's a first) Marc Clifton, The Lounge
|
|
|
|
|
Thx for ur time... Will check the Platform SDK.
Cheers
Rich
|
|
|
|
|
How we can change the background color of toolbar?
Thanks for the helper.
|
|
|
|
|
Hi all,
Please, any suggestion, how can I convert MS Word *.doc to HTML file programatically.
I have a lot of document in *.doc format and I need convert these documents to *.html format to public these documents on internet.
I guess (think) I could use OLE, COM, but I don't know how do it.
I use Visual C++ 6.0.
Regards.
Thak You.
|
|
|
|
|
You must to use Ole Automation.
Is Easy, you only must to open the file, and then make a SaveAs in HTML Format...
Best Regards
Carlos Antollini.
Pi Five[^]Creator
Sonork ID 100.10529 cantollini
|
|
|
|
|
Thank You for your reply.
I want do it without user-interact(run-time), therefore I can't use way "SaveAs in HTML Format".
I'm right? If not, please, explain me, how do it.
Regards.
Thak You.
|
|
|
|
|
No Problem, The save As doesn't display a dialog, only is a method where you inform the name and the type of the file....
Best Regards
Carlos Antollini.
Pi Five[^]Creator
Sonork ID 100.10529 cantollini
|
|
|
|
|
Thanks, Carlos.
I'll try it.
Regards.
|
|
|
|
|
Hi Guys,
I created a simple dialog based application in VC++ 6 via application wizard.
The dialog class is derived from CDialog. But here i want to use multiple inheritance.
I want my dialog class to be derived from one more class CStringParser i.e:
class CTestDlg : public CDialog, private CStringParser
{
public:
CTest123Dlg(CWnd* pParent = NULL);
private:
int ProcessCommand(
const std::String &inputBuffer);
}
CStringParser class provided a pure virtual function interface
int ProcessCommand(<br />
const std::String &inputBuffer)=0; that i needed to implement inside dialog class.
Every think working fine, but when i run application, an error occured. The error dialog
show me that "Exception Break Point occur"
Can any one tell me how can i get rid of this error ????
|
|
|
|
|
Already runned your app in debug mode ? What caused the exception to happen ?
~RaGE();
|
|
|
|
|
hi,
if i have an application, using windows explorer style(consist of left pane and right pane), i want to create a button in the toolbar that delete a selected/highlighted item in either left pane or right pane(can't delete both at the same time).. can this be done? or should i just use 2 buttons instead(one button for deleting items in leftpane and another one for deleting items in right pane).. thx in advance!
|
|
|
|
|
You only need one button (think about the copy/cut/paste button in windows explorer, they may be used in both left and right panes).
I do not know much about MDI (since I've developped only few such app till now), but with GetActiveView , you should be able to grab the view whith the item currently selected when hitting your remove button.
~RaGE();
|
|
|
|
|
Is there a way to create a wizard like the installation wizard that you see for commercial programs?
|
|
|
|
|
Yep. Throw an eye on the CPropertySheet and CPropertyPage classes, these can be customized to appear like a wizard.
~RaGE();
|
|
|
|