Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Some question about TabbedView_vc60
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Some question about TabbedView_vc60

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


Joined: 06 April 2005
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote LiXunhuan Quote  Post ReplyReply Direct Link To This Post Topic: Some question about TabbedView_vc60
    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 !

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