Print Page | Close Window

Problem with Task Panel and Dialog

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=4107
Printed Date: 10 November 2025 at 10:20am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Problem with Task Panel and Dialog
Posted By: Denbuerg
Subject: Problem with Task Panel and Dialog
Date Posted: 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;
                ...





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


Posted By: Denbuerg
Date Posted: 02 May 2006 at 12:07pm
You are right. XTP_TPN_FOCUSEDITEMCHANGED caused this problem. Now its gone. Thx!



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