Messages of getting all opened file names

Don HO
2005-12-19
2012-11-14
  • Don HO
    Don HO
    2005-12-19

    2 messages of getting all opened file names from Notepad++ is available :
    WM_NBOPENFILES and WM_GETOPENFILENAMES

    To get the opened file names from Npp, you have :
    1. send the message WM_NBOPENFILES to get numbers of opened files.

    2. allocate the buffer to get the file names.

    3. send the message WM_GETOPENFILENAMES to get the file names.

    4. don't forget to deallocate the buffer.

    You can find the demo in Insert plugin (code source) here :
    http://notepad-plus.sourceforge.net/commun/misc/NppInsertPlugin.zip

    To test your development, you will need notepad++ binary which supports these 2 messages :
    http://notepad-plus.sourceforge.net/commun/misc/npp_getFileNames.zip

    I'll make the newest source on cvs service as soon as possible.

    Don

     
    • Don HO
      Don HO
      2005-12-20

      I just comited the changed source on CVS.

      Don