Spread 8.0 Documentation
SSGetButtonDrawMode, SSSetButtonDrawMode Functions
Support Options
DLL Reference > DLL Functions > SSGetButtonDrawMode, SSSetButtonDrawMode Functions

Glossary Item Box

SSGetButtonDrawMode, SSSetButtonDrawMode Functions


See Also    ActiveX

Applies To

fpSpread DLL control

Description

Set or return whether to display buttons in button and combo box cells.

Syntax

C

WORD SSGetButtonDrawMode(HWND hWnd);

WORD SSSetButtonDrawMode(HWND hWnd, WORD wMode);

C++

WORD TSpread::GetButtonDrawMode(void);

WORD TSpread::SetButtonDrawMode(WORD wMode);

Parameters

The SSGetButtonDrawMode function has the following parameter:

Parameter Description
hWnd Window handle of the fpSpread control

The SSSetButtonDrawMode function has the following parameters:

Parameter Description
hWnd Window handle of the fpSpread control
wMode Button display mode
Combine any of the following values with the (|) OR operator:
Constant Description
SS_BDM_ALWAYS Always displays buttons
SS_BDM_CURRENTCELL Displays buttons only in current cell
SS_BDM_CURRENTCOL Displays buttons only in current column
SS_BDM_CURRENTROW Displays buttons only in current row
SS_BDM_ALWAYSBUTTON Always displays buttons for button cells
SS_BDM_ALWAYSCOMBO Always displays buttons for combo box cells

Remarks

This function is applied to the entire workbook, including all sheets in the control.

A cell can display a button all the time or only when the cursor is on the current column, row, or cell.

When the SSSetOperationMode function wMode parameter is SS_OPMODE_ROWMODE, the SSSetButtonDrawMode function is ignored. While the highlight bar is visible, no buttons are drawn. While the row is being edited, all the buttons in the current row are drawn.

Return Value

SSGetButtonDrawMode: Current button display mode.
SSSetButtonDrawMode: Previous button display mode.

For either function, the return value can be any combination of the values listed for the SSSetButtonDrawMode wMode parameter.

See Also

Specifying When Buttons Appear

SSSetOperationMode function

ActiveX Correspondence

ButtonDrawMode property

Copyright © GrapeCity, inc. All rights reserved.