Help Center

CButton.GetNoteLengthmethod

Gets the length of the note text that may be displayed in the description for a command link.

WindowsmethodCButton.incdocumented

Syntax

FUNCTION GetNoteLength (BYVAL hButton AS HWND) AS LONG

Return value

Returns the length of the note text in Unicode characters, not including any terminating NULL, or zero if there is no note text.

Description

Gets the length of the note text that may be displayed in the description for a command link.

Example

DIM cbNote AS LONG = CButton.GetNoteLength(hButton)

Reference

  • Include file CButton.inc
  • Defined in AfxNova/CButton.inc:548
  • Documented in Windows/WIndows Controls/CButton Class.md
  • Topic: CButton Class