Print Page | Close Window

CDialog inside a CXTPPopupControl

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=1788
Printed Date: 24 April 2024 at 9:37am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CDialog inside a CXTPPopupControl
Posted By: skura
Subject: CDialog inside a CXTPPopupControl
Date 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.




Replies:
Posted By: quick
Date Posted: 13 May 2005 at 10:41am
Has there been any update on this?


Posted By: Oleg
Date 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


Posted By: quick
Date Posted: 16 May 2005 at 9:08am
Thanks for the help!


Posted By: andolo
Date Posted: 17 March 2006 at 2:20am
What is the best way to avoid that the popupctrl collapses when mousecursor is over CXTPPopupItemDialog?

thanks



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net