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 detect mouse click on application taskbar button???

How to detect mouse click on application taskbar button???

Scheduled Pinned Locked Moved C / C++ / MFC
questiontutorial
7 Posts 3 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.
  • T Offline
    T Offline
    tarunclassic
    wrote on last edited by
    #1

    Hi All, I am working on a borderless window frame. Can anyone tell me how can i detect the left and right mouse click on the application taskbar button so that i can minimize,maximize the window and can show the command menu???? Tarun Sharma.

    R 1 Reply Last reply
    0
    • T tarunclassic

      Hi All, I am working on a borderless window frame. Can anyone tell me how can i detect the left and right mouse click on the application taskbar button so that i can minimize,maximize the window and can show the command menu???? Tarun Sharma.

      R Offline
      R Offline
      Rajesh R Subramanian
      wrote on last edited by
      #2

      Why remove the frame window and do extra work to mimic the frame window behavior? I'm baffled. Please explain.

      Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche .·´¯`·->Rajesh<-·´¯`·. [Microsoft MVP - Visual C++]

      T 1 Reply Last reply
      0
      • R Rajesh R Subramanian

        Why remove the frame window and do extra work to mimic the frame window behavior? I'm baffled. Please explain.

        Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche .·´¯`·->Rajesh<-·´¯`·. [Microsoft MVP - Visual C++]

        T Offline
        T Offline
        tarunclassic
        wrote on last edited by
        #3

        Well i investers don't want the default windows look on the main window,so i removed the border and created my own,where i am showing minimize,maximize and close button and handling all the mouse click events in these buttons. But when i click on taskbar button it doesn't minimize the apllication.

        O 1 Reply Last reply
        0
        • T tarunclassic

          Well i investers don't want the default windows look on the main window,so i removed the border and created my own,where i am showing minimize,maximize and close button and handling all the mouse click events in these buttons. But when i click on taskbar button it doesn't minimize the apllication.

          O Offline
          O Offline
          only_jack
          wrote on last edited by
          #4

          apply these styles to your window these will enable sys menu on taskbar button and will enable minimize & maximize selections on menu

          WS_SYSMENU|WS_MINIMIZEBOX|WS_MAXIMIZEBOX

          T 1 Reply Last reply
          0
          • O only_jack

            apply these styles to your window these will enable sys menu on taskbar button and will enable minimize & maximize selections on menu

            WS_SYSMENU|WS_MINIMIZEBOX|WS_MAXIMIZEBOX

            T Offline
            T Offline
            tarunclassic
            wrote on last edited by
            #5

            Well all these three styles are applicable only to windows which have title bar and my window doesn't have any titlebar.

            T 1 Reply Last reply
            0
            • T tarunclassic

              Well all these three styles are applicable only to windows which have title bar and my window doesn't have any titlebar.

              T Offline
              T Offline
              tarunclassic
              wrote on last edited by
              #6

              Hi, Sorry Only_jack....I again tried using these style and it worked. But now my window dosen't resize ?????? In my window i was handling all four side resizing and moving by testing NcHitTest. moving is working but resizing is not at all working!!! I don't get any clue about this. Can you give some idea about this. Tarun Sharma.

              O 1 Reply Last reply
              0
              • T tarunclassic

                Hi, Sorry Only_jack....I again tried using these style and it worked. But now my window dosen't resize ?????? In my window i was handling all four side resizing and moving by testing NcHitTest. moving is working but resizing is not at all working!!! I don't get any clue about this. Can you give some idea about this. Tarun Sharma.

                O Offline
                O Offline
                only_jack
                wrote on last edited by
                #7

                this style may add a resize border to your window

                WS_THICKFRAME

                also check this[^] link for all window styles

                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