Get previous item in outline

WEBINAR:
On-Demand

Application Security Testing: An Integral Part of DevOps



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
  • You must have javascript enabled in order to post comments.

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

Top White Papers and Webcasts

  • CEOs, CIOs, boards and shareholders are demanding digital transformation. They want their organizations to be more customer-focused, competitive and strategic to increase revenue. Data drives all of those aspects. A great first step in optimizing data use is moving data to the cloud. It can quickly show benefits. Here are six aspects of a cloud data management strategy that will help your organization more fully move, manage and use valuable data to successfully support digital transformation.

  • Mobility is reaching an inflection point in enterprise. Smart enterprises are moving away from tactical point solutions for mobile device management, looking instead for a secure, comprehensive, unified, and future-proof mobile-app platform. Enterprise applications are now at the heart of mobile productivity, data is shared outside the enterprise walls, and the data itself may reside on multiple devices and clouds. Read this guide to learn how a unified endpoint management (UEM) solution is critical to …

Most Popular Programming Stories

More for Developers

RSS Feeds

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