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. How to disable minimzing?

How to disable minimzing?

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorialquestion
6 Posts 4 Posters 2 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.
  • D Offline
    D Offline
    daavena
    wrote on last edited by
    #1

    Hello gentlemen, Is there any option to disable/prevent window minimizing when I press window key(between Ctrl and Alt) + D? I have one dialog without tile with transparent backgroud, I don't use MFC. I am capturing these windows messages case WM_WINDOWPOSCHANGING: return true; break; case WM_WINDOWPOSCHANGED: return true; break; case WM_SIZE: if(wParam == SIZE_MINIMIZED) { return true; } break; Thank you.

    H D 2 Replies Last reply
    0
    • D daavena

      Hello gentlemen, Is there any option to disable/prevent window minimizing when I press window key(between Ctrl and Alt) + D? I have one dialog without tile with transparent backgroud, I don't use MFC. I am capturing these windows messages case WM_WINDOWPOSCHANGING: return true; break; case WM_WINDOWPOSCHANGED: return true; break; case WM_SIZE: if(wParam == SIZE_MINIMIZED) { return true; } break; Thank you.

      H Offline
      H Offline
      hxhl95
      wrote on last edited by
      #2

      If you want your dialog to stay on top all the time, check out SetWindowPos()[^], and pass &this->wndTopMost to the function.

      D 1 Reply Last reply
      0
      • H hxhl95

        If you want your dialog to stay on top all the time, check out SetWindowPos()[^], and pass &this->wndTopMost to the function.

        D Offline
        D Offline
        daavena
        wrote on last edited by
        #3

        Thanks for reply, my dialog must be at the bottom of the Z order. I have dialog with text and the bg of the dialog is transparent.So it looks like the text is written directly on the desktop(but it isn't). The problem is when I hit win. key+D so the dialog is minimized. I know, it can be done using of windows hooks. I want to avoid of that(if it's possible).

        _ 1 Reply Last reply
        0
        • D daavena

          Hello gentlemen, Is there any option to disable/prevent window minimizing when I press window key(between Ctrl and Alt) + D? I have one dialog without tile with transparent backgroud, I don't use MFC. I am capturing these windows messages case WM_WINDOWPOSCHANGING: return true; break; case WM_WINDOWPOSCHANGED: return true; break; case WM_SIZE: if(wParam == SIZE_MINIMIZED) { return true; } break; Thank you.

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

          daavena wrote:

          I am capturing these windows messages

          Have you verified with Spy++ that you are handling the correct message(s)?

          "Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

          "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

          D 1 Reply Last reply
          0
          • D daavena

            Thanks for reply, my dialog must be at the bottom of the Z order. I have dialog with text and the bg of the dialog is transparent.So it looks like the text is written directly on the desktop(but it isn't). The problem is when I hit win. key+D so the dialog is minimized. I know, it can be done using of windows hooks. I want to avoid of that(if it's possible).

            _ Offline
            _ Offline
            _Superman_
            wrote on last edited by
            #5

            Win+D does not mean minimize. It means show desktop. Win+M is minimize.

            «_Superman_» I love work. It gives me something to do between weekends.

            1 Reply Last reply
            0
            • D David Crow

              daavena wrote:

              I am capturing these windows messages

              Have you verified with Spy++ that you are handling the correct message(s)?

              "Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

              "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

              D Offline
              D Offline
              daavena
              wrote on last edited by
              #6

              I use spy++, but when I hit win+D there is no message for my dialog(nothing about minimizing). _Superman_ wrote Win+D does not mean minimize. It means show desktop. maybe that is the reason why I can not capture the proper message.

              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