Прочетете на английски Редактиране

Споделяне чрез


NMPGCALCSIZE structure (commctrl.h)

Contains and receives information that the pager control uses to calculate the scrollable area of the contained window. It is used with the PGN_CALCSIZE notification.

Syntax

C++
typedef struct {
  NMHDR hdr;
  DWORD dwFlag;
  int   iWidth;
  int   iHeight;
} NMPGCALCSIZE, *LPNMPGCALCSIZE;

Members

hdr

Type: NMHDR

NMHDR structure that contains information about the notification.

dwFlag

Type: DWORD

Value that indicates which dimension is being requested. This will be one of the following values:

Value Meaning
PGF_CALCHEIGHT
The height of the scrollable area is being requested. The height must be placed in the iHeight member before returning from the notification.
PGF_CALCWIDTH
The width of the scrollable area is being requested. The width must be placed in the iWidth member before returning from the notification.

iWidth

Type: int

Receives the desired width of the scrollable area, in pixels.

iHeight

Type: int

Receives the desired height of the scrollable area, in pixels.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Header commctrl.h