News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

masm32 library - BFFOLDER.ASM

Started by jdoe, January 05, 2006, 05:32:17 PM

Previous topic - Next topic

jdoe


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