SS_BEFOREEDITMODE Structure
Applies To
fpSpread control
Definition
typedef struct ss_beforeeditmode
{
SS_COORD Col;
SS_COORD Row;
WORD wUserAction;
WORD wCursorPos;
BOOL fCancel;
} SS_BEFOREEDITMODE, FAR *LPSS_BEFOREEDITMODE;
Fields
The following fields are available:
Field | Description | |
---|---|---|
Col | Column of cell changing edit mode | |
Row | Row of cell changing edit mode | |
wUserAction | User action that initiated edit mode Can be set to one of the following values: |
|
Value | Description | |
0 | Keyboard action is changing edit mode | |
Constant: SS_BEM_KEYBOARD | ||
1 | Mouse action is changing edit mode | |
Constant: SS_BEM_MOUSE | ||
2 | Code is changing edit mode | |
Constant: SS_BEM_CODE | ||
wCursorPos | Position in which cursor will be Can be set to one of the following values: |
|
Value | Description | |
0 | Cursor goes to default position | |
Constant: SS_BEM_CURSORPOS_DEFAULT | ||
1 | Edit mode change selects all contents | |
Constant: SS_BEM_CURSORPOS_SELECTALL | ||
2 | Edit mode change moves cursor to beginning of contents | |
Constant: SS_BEM_CURSORPOS_BEGINNING | ||
3 | Edit mode change moves cursor to end of contents | |
Constant: SS_BEM_CURSORPOS_END | ||
4 | Edit mode change moves cursor to pointer position | |
Constant: SS_BEM_CURSORPOS_MOUSE | ||
5 | Edit mode change moves cursor to decimal portion of contents | |
Constant: SS_BEM_CURSORPOS_DECIMAL | ||
fCancel | Set to TRUE to cancel edit mode change |
Remarks
This structure is used with the SSM_BEFOREEDITMODE message.
See Also
SSM_BEFOREEDITMODE message