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. Taskbar Button don't have the correct status

Taskbar Button don't have the correct status

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
3 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.
  • M Offline
    M Offline
    mamtz
    wrote on last edited by
    #1

    Hi My program suppose to be sometimes hidden. when the user wants to show it, its button in the taskbar does not have the correct status. that means that if the program was first maximized (before hiding it) it is being shown maximized too but the minimize button (on the window corner) does not work and right click on its taskbar button shows only the maximize button. Here is the code when hiding the window: //saving the window placement ::GetWindowPlacement(hWnd,&sWndPlt); ::ShowWindow(hWnd,SW_HIDE); And here is the code when Showing the window: ::SetWindowPlacement(hWnd,&sWndPlt); ::ShowWindow(hWnd,SW_SHOW); ::UpdateWindow(hWnd); ::SetForegroundWindow(hWnd); ::SetActiveWindow(hWnd); Is there a way to solve this problem? Thanks a lot mamtz

    T 1 Reply Last reply
    0
    • M mamtz

      Hi My program suppose to be sometimes hidden. when the user wants to show it, its button in the taskbar does not have the correct status. that means that if the program was first maximized (before hiding it) it is being shown maximized too but the minimize button (on the window corner) does not work and right click on its taskbar button shows only the maximize button. Here is the code when hiding the window: //saving the window placement ::GetWindowPlacement(hWnd,&sWndPlt); ::ShowWindow(hWnd,SW_HIDE); And here is the code when Showing the window: ::SetWindowPlacement(hWnd,&sWndPlt); ::ShowWindow(hWnd,SW_SHOW); ::UpdateWindow(hWnd); ::SetForegroundWindow(hWnd); ::SetActiveWindow(hWnd); Is there a way to solve this problem? Thanks a lot mamtz

      T Offline
      T Offline
      Trucker
      wrote on last edited by
      #2

      Is your MinimizeBox property of your form set to False? TraileR ParK LifE 4Ever >:{

      M 1 Reply Last reply
      0
      • T Trucker

        Is your MinimizeBox property of your form set to False? TraileR ParK LifE 4Ever >:{

        M Offline
        M Offline
        mamtz
        wrote on last edited by
        #3

        :zzz: I forgot to mention that actually i have 2 programes. The first is always hidden and the second suppose to be sometimes hidden and sometimes not. The first one register the hot keys and is the one which hidding the second one. The first program has no maximize/minimize/system menu. The second program has these buttons and they are enabled. Does it make things different? :wtf:

        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