I am in the process of creating my own custom Open File Dialog and was wondering about one thing that should be the final key to my puzzle. Hopefully someone might have some more insights into this matter that might prove to be helpful.
In my dialog I want to prevent the user to browse freely in certain places (this is due to the fact that my application will be running in a terminal server environment). So I want to to limit the items that will be visible in the top combobox of the server. I want it to start with "My Computer" instead of the usual "Desktop". Furthermore I only want to add mapped network drives under "My Computer" so that the user won't be able to see any local resources.
With Spy++ I have been looking around at what happens when a FileDialog starts.
So far I have found that for each item in the combobox CB_SETITEMDATA and CB_INSERTSTRING methods are executed. By using a hook to the combobox I am able to intercept these messages, but sofar I am unable to determine the exact contents of what is inserted, so I am unable to determine wether it is the "Desktop" item or not.
I have also discovered that the "My Computer" node is only added at the moment that the combobox is expanded. So I would need a way to get a handle to "My Computer" and insert an item for it manually.
Is there anyone that might have some insights in these issues?
In my dialog I want to prevent the user to browse freely in certain places (this is due to the fact that my application will be running in a terminal server environment). So I want to to limit the items that will be visible in the top combobox of the server. I want it to start with "My Computer" instead of the usual "Desktop". Furthermore I only want to add mapped network drives under "My Computer" so that the user won't be able to see any local resources.
With Spy++ I have been looking around at what happens when a FileDialog starts.
So far I have found that for each item in the combobox CB_SETITEMDATA and CB_INSERTSTRING methods are executed. By using a hook to the combobox I am able to intercept these messages, but sofar I am unable to determine the exact contents of what is inserted, so I am unable to determine wether it is the "Desktop" item or not.
I have also discovered that the "My Computer" node is only added at the moment that the combobox is expanded. So I would need a way to get a handle to "My Computer" and insert an item for it manually.
Is there anyone that might have some insights in these issues?