this is my problem:
I developed an explorer which its displaying is identical to the windows explorer and what i need is to allow the user to rename the automatic name of the file just after its creation.
For example : After a click sub menu "Create new file" there is a creation of file with default name like "New File.ext" So what i need is after this creation the explorer let user to rename file.
I'm trying to do this but no result
Please help me.
I am not familiar with the CBCGPShellList control, it does not appear to be part of MFC, so cannot advise on its use. Using a normal ListView the application may be able to set the editing mode on the name element which will give the user what you want.
1) the CBCGPShellList derive from CListCtrl so if you find a solution to CListCtrl it will be similar to CBCGPShellList.
2) About the uses of this class "CBCGPShellList" and "CBCGPShellTree" is for some reasons like the automatic manage of events between this controls and to use the BCG customization .
If you have source code in c++ which has the same role of my application (windows explorer) it will be helpful for me and a great gift.
You should have code that gets called to create the temporary edit control in the listview. Just call that code right after the folder is created rather than in response to a button click, menu option, or F2.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
In BROWSERINFO structur the parameter discription like this
Pointer to a null-terminated string that is displayed above the tree view control in the dialog box. This string can be used to specify instructions to the user.
this parameter not change the main window title.
please help me.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.