Menu

Open file

Sasha Z
2008-10-05
2012-11-14
  • Sasha Z

    Sasha Z - 2008-10-05

    Msg NPPM_DOOPEN not defined in Notepad_plus_msgs.h?

    How I can open file thought my plugin?

     
    • Sune Marcher

      Sune Marcher - 2008-12-25

      *bump*

      I've just updated to NPP 5.1.2, and decided to finally update and polish a couple of my plugins a bit. This involved updating Notepad_plus_msgs.h , and changing WM_* messges to NPPM_* . It seems that WM_DOOPEN hasn't been 'upgraded' to NPPM_DOOPEN, even though the plugins-HOWTO page mentions NPPM_DOOPEN.

      I 'fixed' this temporarily by hunting down the define for WM_DOOPEN and adding it as NPPM_DOOPEN in my own Notepad_plus_msgs.h , but obviously the official file should be updated to include the message.

      Thanks in advance :)

       
    • DV

      DV - 2008-12-25

      Seems WM_DOOPEN is considered to be an internal message of Notepad++ :)  I also added this message manually to use it in NppExec plugin.

       
      • Sune Marcher

        Sune Marcher - 2008-12-25

        Well, http://notepad-plus.sourceforge.net/uk/plugins-HOWTO.php mentions "NPPM_DOOPEN", and iirc the older version of Notepad_plus_msgs.h had WM_DOOPEN... so I think this is an oversight rather than by design?

         
    • Harry

      Harry - 2008-12-26

      I think its not meant as an internal message, it probably was just left out. Maybe at some point this'll get changed, its not nice if the message isnt the same as described in the docs.