DLL
To provide a cell note for a cell
-
Call the SSSetTextTip function.
- Set the wStatus parameter to a value other than 0 (SS_TT_STATUS_OFF) to display cell notes.
-
If you want to customize the cell note appearance, set the lpLogFont, clrBack, and clrFore parameters as appropriate.
Note: The SSSetTextTip function customizes the appearance of both text tips and cell notes. However, you can use the SSSetTextTip function in the SSIsFetchCellNote function in response to the SSM_TEXTTIPFETCH message to specify a different appearance for cell notes and text tips.
-
Set the Value parameter of the SSSetCellNoteIndicator function as follows:
- If you want to display the cell note indicator and to send the SSM_TEXTTIPFETCH message, set the Value parameter to 0 (SS_CELLNOTEINDICATOR_SHOWANDFIREEVENT).
- If you want to display the cell note indicator and to not send the SSM_TEXTTIPFETCH message, set the Value parameter to 1 (SS_CELLNOTEINDICATOR_SHOWANDDONOTFIREEVENT).
- If you want to hide the cell note indicator and to send the SSM_TEXTTIPFETCH message, set the Value parameter to 2 (SS_CELLNOTEINDICATOR_DONOTSHOWANDFIREEVENT).
- If you want to hide the cell note indicator and to not send the SSM_TEXTTIPFETCH message, set the Value parameter to 3 (SS_CELLNOTEINDICATOR_DONOTSHOWANDDONOTFIREEVENT).
- Call the SSSetCellNote or SSSetCellNoteRange function to specify the text to display in the cell note.