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. pop up message

pop up message

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpquestion
4 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.
  • A Offline
    A Offline
    ask_you
    wrote on last edited by
    #1

    how do i create a pop up message near the right hand corner of the task bar. by pop up message i mean that the box displaying the message should come up on its own as well as disappear on its own. also i want to implement it without using MFC kindly help

    F 1 Reply Last reply
    0
    • A ask_you

      how do i create a pop up message near the right hand corner of the task bar. by pop up message i mean that the box displaying the message should come up on its own as well as disappear on its own. also i want to implement it without using MFC kindly help

      F Offline
      F Offline
      Flit
      wrote on last edited by
      #2

      One way of doing this would be to create a window using CreateWindow then at the appropriate times use ShowWindow or SetWindowPos to show or hide the window. If you want it positioned in the lower right corner of the screen you'll need to know how big the screen area is, use SystemParametersInfo with the SPI_GETWORKAREA flag to get that. You'll also need to know how big your window is GetWindowRect will tell you that. Then use that information with SetWindowPos to position the window where you want it. Don't forget that the taskbar isn't always at the bottom of the screen. You could also try using a Dialog window. Have a look at the relevant pages in MSDN and that should get you started. Good luck.

      A 1 Reply Last reply
      0
      • F Flit

        One way of doing this would be to create a window using CreateWindow then at the appropriate times use ShowWindow or SetWindowPos to show or hide the window. If you want it positioned in the lower right corner of the screen you'll need to know how big the screen area is, use SystemParametersInfo with the SPI_GETWORKAREA flag to get that. You'll also need to know how big your window is GetWindowRect will tell you that. Then use that information with SetWindowPos to position the window where you want it. Don't forget that the taskbar isn't always at the bottom of the screen. You could also try using a Dialog window. Have a look at the relevant pages in MSDN and that should get you started. Good luck.

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

        i tried to create a pop up window using CreateWindow. But how do i create a buttons on that window? CAn u help

        F 1 Reply Last reply
        0
        • A ask_you

          i tried to create a pop up window using CreateWindow. But how do i create a buttons on that window? CAn u help

          F Offline
          F Offline
          Flit
          wrote on last edited by
          #4

          You can use CreateWindowEx to create buttons.

          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