I think there is a mistake in the declaration of TAGOFNOTIFY. lpOFN
member should be a pointer to OPENFILENAME structure, not structure
itself, like:
Currently trying to correct the mistakes GetSaveFilename makes when
FileType is different, you know, like when trying to save a .BAS file
as .INC and CMDLG changes the name to .BAS.INC. Couldn't get hold of
nFilterIndex member under %CDN_TYPECHANGE in hook'd procedure, but when
I looked in Win32.hlp and changed lpOFN to become pointer instead, like
MS says, it worked fine.
------------------
member should be a pointer to OPENFILENAME structure, not structure
itself, like:
Code:
TYPE TAGOFNOTIFY hdr AS NMHDR lpOFN AS OPENFILENAME PTR pszFile AS ASCIIZ PTR END TYPE
FileType is different, you know, like when trying to save a .BAS file
as .INC and CMDLG changes the name to .BAS.INC. Couldn't get hold of
nFilterIndex member under %CDN_TYPECHANGE in hook'd procedure, but when
I looked in Win32.hlp and changed lpOFN to become pointer instead, like
MS says, it worked fine.

------------------
Comment