Help Center

CComboEx.GetEditSelmethod

Gets the starting and ending character positions of the current selection in the edit control of a combo box.

WindowsmethodCCombo.incdoc-orphan
No implementation located. This member is documented, but the source scan found no matching declaration. It is likely declared in a header this scan does not resolve, or provided by a macro.

Syntax

FUNCTION GetEditSel (BYVAL hCombo AS HWND, BYVAL pdwStart AS DWORD PTR, BYVAL pdwEnd AS DWORD PTR)
FUNCTION GetEditSel (BYVAL hCombo AS HWND, BYREF dwStart AS DWORD, BYREF dwEnd AS DWORD)

Parameters

NameDescription
hComboThe handle of the combo box control.
pdwStartA pointer to a DWORD value that receives the starting position of the selection. This parameter can be NULL.
pdwEndA pointer to a DWORD value that receives the ending position of the selection. This parameter can be NULL.
dwStartA DWORD variable that receives the starting position of the selection.
dwEndA DWORD variable that receives the ending position of the selection.

Return value

The return value is a zero-based DWORD value with the starting position of the selection in the LOWORD and with the ending position of the first character after the last selected character in the HIWORD.

Description

Gets the starting and ending character positions of the current selection in the edit control of a combo box.

Example

DIM dwStart AS DWORD, dwEnd AS DWORD CCombo.GetEditSel(hCombo, @dwStart, @dwEnd) CCombo.GetEditSel(hCombo, dwStart, dwEnd)

Reference

  • Include file CCombo.inc
  • Documented in Windows/WIndows Controls/CCombo Class.md
  • Topic: CCombo Class