Archive: nsDialogs::SelectFolderDialog Changing Dialog Title


nsDialogs::SelectFolderDialog Changing Dialog Title
Hi all,

i am using NSDialogs and with it the SelectFolderDialog, since i am creating multilingual installlers it appeared that the SelectFolderDialog can be given an additional string between the title and the windows where you select the folder, this one i can set and thus translate.

But the title always stays in english.

http://www.bergens.org/Bild%201.png

Any ideas? Thanks for your help :)


There is no simple way how to change title of window - SelectFolderDialog uses WinAPI function SHBrowseForFolder and title is hard coded in Windows.

Read more about it here: http://msdn.microsoft.com/en-us/libr...=vs.85%29.aspx and here: http://msdn.microsoft.com/en-us/libr...=vs.85%29.aspx

But it is possible :) - use callback function of this dialog and SetWindowText() to modify the title [C programming skills required, write simple dll plugin].
Example can be found here: http://www.codeproject.com/Messages/...orFolder-.aspx

Or another idea: get window by HWND [or enumerate all windows by title] and force new title for this dialog by sending its message.


Thanks for letting me know!

Since i am lacking C programming skills i might try your second option if i find the time.