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

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -