Get previous item in outline

WEBINAR:
On-Demand

Full Text Search: The Key to Better Natural Language Queries for NoSQL in Node.js



In the previous section, we defined an overloaded version of GetNextItem() which returns the next item in the outline as if the outline were completely expanded. We now define its counterpart: GetPrevItem(). This function uses the GetLastItem() defined in an earlier section.
 
// GetNextItem  - Get previous item as if outline was completely expanded
// Returns              - The item immediately above the reference item
// hItem                - The reference item
HTREEITEM CTreeCtrlX::GetPrevItem( HTREEITEM hItem )
{
        HTREEITEM       hti;

        hti = GetPrevSiblingItem(hItem);
        if( hti == NULL )
                hti = GetParentItem(hItem);
        else
                hti = GetLastItem(hti);
        return hti;
}



Comments

  • GetLastItem() ???

    Posted by Legacy on 03/27/2000 12:00am

    Originally posted by: SARRAT

    Where can i found the code of the GetLastItem() function please ?

    Reply
Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • Customers have come to prefer solving their issues & answering their own questions. Customers only seek direct interactions when they unsuccessfully exhaust their self-service options. Build an all-in-one knowledge base, community, and customer portal. Learn how with Zendesk Guide.

  • IBM Cloud Object Storage is a compelling alternative to on-premises archive storage and enables higher agility not previously achievable.

Most Popular Programming Stories

More for Developers

RSS Feeds

Thanks for your registration, follow us on our social networks to keep up-to-date