Home > Windows API > To retrieve ComboBox information!

To retrieve ComboBox information!

We know that a combobox is a combination of different controls. Well now the question is there an API to get ample information on these controls nested in a combo?  The answer is yes, use GetComboBoxInfo.

Takes a COMBOBOXINFO pointer as parameter and on return will hold necessary information…

Usage:

COMBOBOXINFO CmbInfo = { 0 };
CmbInfo.cbSize = sizeof( CmbInfo );
VERIFY( GetComboBoxInfo( hWndComboHandle, &CmbInfo ));

As a result of this call CmbInfo is going to contain the list control handle, edit control handle and other information pertaining to a combo box.

An equivalent combobox message exists CB_GETCOMBOBOXINFO.

Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: