Dialog box hangs help me
-
: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:
-
: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:
Try setting ooyur AciveX as parent for the dialog.. Maybe that will help.
propertyBox box(this);
-
Try setting ooyur AciveX as parent for the dialog.. Maybe that will help.
propertyBox box(this);
i tried it but it hangs when i touch the title bar :sigh::omg::wtf:
-
i tried it but it hangs when i touch the title bar :sigh::omg::wtf:
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()
-
: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:
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!
-
: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: