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 Set Position where a Window will be minimised

How to Set Position where a Window will be minimised

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
5 Posts 2 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
    SoftwareDeveloperGoa
    wrote on last edited by
    #1

    Hello Friends When a window is minimised, it goes to taskbar at the location where the tray icon is there. So if icon is towards right, the window is minimised to the right. I remember there was a function with some name like setwindowanimation, but seems i am missing something. anybody has got an idea of how to do that? Regards

    E 1 Reply Last reply
    0
    • S SoftwareDeveloperGoa

      Hello Friends When a window is minimised, it goes to taskbar at the location where the tray icon is there. So if icon is towards right, the window is minimised to the right. I remember there was a function with some name like setwindowanimation, but seems i am missing something. anybody has got an idea of how to do that? Regards

      E Offline
      E Offline
      Emilio Garavaglia
      wrote on last edited by
      #2

      SoftwareDeveloperGoa wrote:

      When a window is minimised, it goes to taskbar at the location where the tray icon is there.

      Not the "tray icon": the corresponding taskbar button. Tray icons are other things.

      SoftwareDeveloperGoa wrote:

      So if icon is towards right, the window is minimised to the right.

      Yes, but ... what are you trying to achieve? Are you trying to change the task button relative positions? The question is not clear.

      2 bugs found. > recompile ... 65534 bugs found. :doh:

      S 1 Reply Last reply
      0
      • E Emilio Garavaglia

        SoftwareDeveloperGoa wrote:

        When a window is minimised, it goes to taskbar at the location where the tray icon is there.

        Not the "tray icon": the corresponding taskbar button. Tray icons are other things.

        SoftwareDeveloperGoa wrote:

        So if icon is towards right, the window is minimised to the right.

        Yes, but ... what are you trying to achieve? Are you trying to change the task button relative positions? The question is not clear.

        2 bugs found. > recompile ... 65534 bugs found. :doh:

        S Offline
        S Offline
        SoftwareDeveloperGoa
        wrote on last edited by
        #3

        yes you are correct, it is taskbar yeah i want a window to minimize to a specific location, irrespective of where it's taskbar icon is present. it is all about that animation thing that windows displays for every window relative to taskbar icon's position

        E 1 Reply Last reply
        0
        • S SoftwareDeveloperGoa

          yes you are correct, it is taskbar yeah i want a window to minimize to a specific location, irrespective of where it's taskbar icon is present. it is all about that animation thing that windows displays for every window relative to taskbar icon's position

          E Offline
          E Offline
          Emilio Garavaglia
          wrote on last edited by
          #4

          AnimateWindow is documented here[^]. But the animation the system uses to manage the top windows depends on the system settings and theme, not on the code of your app.

          2 bugs found. > recompile ... 65534 bugs found. :doh:

          S 1 Reply Last reply
          0
          • E Emilio Garavaglia

            AnimateWindow is documented here[^]. But the animation the system uses to manage the top windows depends on the system settings and theme, not on the code of your app.

            2 bugs found. > recompile ... 65534 bugs found. :doh:

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

            yeah thanks, i found a cp article for that but it seems that it work on xp only and window minimizing animation is different. Using the DrawAnimatedRects() function[^]

            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