Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Little bug in context-help of DockingPanes
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Little bug in context-help of DockingPanes

 Post Reply Post Reply
Author
Message
akur View Drop Down
Senior Member
Senior Member


Joined: 16 May 2006
Status: Offline
Points: 139
Post Options Post Options   Thanks (0) Thanks(0)   Quote akur Quote  Post ReplyReply Direct Link To This Post Topic: Little bug in context-help of DockingPanes
    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?

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.188 seconds.