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. Minimizing Windows

Minimizing Windows

Scheduled Pinned Locked Moved C / C++ / MFC
linuxquestion
6 Posts 5 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.
  • J Offline
    J Offline
    john5632
    wrote on last edited by
    #1

    Hi, I tried to minimize the application using below code:

    HWND lHwnd = FindWindow("Shell_TrayWnd",NULL);
    SendMessage(lHwnd,WM_COMMAND,MIN_ALL,0);

    I am confused with, Will it work with other language OS because I used hard code "Shell_TrayWnd"?

    H D J 3 Replies Last reply
    0
    • J john5632

      Hi, I tried to minimize the application using below code:

      HWND lHwnd = FindWindow("Shell_TrayWnd",NULL);
      SendMessage(lHwnd,WM_COMMAND,MIN_ALL,0);

      I am confused with, Will it work with other language OS because I used hard code "Shell_TrayWnd"?

      H Offline
      H Offline
      Hans Dietrich
      wrote on last edited by
      #2

      What do you mean by "other language OS"? Unix? Mac? Or do you mean other language, like C#?

      Best wishes, Hans


      [Hans Dietrich Software]

      N J 2 Replies Last reply
      0
      • H Hans Dietrich

        What do you mean by "other language OS"? Unix? Mac? Or do you mean other language, like C#?

        Best wishes, Hans


        [Hans Dietrich Software]

        N Offline
        N Offline
        nitin3
        wrote on last edited by
        #3

        I'm not sure but i think "language" he mentioned might be "other regional settings"... :^)

        1 Reply Last reply
        0
        • J john5632

          Hi, I tried to minimize the application using below code:

          HWND lHwnd = FindWindow("Shell_TrayWnd",NULL);
          SendMessage(lHwnd,WM_COMMAND,MIN_ALL,0);

          I am confused with, Will it work with other language OS because I used hard code "Shell_TrayWnd"?

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

          Are you trying to minimize the taskbar?

          "One man's wage rise is another man's price increase." - Harold Wilson

          "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

          "Some people are making such thorough preparation for rainy days that they aren't enjoying today's sunshine." - William Feather

          1 Reply Last reply
          0
          • H Hans Dietrich

            What do you mean by "other language OS"? Unix? Mac? Or do you mean other language, like C#?

            Best wishes, Hans


            [Hans Dietrich Software]

            J Offline
            J Offline
            john5632
            wrote on last edited by
            #5

            It means Os ig other langauge like German, Italian, Fernch, Chinees etc

            1 Reply Last reply
            0
            • J john5632

              Hi, I tried to minimize the application using below code:

              HWND lHwnd = FindWindow("Shell_TrayWnd",NULL);
              SendMessage(lHwnd,WM_COMMAND,MIN_ALL,0);

              I am confused with, Will it work with other language OS because I used hard code "Shell_TrayWnd"?

              J Offline
              J Offline
              Jose David Pujo
              wrote on last edited by
              #6

              I have Windows 7 x64 in Spanish and the line: HWND lHwnd = FindWindow("Shell_TrayWnd",NULL); In my computer returns: lHwnd=0x0002008c {unused=0 } Hope it helps.

              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