LbGetVisibleCount Macro

Microchip Graphics Library

Microchip Graphics Library
LbGetVisibleCount Macro
C
#define LbGetVisibleCount(pLb) \
        (                                                                                                    \
            (((LISTBOX *)pLb)->hdr.bottom - ((LISTBOX *)pLb)->hdr.top - 2 * (GOL_EMBOSS_SIZE + LB_INDENT)) / \
                ((LISTBOX *)pLb)->textHeight                                                                 \
        )
Overview

This macro returns the number of items visible in the list box window.

Input Parameters
Input Parameters 
Description 
pLb 
The pointer to the list box object. 
Returns

The number of items visible in the list box window.

Preconditions

none

Side Effects

none

Microchip Graphics Library Version 3.06.02 - October 15, 2012
Copyright © 2012 Microchip Technology, Inc.  All rights reserved