• Login
Community
  • Login

Message box with specific icon

Scheduled Pinned Locked Moved Notepad++ & Plugin Development
4 Posts 4 Posters 538 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B
    Bertrand Ruef
    last edited by Jan 20, 2025, 8:26 PM

    Hello,
    i have develop my own plugin and it works well.
    i would like to add a “about” windows, with text and and a specific icon.
    i don’t arrive to show my icon .
    how can i do to show my specific icon in this messagebox ? (instead of MB_informationicon )
    For exemple, the about windows on the ‘pythonscript’ has got a ‘picture’ inside.

    i defined my ico file in my rc file, and the number of my ico in my resource.h file.
    Thanks for your help.
    Bertrand.

    A C X 3 Replies Last reply Jan 20, 2025, 9:23 PM Reply Quote 0
    • A
      Alan Kilborn @Bertrand Ruef
      last edited by Jan 20, 2025, 9:23 PM

      @Bertrand-Ruef

      This seems like a Windows API question, not specifically a Notepad++ related question.
      Thus, there are better places to ask such a question.

      But… Since you mentioned PythonScript, have you looked at its source to see how it does it, and then tried to duplicate that?

      1 Reply Last reply Reply Quote 0
      • C
        Coises @Bertrand Ruef
        last edited by Coises Jan 21, 2025, 1:31 AM Jan 20, 2025, 9:32 PM

        @Bertrand-Ruef said in Message box with specific icon:

        show my specific icon in this messagebox

        MessageBox doesn’t work that way. Unless you can work within the very restrictive limitations of a message box, you need to use a modal dialog box.

        Edit to note that @xomx has (again) described below how to do what I said couldn’t be done.

        1 Reply Last reply Reply Quote 2
        • X
          xomx @Bertrand Ruef
          last edited by Jan 20, 2025, 11:48 PM

          @Bertrand-Ruef

          MessageBoxIndirect

          1 Reply Last reply Reply Quote 3
          4 out of 4
          • First post
            4/4
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors