Tech Support > Microsoft Windows > Development Resources > CB_GETCOMBOBOXINFO is undefined, but why?
CB_GETCOMBOBOXINFO is undefined, but why?
Posted by pete on September 23rd, 2007


Hi folks --

Under VS2005, I'm trying to use CB_GETCOMBOBOXINFO (
http://msdn2.microsoft.com/en-us/library/ms673150.aspx ) but it comes
up undefined. I see this in WinUser.h:


#if(_WIN32_WINNT >= 0x0501)
#define CB_GETCOMBOBOXINFO 0x0164
#endif /* _WIN32_WINNT >= 0x0501 */

Anybody have any idea why I'm seeing this compile error and how I can
get around it?

Thanks!

-- Pete Wilson

Posted by Kellie Fitton on September 23rd, 2007


On Sep 23, 8:43 am, pete <pete...@yahoo.com> wrote:

Hi,

The Windows message CB_GETCOMBOBOXINFO requires Windows XP
as a minimum operating system, you can use the following API to
retrieve
the same information:

GetComboBoxInfo()

http://msdn2.microsoft.com/en-us/library/ms673326.aspx

Kellie.



Posted by Klueless on September 23rd, 2007


"pete" <pete142@yahoo.com> wrote in message news:1190562199.944370.213470@r29g2000hsg.googlegr oups.com...
One solution would be to put

#define _WIN32_WINNT 0x0501

near the start of your StdAfx.h header file. See
<http://msdn2.microsoft.com/en-us/library/Aa383745.aspx>



Posted by pete on September 24th, 2007


On Sep 23, 2:23 pm, Kellie Fitton <KELLIEFIT...@YAHOO.COM> wrote:
Thank you, Kellie. That works great.


Posted by pete on September 25th, 2007


On Sep 23, 4:15 pm, "Klueless" <kluel...@worldnet.att.net> wrote:
And thank you, K. That works great, too.




Similar Posts