On 10/21/12 09:33, Greg Ercolano wrote:
> On 10/21/12 09:25, Greg Ercolano wrote:
>       The fltk native file chooser uses GetOpenFileNameW() in WIN32,
>       which if you read about it and its related functions, might
>       find a callback hook.

        Sniffing around, I suggest starting with docs for GetOpenFileName():
        
http://msdn.microsoft.com/en-us/library/windows/desktop/ms646931%28v=vs.85%29.aspx

        ..which shows the file browser dialog related 'hooks' I was talking 
about, e.g. OFNHookProc:
        
http://msdn.microsoft.com/en-us/library/windows/desktop/ms646931%28v=vs.85%29.aspx
        
http://msdn.microsoft.com/en-us/library/windows/desktop/ms646951%28v=vs.85%29.aspx#_win32_Hook_Procedures_for_Common_Dialog_Boxes

        ..which lets you set up a callback that gets invoked whenever the win32
        file browser dialog does any operations, passing in "messages" whenever
        an operation is about to occur so that your code can grab control
        *while* the user is navigating the dialog.

        I'm pretty sure the 'old style' dialogs that FLTK's native chooser use
        has a message that's sent whenever the user picks a new directory to 
browse,
        which I think is what you'd want, but I can't find it.

        I was able to find the message send for win32's new 'explorer' style 
dialogs
        (which fltk's native file chooser *don't* use by default, but perhaps 
can
        be enabled) for this:
        
http://msdn.microsoft.com/en-us/library/windows/desktop/ms646960%28v=vs.85%29.aspx#_win32_Explorer_Style_Hook_Procedures

        ..the one you'd be interested in I think would be CDN_FOLDERCHANGE
        (The user opened a new folder or directory), but again, that's only
        for the new Explorer style dialog.. not sure about the old style.

        So I can handle reading only so much about Win32 before I get ill,
        so I'm gonna have to stop there before I barf.
        
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to