windows - Extract Path From File Dialog -
my app uses 3rd party dll image processing, opens file dialog choose image file. continuity , usability reasons, use separate thread change dialog after appears (change icon , title, , remove system menu , context button). introduce own wndproc capture button clicks, can re-route app if choose.
i want specific processing of image types, need know when 1 of these has been picked. there way hold of full file path , pass app? (the third party file dialog not default windows dialog, seems based on it).
in wndproc, after catching idok wm_command message, used sendmessage , cdm_getfilepath i'm after!
edit:
actually, seems i'm better off catching wm_destroy message - in case user double-clicks or presses enter instead of 'ok' button.
Comments
Post a Comment