Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

COMPPOS structure

Holds information about a component's position and size.

Syntax


typedef struct _tagCOMPPOS {
  DWORD dwSize;
  int   iLeft;
  int   iTop;
  DWORD dwWidth;
  DWORD dwHeight;
  int   izIndex;
  BOOL  fCanResize;
  BOOL  fCanResizeX;
  BOOL  fCanResizeY;
  int   iPreferredLeftPercent;
  int   iPreferredTopPercent;
} COMPPOS, *LPCOMPPOS;

Members

dwSize

Type: DWORD

The size of the structure.

iLeft

Type: int

The left edge of the top-left corner in screen coordinates. Set to COMPONENT_DEFAULT_LEFT to let the Shell decide the position.

iTop

Type: int

The top of the top-left corner in screen coordinates. Set to COMPONENT_DEFAULT_TOP to let the Shell decide the position.

dwWidth

Type: DWORD

The width, in pixels.

dwHeight

Type: DWORD

The height, in pixels.

izIndex

Type: int

The z-order of the component.

fCanResize

Type: BOOL

Set to TRUE if the component is resizable, FALSE if not.

fCanResizeX

Type: BOOL

Set to TRUE if the component is resizable in the x direction, FALSE if not.

fCanResizeY

Type: BOOL

Set to TRUE if the component is resizable in the y direction, FALSE if not.

iPreferredLeftPercent

Type: int

The left edge of the upper-left corner as a percentage of screen width.

iPreferredTopPercent

Type: int

The top of the upper-left corner as a percentage of screen width.

Requirements

Minimum supported client

Windows 2000 Professional, Windows XP [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Shlobj.h

 

 

Community Additions

ADD
Show:
© 2015 Microsoft