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. help needed

help needed

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorialquestion
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.
  • L Offline
    L Offline
    Laffis
    wrote on last edited by
    #1

    I have this new little app which is an SDI with a splitter window. Anyway, when user right-click a treectrl, a floating menu appears and if user clicks one of it, a modal dialog box appears. Now the problem is that the dialog box seems to freeze, ie. no button/editBox etc respond to mouse. If user clicks on any point outside the window (eg. another application), then comes back to this window, this dialog box becomes 'live' again. I think it may be something to do with hotspot?? anyone knows how to solve this problem??? please...:(

    M 1 Reply Last reply
    0
    • L Laffis

      I have this new little app which is an SDI with a splitter window. Anyway, when user right-click a treectrl, a floating menu appears and if user clicks one of it, a modal dialog box appears. Now the problem is that the dialog box seems to freeze, ie. no button/editBox etc respond to mouse. If user clicks on any point outside the window (eg. another application), then comes back to this window, this dialog box becomes 'live' again. I think it may be something to do with hotspot?? anyone knows how to solve this problem??? please...:(

      M Offline
      M Offline
      MailtoGops
      wrote on last edited by
      #2

      I think, you are doing the following --> Click the POP up menu, --> IT fires the event, in the event handler you are creating the Dialog Window. Before create the modal dialog, delete the pop up menu and create dialog " Action without vision is only passing time, Vision without action is merely day dreaming, But vision with action can change the world " - Words from Nelson Mandela Thanks & Regards, Gopalakrishnan

      D L 2 Replies Last reply
      0
      • M MailtoGops

        I think, you are doing the following --> Click the POP up menu, --> IT fires the event, in the event handler you are creating the Dialog Window. Before create the modal dialog, delete the pop up menu and create dialog " Action without vision is only passing time, Vision without action is merely day dreaming, But vision with action can change the world " - Words from Nelson Mandela Thanks & Regards, Gopalakrishnan

        D Offline
        D Offline
        David Crow
        wrote on last edited by
        #3

        MailtoGops wrote: Before create the modal dialog, delete the pop up menu... With MFC, this is handled automatically. One simply needs to call TrackPopupMenu().


        "One must learn from the bite of the fire to leave it alone." - Native American Proverb

        1 Reply Last reply
        0
        • M MailtoGops

          I think, you are doing the following --> Click the POP up menu, --> IT fires the event, in the event handler you are creating the Dialog Window. Before create the modal dialog, delete the pop up menu and create dialog " Action without vision is only passing time, Vision without action is merely day dreaming, But vision with action can change the world " - Words from Nelson Mandela Thanks & Regards, Gopalakrishnan

          L Offline
          L Offline
          Laffis
          wrote on last edited by
          #4

          Yes the dlg window is created when clicking the pop up menu. I have no problem with cleaning up the pop menu as it is a local variable, see the code below: { .......... CMenu zooMenu; zooMenu.LoadMenu( IDR_MENU1 ); CMenu* pPopup = zooMenu.GetSubMenu( 0 ); pPopup->TrackPopupMenu( TPM_LEFTALIGN|TPM_RIGHTBUTTON, point.x, point.y, this ); } It must be because something else. any other idea?:^)

          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