BKM QUERYPAGECOUNT
Appearance
This message queries the number of pages.
Syntax
param1 ULONG ulPageId; /* Page ID or 0. */ param2 USHORT usQueryEnd; /* Query end attribute. */
Parameters
- ulPageId (ULONG) - Input
- Page identifier from which to start the query, or 0. If this parameter is set to 0, the query begins with the first page.
- usQueryEnd (USHORT) - Input
- Attribute that ends the page count query:
- BKA_MAJOR: Query the number of pages between the page ID specified in the ulPageId parameter and the next page that has the BKA_MAJOR attribute. The page that has the BKA_MAJOR attribute is not included in the page count.
- BKA_MINOR: Query the number of pages between the page ID specified in the ulPageId parameter and the next page that has the BKA_MINOR attribute. The page that has the BKA_MINOR attribute is not included in the page count.
- BKA_END: Query the number of pages between the page ID specified in the ulPageId parameter and the last page. When this attribute is specified, the page count includes the last page plus the notebook's back cover.
Returns
- pageCount (SHORT) - returns
- Number of pages in the notebook:
- BOOKERR_INVALID_PARAMETERS: An invalid page ID was specified for the ulPageId parameter.
- Other: Number of pages for the specified range. If the notebook is empty or no pages are found in the range, this value is 0.
Default Processing
The default window procedure does not expect to receive this message and therefore takes no action on it other than to return 0.