Announcement

Collapse
No announcement yet.

COMDLG32.INC - TAGOFNOTIFY

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • COMDLG32.INC - TAGOFNOTIFY

    I think there is a mistake in the declaration of TAGOFNOTIFY. lpOFN
    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
    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.



    ------------------

  • #2
    There is no TAGOFNOTIFY in ComDlg32.INC ...? Or in the Windows SDKs, as near I can tell.


    ------------------
    Tom Hanlin
    PowerBASIC Staff

    Comment


    • #3
      Hm, must have added it when I boilt my Hook procedure then. Sorry,
      but still - since the OFNOTIFY struckture belongs there and if you
      ever consider adding it, this is how it should look..

      It's in the SDK alright, but as OFNOTIFY structure. Someone, somewhere
      posted a sample with it, called TAG.. so that's why the confusion..
      ------------------


      [This message has been edited by Borje Hagsten (edited July 09, 2001).]

      Comment


      • #4
        Ok, thanks.

        ------------------
        Tom Hanlin
        PowerBASIC Staff

        Comment


        • #5
          just posted result to http://www.powerbasic.com/support/pb...ad.php?t=23142

          reason to use this instead of plain, default save dialog without hook:
          user can save a file as different type without ending up with doubled
          extenstion (xx.bas.inc - you know..


          ------------------

          Comment

          Working...
          X