Print Page | Close Window

Some question about TabbedView_vc60

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


Topic: Some question about TabbedView_vc60
Posted By: LiXunhuan
Subject: Some question about TabbedView_vc60
Date Posted: 15 May 2005 at 10:44pm

In the sample project TabbedView_vc60, I have some question about

the following code:

void CTabbedViewView::OnTimer(UINT nIDEvent)
{
    if (m_nIDEvent == nIDEvent)
    {
        CPoint point;
        ::GetCursorPos(&point);
        ScreenToClient(&point);

        if (m_point == point)
        {
             CTabCtrl& tabCtrl = GetTabCtrl();

             CRect rcItem;
             int iItem;
            for (iItem = 0; iItem < tabCtrl.GetItemCount(); ++iItem )
             {
                 tabCtrl.GetItemRect(iItem, &rcItem);

                 if (rcItem.PtInRect(m_point) && tabCtrl.GetCurSel() != iItem)
                 {
                     SetActiveView(iItem);
                     break;
                 }
             }
        }
       
        KillTimer(m_nIDEvent);
    }
    else
    {
        CXTTabView::OnTimer(nIDEvent);
    }
}

void CTabbedViewView::OnMouseMove(UINT nFlags, CPoint point)
{
 CXTTabView::OnMouseMove(nFlags, point);

    m_point = point;
    SetTimer(m_nIDEvent, 2500, NULL);   
}

 

I try to debug it , but i really can not find the case the condition

" if (m_point == point) " to be true. I don't understand what the function

of code in this branch is . Can someone help me ,Thank U !




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