Fix building with wxUSE_POPUP==0
This commit is contained in:
@@ -2392,6 +2392,17 @@
|
|||||||
# endif
|
# endif
|
||||||
#endif /* wxUSE_RICHTEXT */
|
#endif /* wxUSE_RICHTEXT */
|
||||||
|
|
||||||
|
#if wxUSE_RICHTOOLTIP
|
||||||
|
# if !wxUSE_POPUPWIN
|
||||||
|
# ifdef wxABORT_ON_CONFIG_ERROR
|
||||||
|
# error "wxRichToolTip requires wxUSE_POPUPWIN"
|
||||||
|
# else
|
||||||
|
# undef wxUSE_POPUPWIN
|
||||||
|
# define wxUSE_POPUPWIN 1
|
||||||
|
# endif
|
||||||
|
# endif
|
||||||
|
#endif /* wxUSE_RICHTOOLTIP */
|
||||||
|
|
||||||
#if wxUSE_PROPGRID
|
#if wxUSE_PROPGRID
|
||||||
# if !wxUSE_VARIANT
|
# if !wxUSE_VARIANT
|
||||||
# ifdef wxABORT_ON_CONFIG_ERROR
|
# ifdef wxABORT_ON_CONFIG_ERROR
|
||||||
|
@@ -3696,6 +3696,7 @@ wxWindowMSW::MSWHandleMessage(WXLRESULT *result,
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
#if wxUSE_POPUPWIN
|
||||||
case WM_NCACTIVATE:
|
case WM_NCACTIVATE:
|
||||||
// When we're losing activation to our own popup window, we want to
|
// When we're losing activation to our own popup window, we want to
|
||||||
// retain the "active" appearance of the title bar, as dropping
|
// retain the "active" appearance of the title bar, as dropping
|
||||||
@@ -3712,6 +3713,7 @@ wxWindowMSW::MSWHandleMessage(WXLRESULT *result,
|
|||||||
processed = true;
|
processed = true;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
|
|
||||||
#if wxUSE_UXTHEME
|
#if wxUSE_UXTHEME
|
||||||
// If we want the default themed border then we need to draw it ourselves
|
// If we want the default themed border then we need to draw it ourselves
|
||||||
|
@@ -2161,7 +2161,7 @@ PRectangle Window::GetMonitorRect(Point pt) {
|
|||||||
#ifdef __WXMSW__
|
#ifdef __WXMSW__
|
||||||
|
|
||||||
// Use ShowWithoutActivating instead of show.
|
// Use ShowWithoutActivating instead of show.
|
||||||
bool wxSTCPopupBase::Show(bool show) wxOVERRIDE
|
bool wxSTCPopupBase::Show(bool show)
|
||||||
{
|
{
|
||||||
if ( show )
|
if ( show )
|
||||||
{
|
{
|
||||||
@@ -2179,7 +2179,7 @@ PRectangle Window::GetMonitorRect(Point pt) {
|
|||||||
|
|
||||||
// Do not activate in response to mouse clicks on this window.
|
// Do not activate in response to mouse clicks on this window.
|
||||||
bool wxSTCPopupBase::MSWHandleMessage(WXLRESULT *res, WXUINT msg,
|
bool wxSTCPopupBase::MSWHandleMessage(WXLRESULT *res, WXUINT msg,
|
||||||
WXWPARAM wParam, WXLPARAM lParam) wxOVERRIDE
|
WXWPARAM wParam, WXLPARAM lParam)
|
||||||
{
|
{
|
||||||
if ( msg == WM_MOUSEACTIVATE )
|
if ( msg == WM_MOUSEACTIVATE )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user