>>>>Hi Herman,
>>>>
>>>>#DEFINE HTCDF_NOSELECTDIR 0x80000000
>>>>#define OFN_EXPLORER 0x00080000 // new look commdlg
>>>>
>>>>Declare String CD_GetFile in HTWindow.dll ;
>>>> String cStartDir, String cStrFilter, Long hWndParent, ;
>>>> Long nPosition, Long nX, Long nY, ;
>>>> Long uFlags, Long uFlagsEx
>>>>?CD_GetFile("c:\MMVisCollect","dat",0,0,0,0,0,HTCDF_NOSELECTDIR)
>>>>
>>>>Can we change window title and the Open button caption? Why the Open button is disabled? How then the user can select a file?
>>>>
>>>
>>>Hi Naomi,
>>>
>>>Changing the window title is easy, as well as the 'Open' button. However changing the button text can only work for GetOpenFileName(). GetSaveFileName() require a lot more heavy work because it is changing interactively between "Save" & "Open" when the mouse is hovering within the listview.
>>>
>>>And because of that I have to disabled the 'Open' button. Because when the folder is selected in the listview, this button also functioning to open the folder. And I prefer not to interfere with this button. So, I'm not sure what to do. As I mentioned there is always a limitation somewhere <bg>
>>>
>>>To select a file, you can just click (double click) the filename in the listview.
>>>
>>>Upgrade:
>>>Having said that, do you still want the ability to change the title and button text ?
>>
>>Yes, that would be nice.
>
>It's done! Please check the download area
>
>Regards
Thanks a lot, I'll check it.
If it's not broken, fix it until it is.
My Blog