diff --git a/include/wx/generic/helphtml.h b/include/wx/generic/helphtml.h
index 647d54549c..07da22b3c8 100644
--- a/include/wx/generic/helphtml.h
+++ b/include/wx/generic/helphtml.h
@@ -126,12 +126,13 @@ DECLARE_ABSTRACT_CLASS(wxHTMLHelpControllerBase)
{
// does nothing by default
}
- /// Obtains the latest settings used by the help frame.
- virtual void GetFrameParameters(wxSize *size = NULL,
+ /// Obtains the latest settings used by the help frame and the help
+ /// frame.
+ virtual wxFrame *GetFrameParameters(wxSize *size = NULL,
wxPoint *pos = NULL,
bool *newFrameEachTime = NULL)
{
- // does nothing by default
+ return NULL;// does nothing by default
}
protected:
diff --git a/include/wx/generic/helpwxht.h b/include/wx/generic/helpwxht.h
index 18c765afae..9f1f8f9fca 100644
--- a/include/wx/generic/helpwxht.h
+++ b/include/wx/generic/helpwxht.h
@@ -51,9 +51,9 @@ DECLARE_CLASS(wxHelpControllerHtml)
const wxPoint &pos = wxDefaultPosition,
bool newFrameEachTime = FALSE);
/// Obtains the latest settings used by the help frame.
- virtual void GetFrameParameters(wxSize *size = NULL,
- wxPoint *pos = NULL,
- bool *newFrameEachTime = NULL);
+ virtual wxFrame * GetFrameParameters(wxSize *size = NULL,
+ wxPoint *pos = NULL,
+ bool *newFrameEachTime = NULL);
private:
diff --git a/src/generic/helpwxht.cpp b/src/generic/helpwxht.cpp
index 2dc02e2b10..66e90901e2 100644
--- a/src/generic/helpwxht.cpp
+++ b/src/generic/helpwxht.cpp
@@ -59,9 +59,9 @@ public:
wxString doc;
if (s == NULL) return wxEmptyString;
- src = new char[s -> StreamSize()+1];
- src[s -> StreamSize()] = 0;
- s -> Read(src, s -> StreamSize());
+ src = new char[s -> GetSize()+1];
+ src[s -> GetSize()] = 0;
+ s -> Read(src, s -> GetSize());
doc = src;
delete [] src;
return doc;
@@ -293,7 +293,7 @@ wxHelpControllerHtml::SetFrameParameters(const wxString &title,
m_NewFrameEachTime = newFrame;
}
-void
+wxFrame *
wxHelpControllerHtml::GetFrameParameters(wxSize *size = NULL,
wxPoint *pos = NULL,
bool *newframe = NULL)
@@ -301,6 +301,7 @@ wxHelpControllerHtml::GetFrameParameters(wxSize *size = NULL,
if(size) *size = m_FrameSize;
if(pos) *pos = m_FramePosition;
if(newframe) *newframe = m_NewFrameEachTime;
+ return m_Frame;
}
#endif // wxUSE_HTML
diff --git a/src/generic/progdlgg.cpp b/src/generic/progdlgg.cpp
index 4f7d4b3802..fb07876a73 100644
--- a/src/generic/progdlgg.cpp
+++ b/src/generic/progdlgg.cpp
@@ -65,8 +65,11 @@ wxProgressDialog::wxProgressDialog(wxString const &title,
m_maximum = maximum;
m_elapsed = m_estimated = m_remaining = NULL;
- if ((style & (wxPD_ELAPSED_TIME | wxPD_ESTIMATED_TIME | wxPD_REMAINING_TIME)) != 0) m_time = new wxTime;
- else m_time = NULL;
+ if ((style & (wxPD_ELAPSED_TIME | wxPD_ESTIMATED_TIME |
+ wxPD_REMAINING_TIME)) != 0)
+ m_time = new wxTime;
+ else
+ m_time = NULL;
wxFrame::Create(m_parent, -1, title, wxDefaultPosition,
wxDefaultSize, wxDEFAULT_DIALOG_STYLE);
diff --git a/src/generic/treectrl.cpp b/src/generic/treectrl.cpp
index 492bc1b7d4..b7bd7f569d 100644
--- a/src/generic/treectrl.cpp
+++ b/src/generic/treectrl.cpp
@@ -161,6 +161,7 @@ private:
// -----------------------------------------------------------------------------
// wxTreeEvent
// -----------------------------------------------------------------------------
+IMPLEMENT_DYNAMIC_CLASS(wxTreeEvent, wxNotifyEvent)
wxTreeEvent::wxTreeEvent( wxEventType commandType, int id )
: wxNotifyEvent( commandType, id )