0 out of 1 rated this helpful - Rate this topic

ComboBox_GetText macro

Retrieves the text from a combo box control.

Syntax


int ComboBox_GetText(
  HWND hwndCtl,
  LPTSTR lpch,
  int cchMax
);

Parameters

hwndCtl

Type: HWND

A handle to the control.

lpch

Type: LPTSTR

A pointer to the buffer that will receive the text.

cchMax

Type: int

The maximum number of characters to copy to the buffer, including the NULL terminator.

Return value

The length, in characters, of the copied string, not including the terminating NULL character.

Remarks

The macro expands to a call to GetWindowText.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Windowsx.h

 

 

Send comments about this topic to Microsoft

Build date: 10/27/2012

Community Additions

ADD
© 2013 Microsoft. All rights reserved.