move SendSizeEvent() down to wxWindow from wxFrame; added SendSizeEventToParent() helper
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54803 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -72,9 +72,6 @@ public:
|
||||
// if the frame has a toolbar) in client coordinates
|
||||
virtual wxPoint GetClientAreaOrigin() const;
|
||||
|
||||
// sends a size event to the window using its current size -- this has an
|
||||
// effect of refreshing the window layout
|
||||
virtual void SendSizeEvent();
|
||||
|
||||
// menu bar functions
|
||||
// ------------------
|
||||
|
@@ -87,10 +87,9 @@ public:
|
||||
|
||||
bool PreResize();
|
||||
|
||||
void SendSizeEvent();
|
||||
|
||||
// for generic/mdig.h
|
||||
virtual void DoGetClientSize(int *width, int *height) const;
|
||||
|
||||
private:
|
||||
// common part of all ctors
|
||||
void Init();
|
||||
|
@@ -91,8 +91,7 @@ public:
|
||||
void SetToolTipCtrl(WXHWND hwndTT) { m_hwndToolTip = hwndTT; }
|
||||
#endif // tooltips
|
||||
|
||||
// a MSW only function which sends a size event to the window using its
|
||||
// current size - this has an effect of refreshing the window layout
|
||||
// override the base class function to handle iconized/maximized frames
|
||||
virtual void SendSizeEvent();
|
||||
|
||||
virtual wxPoint GetClientAreaOrigin() const;
|
||||
|
@@ -125,8 +125,6 @@ public:
|
||||
void SetToolTipCtrl(WXHWND hHwndTT) { m_hWndToolTip = hHwndTT; }
|
||||
#endif // tooltips
|
||||
|
||||
virtual void SendSizeEvent(void);
|
||||
|
||||
void SetClient(WXHWND c_Hwnd);
|
||||
void SetClient(wxWindow* c_Window);
|
||||
wxWindow *GetClient();
|
||||
|
@@ -58,9 +58,6 @@ public:
|
||||
|
||||
virtual wxSize GetMinSize() const;
|
||||
|
||||
// sends wxSizeEvent to itself (used after attaching xxxBar)
|
||||
virtual void SendSizeEvent();
|
||||
|
||||
protected:
|
||||
void OnSize(wxSizeEvent& event);
|
||||
void OnSysColourChanged(wxSysColourChangedEvent& event);
|
||||
|
@@ -528,8 +528,25 @@ public:
|
||||
// stretch over several lines). Parameter availableOtherDir
|
||||
// tells the item how much more space there is available in the opposite
|
||||
// direction (-1 if unknown).
|
||||
virtual bool InformFirstDirection( int WXUNUSED(direction), int WXUNUSED(size), int WXUNUSED(availableOtherDir) )
|
||||
{ return false; }
|
||||
virtual bool
|
||||
InformFirstDirection(int WXUNUSED(direction),
|
||||
int WXUNUSED(size),
|
||||
int WXUNUSED(availableOtherDir))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
// sends a size event to the window using its current size -- this has an
|
||||
// effect of refreshing the window layout
|
||||
virtual void SendSizeEvent();
|
||||
|
||||
// this is a safe wrapper for GetParent()->SendSizeEvent(): it checks that
|
||||
// we have a parent window and it's not in process of being deleted
|
||||
//
|
||||
// this is used by controls such as tool/status bars changes to which must
|
||||
// also result in parent re-layout
|
||||
void SendSizeEventToParent();
|
||||
|
||||
|
||||
// window state
|
||||
// ------------
|
||||
|
Reference in New Issue
Block a user