PGN_CALCSIZE notification code

Sent by a pager control to obtain the scrollable dimensions of the contained window. These dimensions are used by the pager control to determine the scrollable size of the contained window. This notification code is sent in the form of a WM_NOTIFY message.


    lpnmcs = (LPNMPGCALCSIZE) lParam;



Pointer to an NMPGCALCSIZE structure that contains and receives information about the notification code. The dwFlag member of this structure indicates which dimension is being calculated. Depending on the value of dwFlag, you should place the desired dimension in the iWidth or iHeight member of this structure.

Return value

The return value is ignored.


Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]