Ticket #12763 (closed defect: fixed)
Override of wxLogWindow::OnFrameCreate gets never called
| Reported by: | MathiasDz | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | 3.0 |
| Component: | GUI-all | Version: | 2.9-svn |
| Keywords: | wxLogWindow, OnFrameCreate | Cc: | |
| Blocked By: | Patch: | no | |
| Blocking: |
Description
Overriding wxLogWindow::OnFrameCreate is useless, because the method gets never called.
wxLogWindow::OnFrameCreate is indirectly called (via wxLogFrame::wxLogFrame) in the wxLogWindow constructor. This calls always wxLogWindow::OnFrameCreate and never OnFrameCreate in the derived class.
A look at 2.9.1 source shows the same problem.
See also:
http://www.parashift.com/c++-faq-lite/strange-inheritance.html
[23.5] When my base class's constructor calls a virtual function on its this object, why doesn't my derived class's override of that virtual function get invoked?
Change History
Note: See
TracTickets for help on using
tickets.
