Merge the changes from 3.0 branch.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75178 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -133,6 +133,9 @@ protected:
|
||||
|
||||
virtual wxSize DoGetSizeFromTextSize(int xlen, int ylen = -1) const;
|
||||
|
||||
// Override this one to avoid eating events from our popup listbox.
|
||||
virtual wxWindow *MSWFindItem(long id, WXHWND hWnd) const;
|
||||
|
||||
// this is the implementation of GetEditHWND() which can also be used when
|
||||
// we don't have the edit control, it simply returns NULL then
|
||||
//
|
||||
|
@@ -121,6 +121,9 @@ protected:
|
||||
// one
|
||||
virtual WXHBRUSH DoMSWControlColor(WXHDC pDC, wxColour colBg, WXHWND hWnd);
|
||||
|
||||
// Look in our GetSubcontrols() for the windows with the given ID.
|
||||
virtual wxWindow *MSWFindItem(long id, WXHWND hWnd) const;
|
||||
|
||||
// for controls like radiobuttons which are really composite this array
|
||||
// holds the ids (not HWNDs!) of the sub controls
|
||||
wxArrayLong m_subControls;
|
||||
|
@@ -37,7 +37,12 @@
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#ifndef _CRTBLD
|
||||
|
||||
// Defining _CRTBLD should never be necessary at all, but keep it for now
|
||||
// as there is no time to retest all the compilers before 3.0 release.
|
||||
// Definitely do not use it with MSVS 2013 as defining it results in errors
|
||||
// if the standard <assert.h> is included afterwards.
|
||||
#if !defined(_CRTBLD) && !wxCHECK_VISUALC_VERSION(12)
|
||||
// Needed when building with pure MS SDK
|
||||
#define _CRTBLD
|
||||
#endif
|
||||
|
@@ -116,13 +116,13 @@ public:
|
||||
void SetLCID(WXLCID lcid);
|
||||
|
||||
// Returns the flags used for conversions between wxVariant and OLE
|
||||
// VARIANT, see wxConvertVariantToOleFlags. The default value is
|
||||
// VARIANT, see wxOleConvertVariantFlags. The default value is
|
||||
// wxOleConvertVariant_Default but all the objects obtained by GetObject()
|
||||
// inherit the flags from the one that created them.
|
||||
long GetConvertVariantFlags() const;
|
||||
|
||||
// Sets the flags used for conversions between wxVariant and OLE VARIANT,
|
||||
// see wxConvertVariantToOleFlags (default is wxOleConvertVariant_Default.
|
||||
// see wxOleConvertVariantFlags (default is wxOleConvertVariant_Default.
|
||||
void SetConvertVariantFlags(long flags);
|
||||
|
||||
public: // public for compatibility only, don't use m_dispatchPtr directly.
|
||||
|
@@ -206,7 +206,7 @@ public:
|
||||
// to understand why does it work, look at SubclassWin() code and comments
|
||||
bool IsOfStandardClass() const { return m_oldWndProc != NULL; }
|
||||
|
||||
wxWindow *FindItem(long id) const;
|
||||
wxWindow *FindItem(long id, WXHWND hWnd = NULL) const;
|
||||
wxWindow *FindItemByHWND(WXHWND hWnd, bool controlOnly = false) const;
|
||||
|
||||
// MSW only: true if this control is part of the main control
|
||||
@@ -663,6 +663,15 @@ protected:
|
||||
|
||||
bool MSWEnableHWND(WXHWND hWnd, bool enable);
|
||||
|
||||
// Return the pointer to this window or one of its sub-controls if this ID
|
||||
// and HWND combination belongs to one of them.
|
||||
//
|
||||
// This is used by FindItem() and is overridden in wxControl, see there.
|
||||
virtual wxWindow* MSWFindItem(long WXUNUSED(id), WXHWND WXUNUSED(hWnd)) const
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
private:
|
||||
// common part of all ctors
|
||||
void Init();
|
||||
|
Reference in New Issue
Block a user