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. Context Menu

Context Menu

Scheduled Pinned Locked Moved C / C++ / MFC
6 Posts 4 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.
  • V Offline
    V Offline
    VVVimal
    wrote on last edited by
    #1

    Hi The project i am working currently draws collection of bitmaps in to screen. In the client area in some point it display a context menu on the screen. But once the popup menu is dropped and disappear , it taking more time to redraw the bitmaps. It happens only to context menu portion.Also if it runs for 24 hours the delay is increasing.l Thanks in advance.

    CPalliniC S P 3 Replies Last reply
    0
    • V VVVimal

      Hi The project i am working currently draws collection of bitmaps in to screen. In the client area in some point it display a context menu on the screen. But once the popup menu is dropped and disappear , it taking more time to redraw the bitmaps. It happens only to context menu portion.Also if it runs for 24 hours the delay is increasing.l Thanks in advance.

      CPalliniC Offline
      CPalliniC Offline
      CPallini
      wrote on last edited by
      #2

      You should post the relevant (drawing) code, I guess... :)

      If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
      This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
      [My articles]

      In testa che avete, signor di Ceprano?

      1 Reply Last reply
      0
      • V VVVimal

        Hi The project i am working currently draws collection of bitmaps in to screen. In the client area in some point it display a context menu on the screen. But once the popup menu is dropped and disappear , it taking more time to redraw the bitmaps. It happens only to context menu portion.Also if it runs for 24 hours the delay is increasing.l Thanks in advance.

        S Offline
        S Offline
        Stephen Hewitt
        wrote on last edited by
        #3

        I'm not exactly sure what you're asking. Are you saying that when the context menu is dismissed it takes your application a long time to redraw the area that was obscured by the menu?

        Steve

        V 1 Reply Last reply
        0
        • S Stephen Hewitt

          I'm not exactly sure what you're asking. Are you saying that when the context menu is dismissed it takes your application a long time to redraw the area that was obscured by the menu?

          Steve

          V Offline
          V Offline
          VVVimal
          wrote on last edited by
          #4

          Exactly. But the other portions are ok.

          S 1 Reply Last reply
          0
          • V VVVimal

            Hi The project i am working currently draws collection of bitmaps in to screen. In the client area in some point it display a context menu on the screen. But once the popup menu is dropped and disappear , it taking more time to redraw the bitmaps. It happens only to context menu portion.Also if it runs for 24 hours the delay is increasing.l Thanks in advance.

            P Offline
            P Offline
            Parthiban
            wrote on last edited by
            #5

            How r u drawing the bitmaps? Call the InvalidateRect() function when the pop-up menu is exiting. Post us code for more clarity

            1 Reply Last reply
            0
            • V VVVimal

              Exactly. But the other portions are ok.

              S Offline
              S Offline
              Stephen Hewitt
              wrote on last edited by
              #6

              I assume you're drawing in your WM_PAINT[^] handler?

              Steve

              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