Messages of grid control
[GridView control]

Defines


Define Documentation

#define GRIDM_ADDCOLUMN   0xF218

An Application sends a GRIDM_ADDCOLUMN message to add a new column to the control.

if (wParam > nCols) , it will do nothing. nCols is the columns' count of the grid control.

 GRIDM_ADDCOLUMN
 int index;
 GRIDCELLDATA* celldata;
 
 wParam = (WPARAM)index; // The index of the column which you want to add after it, zero base.
 lParam = (LPARAM)celldata; // The property which is setted to the new column. 
Returns:
Returns GRID_OKAY if successful, or GRID_ERR otherwise.

Definition at line 452 of file gridview.h.

#define GRIDM_ADDDEPENDENCE   0xF21F

Adds a dependence relationship of cells to another cells.

An application sends an GRIDM_ADDDEPENDENCE message to add a dependence relationship of cells to another source cells, when the source cells changed, the target cells could updated automatically.

 GRIDCELLDEPENDENCE* dependence

 GRIDM_ADDDEPENDENCE

 wParam = 0;
 lParam = (WPARAM)dependence;  // Dependence relationship for adding.
Returns:
Returns a dependence id if successful, or GRID_ERR otherwise.

Definition at line 584 of file gridview.h.

#define GRIDM_ADDROW   0xF216

An Application sends a GRIDM_ADDROW message to add a new row to the control.

if (wParam > nRows) , it will do nothing. nRows is the rows' count of the grid control.

 GRIDM_ADDROW
 int index;
 GRIDCELLDATA* celldata;
 
 wParam = (WPARAM)index; // The index of the row which you want to add after it, zero base.
 lParam = (LPARAM)celldata; // The property which is setted to the new row. 
Returns:
Returns GRID_OKAY if successful, or GRID_ERR otherwise.

Definition at line 414 of file gridview.h.

#define GRIDM_DELCOLUMN   0xF219

An Application sends a GRIDM_DELCOLUMN message to delete a column frow the control.

if (wParam < 1 or wParam > nCols) , it will do nothing. nCols is the columns' count of the grid control.

 GRIDM_DELCOLUMN
 int index;

 wParam = 0;
 lParam = (LPARAM)index; // The index of the column which you want to delete.
Returns:
Returns GRID_OKAY if successful, or GRID_ERR otherwise.

Definition at line 470 of file gridview.h.

#define GRIDM_DELDEPENDENCE   0xF220

Deletes a dependence relationship of cells to another cells.

An application sends an GRIDM_DELDEPENDENCE message to delete a dependence relationship of cells to another source cells.

 int dependence_id

 GRIDM_ADDDEPENDENCE

 wParam = (WPARAM)dependence_id;
 lParam = 0.
Returns:
Returns GRID_OKAY, or GRID_ERR otherwise.

Definition at line 604 of file gridview.h.

#define GRIDM_DELROW   0xF217

An Application sends a GRIDM_DELROW message to delete a row frow the control.

if (wParam < 1 or wParam > nRows) , it will do nothing. nRows is the rows' count of the grid control.

 GRIDM_DELROW
 int index;

 wParam = 0; 
 lParam = index; // The index of the row which you want to delete.
Returns:
Returns GRID_OKAY if successful, or GRID_ERR otherwise.

Definition at line 433 of file gridview.h.

#define GRIDM_ENDCELLEDIT   0xF221

This message is used inside minigui.

Definition at line 611 of file gridview.h.

#define GRIDM_GETCELLPROPERTY   0xF211

An Application sends a GRIDM_GETCELLPROPERTY message to get a single cell's property in the grid control.

 GRIDM_GETCELLPROPERTY
 GRIDCELLS* cells;
 GRIDCELLDATA* celldata;

 wParam = (WPARAM)cell; // The cell(only for one cell now) which you want to get it's property
 lParam = (LPARAM)celldata; // The pointer of the property you want to get. 
Returns:
Returns GRID_OKAY if successful, or GRID_ERR otherwise.
See also:
GRIDCELLDATA

Definition at line 316 of file gridview.h.

#define GRIDM_GETCOLCOUNT   0xF21B

Gets the number of all columns in the grid control.

An application sends an GRIDM_GETCOLCOUNT message to get the number of all columns in the grid control.

 GRIDM_GETCOLCOUNT

 wParam = 0;
 lParam = 0;
Returns:
The cols number on success, otherwise -1.

Definition at line 502 of file gridview.h.

#define GRIDM_GETCOLWIDTH   0xF213

An Application sends a GRIDM_GETCOLWIDTH message to get a column width in the grid control.

if (lParam < 1 or lParam > nCols) , it will do nothing. nCows is the columns' count of the grid control.

 GRIDM_GETCOLWIDTH
 int index;

 wParam = 0; 
 lParam = (LPARAM)index; // The index of the column which you want to get width.
Returns:
The width of the column on success, otherwise -1.

Definition at line 355 of file gridview.h.

#define GRIDM_GETROWCOUNT   0xF21A

Gets the number of all rows in the grid control.

An application sends an GRIDM_GETROWCOUNT message to get the number of all rows in the grid control.

 GRIDM_GETROWCOUNT

 wParam = 0;
 lParam = 0;
Returns:
The rows number on success, otherwise -1.

Definition at line 486 of file gridview.h.

#define GRIDM_GETROWHEIGHT   0xF215

An Application sends a GRIDM_GETROWHEIGHT message to get a row height in the grid control.

if (lParam < 1 or lParam > nRows) , it will do nothing. nRows is the rows' count of the grid control.

 GRIDM_GETROWHEIGHT
 int index ;

 wParam = 0 
 lParam = (LPARAM)index // The index of the row which you want to get height.
Returns:
The height of the row on success, otherwise -1.

Definition at line 394 of file gridview.h.

#define GRIDM_GETSELECTED   0xF21E

Gets the selected cell(s) in the grid control.

An application sends an GRIDM_GETSELECTED message to get the selected cell(s) in the grid control.

 GRIDCELLS* cells

 GRIDM_GETSELECTED

 wParam = 0;
 lParam = (WPARAM)cells;  // Get the selected cell(s) to it.
Returns:
Returns GRID_OKAY if successful, or GRID_ERR otherwise.

Definition at line 563 of file gridview.h.

#define GRIDM_SETCELLPROPERTY   0xF210

An Application sends a GRIDM_SETCELLPROPERTY message to set the cells' property in the grid control.

 GRIDM_SETCELLPROPERTY
 GRIDCELLS* cells;
 GRIDCELLDATA* celldata;

 wParam = (WPARAM)cells; // The cell(s) which you want to set it's(their) property
 lParam = (LPARAM)celldata; // The pointer of the property you want to set. 
Returns:
Returns GRID_OKAY if successful, or GRID_ERR otherwise.
See also:
GRIDCELLDATA

Definition at line 296 of file gridview.h.

#define GRIDM_SETCOLWIDTH   0xF212

An Application sends a GRIDM_SETCOLWIDTH message to set column width in the grid control.

if (lParam < 1 or lParam > nCols) , it will do nothing. nCows is the columns' count of the grid control.

 GRIDM_SETCOLWIDTH
 int index;
 int width;

 wParam = (WPARAM)index; // The index of the column which you want to set width.
 lParam = (LPARAM)width; // The width of the column you want to set. 
Returns:
Returns GRID_OKAY if successful, or GRID_ERR otherwise.

Definition at line 336 of file gridview.h.

#define GRIDM_SETNUMFORMAT   0xF21C

Sets the number format of a cell in the grid control. the format is just same as format in c printf.

An application sends an GRIDM_SETNUMFORMAT message to set the number format of a cell in the grid control.

 GRIDCELLS cells;
 char* format 

 GRIDM_SETNUMFORMAT

 wParam = (WPARAM)cells; // The cells which you want to set.
 lParam = (WPARAM)format; // The cells' number format, like "%1.2f";
Returns:
Returns GRID_OKAY if successful, or GRID_ERR otherwise.

Definition at line 523 of file gridview.h.

#define GRIDM_SETROWHEIGHT   0xF214

An Application sends a GRIDM_SETROWHEIGHT message to set a row height in the grid control.

if (lParam < 1 or lParam > nRows) , it will do nothing. nRows is the rows' count of the grid control.

 GRIDM_SETROWHEIGHT
 int index 
 int height;

 wParam = (WPARAM)index; // The index of the row which you want to set height.
 lParam = (LPARAM)height; //The height of the row you want to set. 
Returns:
Returns GRID_OKAY if successful, or GRID_ERR otherwise.

Definition at line 375 of file gridview.h.

#define GRIDM_SETSELECTED   0xF21D

Sets the selected cell(s) in the grid control.

An application sends an GRIDM_SETSELECTED message to set the selected cell(s) in the grid control.

 GRIDCELLS* cells

 GRIDM_SETSELECTED

 wParam = 0;
 lParam = (WPARAM)cells; // The cell(s) which you want to set selected.
Returns:
Returns GRID_OKAY if successful, or GRID_ERR otherwise.

Definition at line 543 of file gridview.h.

Generated on Thu Apr 7 16:01:45 2011 for MiniGUI V3.0.12 API Reference by  doxygen 1.6.3