]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/helpxlp.cpp
the notebook now has wxTAB_TRAVERSAL style
[wxWidgets.git] / src / generic / helpxlp.cpp
index 0631f6d80a7e0946f8c6cb9b811c4d3d923c9d30..7cf6872a8205e5084ad6b3d4d3133b080cb1af5d 100644 (file)
@@ -55,7 +55,7 @@
 
 #if !USE_SHARED_LIBRARY
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
 IMPLEMENT_CLASS(wxXLPHelpClient, wxDDEClient)
 IMPLEMENT_CLASS(wxXLPHelpConnection, wxDDEConnection)
 #else
@@ -66,13 +66,22 @@ IMPLEMENT_CLASS(wxXLPHelpConnection, wxTCPConnection)
 IMPLEMENT_CLASS(wxXLPHelpController, wxHelpControllerBase)
 #endif
 
-wxXLPHelpController::wxXLPHelpController(void):
-  helpClient(this)
+// suppress annoying warning "'this' used in base member init list" (so what?)
+#ifdef _MSC_VER
+#pragma warning(disable: 4355)
+#endif // Visual C++
+
+wxXLPHelpController::wxXLPHelpController(void)
+                   : helpClient(this)
 {
   helpFile = ""; helpServer = -1; helpHost = "";
   helpRunning = FALSE; helpConnection = NULL;
 }
 
+#ifdef _MSC_VER
+#pragma warning(default: 4355)
+#endif // Visual C++
+
 wxXLPHelpController::~wxXLPHelpController(void)
 {
 }
@@ -180,7 +189,7 @@ bool wxXLPHelpController::Run(void)
   if (!helpFile || !helpHost || helpRunning)
     return FALSE;
 #endif
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
   if (!helpFile || helpRunning)
     return FALSE;
 #endif
@@ -199,7 +208,7 @@ bool wxXLPHelpController::Run(void)
 
   char server[32];
   sprintf(server, "%d", helpServer);
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
   // Only one instance of wxHelp under Windows.
   // See if there's already an instance of wxHelp
   if ((helpConnection = (wxXLPHelpConnection *)helpClient.MakeConnection(helpHost, server, "WXHELP")))