]> git.saurik.com Git - wxWidgets.git/blobdiff - demos/poem/wxpoem.cpp
link against the net library, too
[wxWidgets.git] / demos / poem / wxpoem.cpp
index 87953b7c5b8797cc1324d445f572fde16d9c0798..ee8c91f592ed2c1a72f4f94f0fa554f47bc0d9ad 100644 (file)
@@ -608,7 +608,7 @@ bool MyApp::OnInit()
 //    randomize();
   pages[0] = 0;
 
-  TheMainWindow = new MainWindow(NULL, 500, _T("wxPoem"), wxPoint(XPos, YPos), wxSize(100, 100), wxCAPTION|wxMINIMIZE_BOX|wxSYSTEM_MENU);
+  TheMainWindow = new MainWindow(NULL, 500, _T("wxPoem"), wxPoint(XPos, YPos), wxSize(100, 100), wxCAPTION|wxMINIMIZE_BOX|wxSYSTEM_MENU|wxCLOSE_BOX);
 
 #ifdef wx_x
   TheMainWindow->SetIcon(Icon(_T("wxpoem")));
@@ -775,7 +775,7 @@ void MyCanvas::OnMouseEvent(wxMouseEvent& event)
 // Process characters
 void MyCanvas::OnChar(wxKeyEvent& event)
 {
-  switch (event.KeyCode())
+  switch (event.GetKeyCode())
   {
     case 'n':
     case 'N':