Print Page | Close Window

Little bug in context-help of DockingPanes

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=4472
Printed Date: 02 May 2024 at 11:07am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Little bug in context-help of DockingPanes
Posted By: akur
Subject: Little bug in context-help of DockingPanes
Date Posted: 23 June 2006 at 6:01am
Hello,

just to make XTP Docking Panes better and better Embarrassed:
In version 10.1 of XtremeToolkitPro, there's a strange implementation of the method CXTPDockingPaneTabbedContainer::OnHelpHitTest().

LRESULT CXTPDockingPaneTabbedContainer::OnHelpHitTest(WPARAM, LPARAM lParam)
{
    CXTPDockingPane* pPane = GetSelected();
    CPoint point((DWORD)lParam);

    int nHit = HitTest(point);

    if (nHit >= 0)
    {
        pPane = GetItemPane(nHit);
    }

    if (!pPane)
        return 0;

    int nIDHelp = pPane->m_nIDHelp;

    if (nIDHelp == 0)
    {
        pPane->m_hwndChild ? (int)::GetDlgCtrlID(pPane->m_hwndChild): 0;
    }

    if (nIDHelp == 0)
    {
        nIDHelp = pPane->GetID();
    }

    return HID_BASE_RESOURCE + nIDHelp;
}

I guess an assignment to nIDHelp is missing at the beginning of the line. Is this right, or did you mean something else with that line?




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