Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » CExtTreeGridWnd::ItemExpand() - scroll bars sometimes drawn incorrectly Collapse All
Subject Author Date
Alastair Watts Jul 17, 2012 - 3:32 AM

The following code sometimes draws the scroll bar when the content does not exceed the window. Then when moving the mouse pointer over the scroll bar the area under the mouse is drawn correctly, leaving a partially drawn scroll bar!


bool CNavCtrl::OnGbwAnalyzeCellMouseClickEvent(UINT nChar,UINT nRepCnt, UINT nFlags, CPoint point)
{
    bool bRet = CExtTreeGridWnd::OnGbwAnalyzeCellMouseClickEvent(nChar, nRepCnt, nFlags, point);

    CExtGridHitTestInfo htInfo(point);
    HitTest(htInfo, false, true);
    if(htInfo.m_dwAreaFlags & __EGBWA_INNER_CELLS)
    {
        if(nChar == VK_LBUTTON)
        {
            if(htInfo.m_nRowNo)
            {
                HTREEITEM hti = ItemGetByVisibleRowIndex(htInfo.m_nRowNo);
                if(ItemGetParent(hti) == ItemGetRoot())
                {
                    ItemExpand(hti);
                    return true;
                }
            }
        }
    }

return bRet;
}

Alastair Watts Aug 15, 2012 - 4:49 AM

Still waiting ...

Alastair Watts Aug 9, 2012 - 12:17 AM

Any news?

Alastair Watts Jul 30, 2012 - 9:24 AM

Just got back from Paris ... test project now sent.

Technical Support Jul 20, 2012 - 4:23 AM

Still didn’t receive any e-mail from you.

Alastair Watts Jul 17, 2012 - 3:14 PM

I’ve tried that and it doesn’t fix it ... I’ll send a sample project.

Technical Support Jul 17, 2012 - 1:42 PM

The code snippet in your message didn’t help us to reproduce the problem. You can invoke OnSwUpdateScrollBars(); before return true; to fix this problem.