Hi folks,
I'm new to masm32 but I have some Win32 API knowledge and I have a little improvement for BFFOLDER.ASM.
The SetWindowText API in the callback function is executed several times when only one is enough.
cbBrowse proc should look like this...
cbBrowse proc hWin :DWORD,
uMsg :DWORD,
lParam :DWORD,
lpData :DWORD
.if uMsg == BFFM_INITIALIZED
invoke SetWindowText,hWin,lpData
.endif
ret
cbBrowse endp
I know that speed is not important for BrowseForFile function but it's a question of doing it rigth.
BrowseCallbackProc...
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/callbackfunctions/browsecallbackproc.asp