![]() |
Problem with Task Panel and Dialog |
Post Reply
|
| Author | |
Denbuerg
Newbie
Joined: 14 March 2006 Location: Germany Status: Offline Points: 12 |
Post Options
Thanks(0)
Quote Reply
Topic: Problem with Task Panel and DialogPosted: 02 May 2006 at 9:05am |
|
Hi,
when I start a modal dialog by selecting a task panel item I have a problem when I close the dialog. Everything, except the task panel, does not respond to the first mouse klick. e.g. I have to click on the menu twice to get a reaction. If I start the same dialog from the menu, not from the task panel, I don't have that problem. Does anyone has an idea what the problem might be? If it helps, here my code that starts the dialog: LRESULT CMainFrame::OnTaskPanelNotify(WPARAM wParam, LPARAM lParam) { CXTPTaskPanelItem* pItem; CUserPropertiesDlg UserPropDlg; if (wParam == XTP_TPN_FOCUSEDITEMCHANGED || wParam == XTP_TPN_CLICK) { pItem = m_wndTaskPanel.GetFocusedItem(); if (pItem != NULL) { UINT iItemID = pItem->GetID(); switch (iItemID) { case ID_TASKITEM_EDITUSER: CUserPropertiesDlg UserPropDlg; INT_PTR iRet = UserPropDlg.DoModal(); ... break; ... |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 02 May 2006 at 11:56am |
|
Hello, are you sure you need "wParam == XTP_TPN_FOCUSEDITEMCHANGED ||" part? Seems it cause the problem. Try to remove it. |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Denbuerg
Newbie
Joined: 14 March 2006 Location: Germany Status: Offline Points: 12 |
Post Options
Thanks(0)
Quote Reply
Posted: 02 May 2006 at 12:07pm |
|
You are right. XTP_TPN_FOCUSEDITEMCHANGED caused this problem. Now its gone. Thx!
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |