Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Problem with Task Panel and Dialog
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Problem with Task Panel and Dialog

 Post Reply Post Reply
Author
Message
Denbuerg View Drop Down
Newbie
Newbie


Joined: 14 March 2006
Location: Germany
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote Denbuerg Quote  Post ReplyReply Direct Link To This Post Topic: Problem with Task Panel and Dialog
    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;
                ...


Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 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
Back to Top
Denbuerg View Drop Down
Newbie
Newbie


Joined: 14 March 2006
Location: Germany
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote Denbuerg Quote  Post ReplyReply Direct Link To This Post Posted: 02 May 2006 at 12:07pm
You are right. XTP_TPN_FOCUSEDITEMCHANGED caused this problem. Now its gone. Thx!
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.078 seconds.