Announcement

Collapse
No announcement yet.

Disable window menu

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

  • Disable window menu

    Hi, please tell me how to disable this menu, or its items when you click on the dialog box?

  • #2
    Hang on a sec - in the first place, why on earth would u want to eliminate a user's ability to exit a DialogEx window?

    Conceivably, I guess there might be a good reason that's not coming to mind right now. In any case, if this is what u want, why not just set the DialogEx window to be bordered or flat from its Properties selection?

    Nb. Also, when posting requests, please make sure everything is in English. Most of us don't read Cyrillic. This is an english-speaking forum - unprogressive as that might be.

    Comment


    • #3
      That menu as nothing to do with AMS, I believe that is default in all windows framed windows, so you will have to use flat mode so the user don't have access to the windows frame, but that is as far as we can go with helping you as you not given much to go on.
      Plugins or Sources MokoX
      BunnyHop 2021 Here

      Comment


      • #4
        Yep, it looks like the default left-corner menu that appears in all window's windows, right?.

        So, as already stated, go flat or go bordered.
        Or, start looking into calling functions from the user32.dll.

        Comment


        • #5
          The fact is that I'm interested in the window system style in AMC. Therefore, interesting ways to solve ...

          Comment


          • #6
            Originally posted by ctaty3 View Post
            The fact is that I'm interested in the window system style in AMC. ...
            AMC? Hmmm,, Australian Medical Council? Australian Maritime College? American Cable Channel?
            Can anyone translate for me?

            Could u be a little more vague for us? Our mind-reading skills are way too sharp for such lingo-specific references.
            Come on, man You asked for help. How about a bit of basic communication etiquette?

            Comment


            • #7
              Sorry for my English... I'm just Russian.

              In general, I'm interested in how to disable the system menu in any window in AMS?
              While I came up with a cunning solution:

              function DialogEx.DisableResizeMenuItems()
              WinApi.SetWindowLong(DialogEx.GetWndHandle(), "-20", "0x00000100|0x00020000", false);
              end

              Comment


              • #8
                Originally posted by ctaty3 View Post
                Sorry for my English... I'm just Russian.
                No kidding. And yet now, you're English is flawless.
                Sigh ... whatever.

                Yes, the WinApi plugin is capable of many things. But given you already have a solution, why not just say so?
                If you're looking for ways to do this via the Windows Api directly (ie. without the plugin) - as already suggested, look into the functions embedded in the user32.dll.

                Comment


                • #9
                  Edit,
                  Full list of exported functions of user32.dll is attached.
                  Relevant functions are listed below:

                  Attached Files

                  Comment


                  • #10
                    But like we said this option isn't anything to do with AMS so you do have to use the WinAPI or the user32 dll, as you have to tell windows to stop doing what it's doing for that windows, but yes if you have already found the option you needed why didn't you say hay this is the option I found, any better options, and once again WinAPI and user32 dll are mostly the best options out there.
                    Plugins or Sources MokoX
                    BunnyHop 2021 Here

                    Comment


                    • #11
                      Thank you very much for the information of the guys!

                      Comment

                      Working...
                      X