Compilation fixes for VC6 after MSWGetComboBoxInfo() introduction.
Don't use COMBOBOXINFO outside of WINVER checks, we can only use tagCOMBOBOXINFO that we forward declared ourselves. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72980 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -377,9 +377,13 @@ bool wxComboBox::MSWShouldPreProcessMessage(WXMSG *pMsg)
|
||||
|
||||
WXHWND wxComboBox::GetEditHWNDIfAvailable() const
|
||||
{
|
||||
// FIXME-VC6: Only VC6 needs this guard, see WINVER definition in
|
||||
// include/wx/msw/wrapwin.h
|
||||
#if defined(WINVER) && WINVER >= 0x0500
|
||||
WinStruct<COMBOBOXINFO> info;
|
||||
if ( MSWGetComboBoxInfo(&info) )
|
||||
return info.hwndItem;
|
||||
#endif // WINVER >= 0x0500
|
||||
|
||||
if (HasFlag(wxCB_SIMPLE))
|
||||
{
|
||||
|
Reference in New Issue
Block a user