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. Dialog box hangs help me

Dialog box hangs help me

Scheduled Pinned Locked Moved C / C++ / MFC
comhelpquestion
6 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.
  • A Offline
    A Offline
    Anand for every one
    wrote on last edited by
    #1

    :omg: I display a dialog box when double clicking in my ActiveX control. It works fine. But When try to move the dialog box by pressing on the title bar it hangs. Why ? Anyone can help me? this is the code where setProperty just passes an object address. in the dialog box class i have a pointer to that. it just asign to that. void CImgAnnCtrl::OnLButtonDblClk(UINT nFlags, CPoint point) { propertyBox box; box.SetProperty(&m_TmpProperties); if(box.DoModal()==IDOK) { /// just some calculations } } :omg:

    B S 3 Replies Last reply
    0
    • A Anand for every one

      :omg: I display a dialog box when double clicking in my ActiveX control. It works fine. But When try to move the dialog box by pressing on the title bar it hangs. Why ? Anyone can help me? this is the code where setProperty just passes an object address. in the dialog box class i have a pointer to that. it just asign to that. void CImgAnnCtrl::OnLButtonDblClk(UINT nFlags, CPoint point) { propertyBox box; box.SetProperty(&m_TmpProperties); if(box.DoModal()==IDOK) { /// just some calculations } } :omg:

      B Offline
      B Offline
      Blake Miller
      wrote on last edited by
      #2

      Try setting ooyur AciveX as parent for the dialog.. Maybe that will help. propertyBox box(this);

      A 1 Reply Last reply
      0
      • B Blake Miller

        Try setting ooyur AciveX as parent for the dialog.. Maybe that will help. propertyBox box(this);

        A Offline
        A Offline
        Anand for every one
        wrote on last edited by
        #3

        i tried it but it hangs when i touch the title bar :sigh::omg::wtf:

        B 1 Reply Last reply
        0
        • A Anand for every one

          i tried it but it hangs when i touch the title bar :sigh::omg::wtf:

          B Offline
          B Offline
          Blake Miller
          wrote on last edited by
          #4

          The only thing I can think to try, without seeing if the dialog box is doing something strange, is to change changing the parent of the dialog box. You can try the parent of the ActiveX control: this->GetParent() and if that does not work, try the desktop window GetDesktopWindow()

          1 Reply Last reply
          0
          • A Anand for every one

            :omg: I display a dialog box when double clicking in my ActiveX control. It works fine. But When try to move the dialog box by pressing on the title bar it hangs. Why ? Anyone can help me? this is the code where setProperty just passes an object address. in the dialog box class i have a pointer to that. it just asign to that. void CImgAnnCtrl::OnLButtonDblClk(UINT nFlags, CPoint point) { propertyBox box; box.SetProperty(&m_TmpProperties); if(box.DoModal()==IDOK) { /// just some calculations } } :omg:

            S Offline
            S Offline
            sps itsec46
            wrote on last edited by
            #5

            Did you find a solution for this problem. I have the exact same behavior here. Everything works fine until I want to drag the window around. Then the dialog freezes and only keyboard navigation is possible. I would really appreciate some hints! Regards, mykel If they give you lined paper, write the other way!

            1 Reply Last reply
            0
            • A Anand for every one

              :omg: I display a dialog box when double clicking in my ActiveX control. It works fine. But When try to move the dialog box by pressing on the title bar it hangs. Why ? Anyone can help me? this is the code where setProperty just passes an object address. in the dialog box class i have a pointer to that. it just asign to that. void CImgAnnCtrl::OnLButtonDblClk(UINT nFlags, CPoint point) { propertyBox box; box.SetProperty(&m_TmpProperties); if(box.DoModal()==IDOK) { /// just some calculations } } :omg:

              S Offline
              S Offline
              sps itsec46
              wrote on last edited by
              #6

              for all lost souls check this[^] thread. regards, mykel If they give you lined paper, write the other way!

              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