Fixed std::cout redirection code example.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50561 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -173,7 +173,7 @@ control. This could be done in the following way:
|
|||||||
wxTextCtrl *control = new wxTextCtrl(...);
|
wxTextCtrl *control = new wxTextCtrl(...);
|
||||||
|
|
||||||
std::streambuf *sbOld = std::cout.rdbuf();
|
std::streambuf *sbOld = std::cout.rdbuf();
|
||||||
std::cout.rdbuf(*control);
|
std::cout.rdbuf(control);
|
||||||
|
|
||||||
// use cout as usual, the output appears in the text control
|
// use cout as usual, the output appears in the text control
|
||||||
...
|
...
|
||||||
|
Reference in New Issue
Block a user