Hy, i have used this for my own openfile dialog. Now i have problems, when my app is running under Vista and W7. Anybody has an idea, of improving my software to run under Vista?
I am using MSVC 2008 C++ MFC
4. Finally, right before the hook function returns, add this line:
if (GetFocus() == hWndList)
Basically, the user must first click in the listview to give it the focus before they can press backspace to go up a directory. This modification puts the focus back on the edit box whenever the listview has the focus. Since the list view never has the focus, the user can never use backspace to go up a directory.
i hope this helps someone who had the same problem i had. in closing, i would just like to say that MFC sucks ass hardcore.
I can change all the texts in the appearance of the File Dialog ( "Look in", "OK", "Cancel") to my own texts. But I can not catch the message box showing up when you enter a wrong path to customize it.
I have try many ways without success ( message handle "OnFileNameOK", hook procedure in OPENFILESTRUTURE)
I'd like to customize Open/Save dialogs so that I could browse web directories af if they were files. All I need is to be able to intercept ChengeDir action and fill it with my own items. I do not see any events for doung this. Am I bnlind or this is impossible.
This article demonstrates very best how to use hook-
functions to manipulate the CommomDialog�s. To this example
: it�s always possible to go up a folder by the backspace.
To forbid this, you have to install another hook
(WH_KEYBOARD) to catch the backspace.
On my side, I expandend the example so that the initial
folder is a virtual-root-folder. The user can go down to
subfolders, and go back up maximal to the initial folder.