git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27134 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -101,6 +101,8 @@ protected:
|
|||||||
int width, int height,
|
int width, int height,
|
||||||
int sizeFlags = wxSIZE_AUTO);
|
int sizeFlags = wxSIZE_AUTO);
|
||||||
|
|
||||||
|
virtual bool MSWShouldPreProcessMessage(WXMSG *pMsg);
|
||||||
|
|
||||||
virtual WXDWORD MSWGetStyle(long style, WXDWORD *exstyle) const;
|
virtual WXDWORD MSWGetStyle(long style, WXDWORD *exstyle) const;
|
||||||
|
|
||||||
// update the height of the drop down list to fit the number of items we
|
// update the height of the drop down list to fit the number of items we
|
||||||
|
@@ -175,6 +175,22 @@ bool wxChoice::Create(wxWindow *parent,
|
|||||||
style, validator, name);
|
style, validator, name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool wxChoice::MSWShouldPreProcessMessage(WXMSG *pMsg)
|
||||||
|
{
|
||||||
|
MSG *msg = (MSG *) pMsg;
|
||||||
|
|
||||||
|
// don't preprocess "ESC" if combobox is dropped down
|
||||||
|
if ( msg->message == WM_KEYDOWN && msg->wParam == VK_ESCAPE )
|
||||||
|
{
|
||||||
|
if (::SendMessage(GetHwndOf(this), CB_GETDROPPEDSTATE, 0, 0))
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return wxControl::MSWShouldPreProcessMessage(pMsg);
|
||||||
|
}
|
||||||
|
|
||||||
WXDWORD wxChoice::MSWGetStyle(long style, WXDWORD *exstyle) const
|
WXDWORD wxChoice::MSWGetStyle(long style, WXDWORD *exstyle) const
|
||||||
{
|
{
|
||||||
// we never have an external border
|
// we never have an external border
|
||||||
|
Reference in New Issue
Block a user