The MASM Forum Archive 2004 to 2012

Project Support Forums => MASM32 => Topic started by: jdoe on January 05, 2006, 05:32:17 PM

Title: masm32 library - BFFOLDER.ASM
Post by: jdoe on January 05, 2006, 05:32:17 PM

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