Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Visual C++6

Visual C++6

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpquestion
10 Posts 6 Posters 0 Views 1 Watching
  • 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.
  • S Offline
    S Offline
    susanne1
    wrote on last edited by
    #1

    Hi everybody, iam trying to prevent the user from resizing, maximizing and minimizing a FormView window by using : OnSize and OnSizing functions, but it did not work? can somebody help? Thansk in advance

    O N J S 4 Replies Last reply
    0
    • S susanne1

      Hi everybody, iam trying to prevent the user from resizing, maximizing and minimizing a FormView window by using : OnSize and OnSizing functions, but it did not work? can somebody help? Thansk in advance

      O Offline
      O Offline
      onlyjaypatel
      wrote on last edited by
      #2

      U r using Mdi Application ? Than Override OnSize in CChildFrm and you will get the functionality.

      1 Reply Last reply
      0
      • S susanne1

        Hi everybody, iam trying to prevent the user from resizing, maximizing and minimizing a FormView window by using : OnSize and OnSizing functions, but it did not work? can somebody help? Thansk in advance

        N Offline
        N Offline
        Nibu babu thomas
        wrote on last edited by
        #3

        susanne1 wrote:

        Hi everybody, iam trying to prevent the user from resizing, maximizing and minimizing a FormView window by using : OnSize and OnSizing functions, but it did not work? can somebody help? Thansk in advance

        You can handle WM_GETMINMAXINFO or in MFC add a message map entry called ON_WM_GETMINMAXINFO and function prototype looks like this ... afx_msg void OnGetMinMaxInfo( MINMAXINFO FAR* lpMMI );

        Nibu babu thomas Microsoft MVP for VC++ Code must be written to be read, not by the compiler, but by another human being. Programming Blog: http://nibuthomas.wordpress.com

        1 Reply Last reply
        0
        • S susanne1

          Hi everybody, iam trying to prevent the user from resizing, maximizing and minimizing a FormView window by using : OnSize and OnSizing functions, but it did not work? can somebody help? Thansk in advance

          J Offline
          J Offline
          Jijo Raj
          wrote on last edited by
          #4

          For disabling window resizing you've to handle WM_GETMINMAXINFO message. Check this [^]for code snippet. Regards, Jijo.

          _____________________________________________________ http://weseetips.com[^] Visual C++ tips and tricks. Updated daily.

          S 1 Reply Last reply
          0
          • J Jijo Raj

            For disabling window resizing you've to handle WM_GETMINMAXINFO message. Check this [^]for code snippet. Regards, Jijo.

            _____________________________________________________ http://weseetips.com[^] Visual C++ tips and tricks. Updated daily.

            S Offline
            S Offline
            susanne1
            wrote on last edited by
            #5

            Hi Jijo, thanks for your reply, i used WM_GETMINMAXINFO message but it did not work(visual studio does not come to it) :-( Any idea why? Thanks

            D J 2 Replies Last reply
            0
            • S susanne1

              Hi Jijo, thanks for your reply, i used WM_GETMINMAXINFO message but it did not work(visual studio does not come to it) :-( Any idea why? Thanks

              D Offline
              D Offline
              David Crow
              wrote on last edited by
              #6

              susanne1 wrote:

              Any idea why?

              Without seeing your code, it's going to be hard to say for sure. Did you use ClassWizard to create the handler function for it, or did you try to implement the function manually?

              "Love people and use things, not love things and use people." - Unknown

              "The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch

              1 Reply Last reply
              0
              • S susanne1

                Hi Jijo, thanks for your reply, i used WM_GETMINMAXINFO message but it did not work(visual studio does not come to it) :-( Any idea why? Thanks

                J Offline
                J Offline
                Jijo Raj
                wrote on last edited by
                #7

                Whether its MDI/SDI? And you're trying to restrict that of a child view? Regards, Jijo.

                _____________________________________________________ http://weseetips.com[^] Visual C++ tips and tricks. Updated daily.

                1 Reply Last reply
                0
                • S susanne1

                  Hi everybody, iam trying to prevent the user from resizing, maximizing and minimizing a FormView window by using : OnSize and OnSizing functions, but it did not work? can somebody help? Thansk in advance

                  S Offline
                  S Offline
                  super_ttd
                  wrote on last edited by
                  #8

                  susanne1 wrote:

                  Subject:Visual C++6

                  susanne1 wrote:

                  iam trying to prevent the user from resizing, maximizing and minimizing a FormView window

                  So your question is not about Visual C++ 6, is it ?


                  S 1 Reply Last reply
                  0
                  • S super_ttd

                    susanne1 wrote:

                    Subject:Visual C++6

                    susanne1 wrote:

                    iam trying to prevent the user from resizing, maximizing and minimizing a FormView window

                    So your question is not about Visual C++ 6, is it ?


                    S Offline
                    S Offline
                    susanne1
                    wrote on last edited by
                    #9

                    sure it is about VC++6 / MFC

                    S 1 Reply Last reply
                    0
                    • S susanne1

                      sure it is about VC++6 / MFC

                      S Offline
                      S Offline
                      super_ttd
                      wrote on last edited by
                      #10

                      are you on crack ? when you ask a question, the topic has to be specific, and not talk about the TOOL you're compiling your code with ! :doh:


                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups