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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. show exe at task bar after minimize

show exe at task bar after minimize

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

    In dialog box application i remove system menu(close,minimize and maximize buttons and title bar) from dialog.Add my own button for minimize. And write code for button click SENDmESSAGE(ws_minimize,0,0). After clicking on button dialog hides from desktop but does not appear on task bar. How to show the exe icon at task bar. Since title bar is removed how to drag the dialog if i have any label at top top of dialog.

    J A 2 Replies Last reply
    0
    • M MKC002

      In dialog box application i remove system menu(close,minimize and maximize buttons and title bar) from dialog.Add my own button for minimize. And write code for button click SENDmESSAGE(ws_minimize,0,0). After clicking on button dialog hides from desktop but does not appear on task bar. How to show the exe icon at task bar. Since title bar is removed how to drag the dialog if i have any label at top top of dialog.

      J Offline
      J Offline
      jk chan
      wrote on last edited by
      #2

      i didn't understand fully ur question,anyway check out the WM_NCHITTEST message.you can make ur windows client area as a titlebar easily with this. hopes this helps

      If u can Dream... U can do it

      M 1 Reply Last reply
      0
      • M MKC002

        In dialog box application i remove system menu(close,minimize and maximize buttons and title bar) from dialog.Add my own button for minimize. And write code for button click SENDmESSAGE(ws_minimize,0,0). After clicking on button dialog hides from desktop but does not appear on task bar. How to show the exe icon at task bar. Since title bar is removed how to drag the dialog if i have any label at top top of dialog.

        A Offline
        A Offline
        aritosteles
        wrote on last edited by
        #3

        If you removed the title bar and want to move your window, you will have to do it when you get a WM_MOUSEMOVE message if the mouse button is pressed. The procedure goes something like this: When you get a WM_LBUTTONDOWN message you save the mouse cursor position. When you get a WM_MOUSEMOVE you calculate how much the cursor has moved and move the window accordingly. When you get a WM_LBUTTONUP you do the cleanup. Hope this helps. Aritosteles

        1 Reply Last reply
        0
        • J jk chan

          i didn't understand fully ur question,anyway check out the WM_NCHITTEST message.you can make ur windows client area as a titlebar easily with this. hopes this helps

          If u can Dream... U can do it

          M Offline
          M Offline
          MKC002
          wrote on last edited by
          #4

          Thanks NCHITTEST works fine. About the first problem let me explain. I create a dialog base application. on first dialog there is a button. When i click on that button, i display second dialog and hide first dialog. When second dialog display and i minimize it, the exe does not display at task bar. Can i do something to display exe at task bar for that case?

          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