changed to use 2 html windows
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3808 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
f036b31cde
commit
b714136483
@ -120,10 +120,13 @@
|
|||||||
// Create the main application window
|
// Create the main application window
|
||||||
MyFrame *frame = new MyFrame("wxHtmlWindow testing application",
|
MyFrame *frame = new MyFrame("wxHtmlWindow testing application",
|
||||||
wxPoint(50, 50), wxSize(640, 480));
|
wxPoint(50, 50), wxSize(640, 480));
|
||||||
|
MyFrame *frame2 = new MyFrame("wxHtmlWindow testing application",
|
||||||
|
wxPoint(150, 50), wxSize(640, 480));
|
||||||
|
|
||||||
// Show it and tell the application that it's our main window
|
// Show it and tell the application that it's our main window
|
||||||
// @@@ what does it do exactly, in fact? is it necessary here?
|
// @@@ what does it do exactly, in fact? is it necessary here?
|
||||||
frame->Show(TRUE);
|
frame->Show(TRUE);
|
||||||
|
frame2->Show(TRUE);
|
||||||
SetTopWindow(frame);
|
SetTopWindow(frame);
|
||||||
|
|
||||||
|
|
||||||
@ -141,7 +144,7 @@ wxHtmlWindow *html;
|
|||||||
|
|
||||||
// frame constructor
|
// frame constructor
|
||||||
MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size)
|
MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size)
|
||||||
: wxFrame((wxFrame *)NULL, -1, title, pos, size)
|
: wxFrame((wxFrame *)NULL, -1, title, pos, size, wxDEFAULT_FRAME_STYLE, "html_test_app")
|
||||||
{
|
{
|
||||||
// create a menu bar
|
// create a menu bar
|
||||||
wxMenu *menuFile = new wxMenu;
|
wxMenu *menuFile = new wxMenu;
|
||||||
|
Loading…
Reference in New Issue
Block a user