Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CDialog inside a CXTPPopupControl
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CDialog inside a CXTPPopupControl

 Post Reply Post Reply
Author
Message Reverse Sort Order
andolo View Drop Down
Groupie
Groupie
Avatar

Joined: 16 November 2005
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote andolo Quote  Post ReplyReply Direct Link To This Post Topic: CDialog inside a CXTPPopupControl
    Posted: 17 March 2006 at 2:20am
What is the best way to avoid that the popupctrl collapses when mousecursor is over CXTPPopupItemDialog?

thanks
Back to Top
quick View Drop Down
Newbie
Newbie


Joined: 17 February 2005
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote quick Quote  Post ReplyReply Direct Link To This Post Posted: 16 May 2005 at 9:08am
Thanks for the help!
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 13 May 2005 at 3:16pm

You can override item:

class CXTPPopupItemDialog : public CXTPPopupItem
{
public:
CXTPPopupItemDialog(LPRECT rcItem = NULL)
: CXTPPopupItem(rcItem)
{

}

void Draw(CDC* pDC)
{
if (!m_pControl->GetSafeHwnd())
return;

if (m_wndDialog.GetSafeHwnd() == 0)
{
m_wndDialog.Create(CChildDIalog::IDD, m_pControl);
}


m_wndDialog.MoveWindow(m_rcItem);
m_wndDialog.ShowWindow(SW_SHOWNOACTIVATE);
}

CChildDIalog m_wndDialog;

};


....

CXTPPopupItem* pItemDialog =m_wndPopupControl.AddItem(new CXTPPopupItemDialog(CRect(10, 10, 270, 141)));

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
quick View Drop Down
Newbie
Newbie


Joined: 17 February 2005
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote quick Quote  Post ReplyReply Direct Link To This Post Posted: 13 May 2005 at 10:41am
Has there been any update on this?
Back to Top
skura View Drop Down
Newbie
Newbie


Joined: 11 January 2005
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote skura Quote  Post ReplyReply Direct Link To This Post Posted: 16 February 2005 at 9:14am

Is it possible to have a CDialog inside a CXTPPopupControl? How can I add CDialog based resource using CXTPPopupControl::AddItem()?

I am trying to launch a dialog with the animation effect available in CXTPPopupControl. Any pointers on how I can achieve this? If possible please provide me a sample.

Thanks in advance.

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.