Jump to content

GRIDINFO: Difference between revisions

From EDM2
Created page with "This structure is used by CM_QUERYGRIDINFO and CM_SETGRIDINFO messages to query and set grid characteristics. These characteristics are used with the grid arrange options or when the view is CV_GRID. == Type == struct == C Declaration Method == typedef == Example Code == <pre> typedef struct _GRIDINFO { ULONG cb; Length of the GRIDINFO structure in bytes.: ULONG cxGrid; Grid square width.: ULONG cyGrid..."
 
(No difference)

Latest revision as of 23:28, 20 April 2025

This structure is used by CM_QUERYGRIDINFO and CM_SETGRIDINFO messages to query and set grid characteristics. These characteristics are used with the grid arrange options or when the view is CV_GRID.

Type

struct

C Declaration Method

typedef

Example Code


typedef struct _GRIDINFO {
  ULONG           cb;            /*  Length of the GRIDINFO structure in bytes. */
  ULONG           cxGrid;        /*  Grid square width. */
  ULONG           cyGrid;        /*  Grid square height. */
  SHORT           sGridRows;     /*  Number of rows in the grid. */
  SHORT           sGridCols;     /*  Number of columns in the grid. */
  ULONG           cGridSquares;  /*  Number of available grid squares. */
  PGRIDSQUARE     pGrid;         /*  Pointer to array of GRIDSQUARE structures. */
} GRIDINFO;

typedef   GRIDINFO   * PGRIDINFO ;