]> git.saurik.com Git - wxWidgets.git/commitdiff
Dialogs can now show a question mark for context-sensitive help.
authorJulian Smart <julian@anthemion.co.uk>
Wed, 6 Sep 2000 13:23:21 +0000 (13:23 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Wed, 6 Sep 2000 13:23:21 +0000 (13:23 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8274 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/help/demo.cpp
src/msw/window.cpp

index 210283ab9574b2844acc5c2cb5e20f8f2cd709ae..2dc35fa01c2a3a29d2c57b28aab44fbabbfa039b 100644 (file)
 #   include "wx/image.h"
 #   include "wx/help.h"
 
+#if wxUSE_TOOLTIPS
+#   include "wx/tooltip.h"
+#endif
+
 // define this to 1 to use HTML help even under Windows (by default, Windows
 // version will use WinHelp).
 // Please also see samples/html/helpview.
@@ -405,6 +409,8 @@ void MyFrame::OnContextHelp(wxHelpEvent& event)
     wxString msg;
     msg.Printf(wxT("We should now display help for window %d"), event.GetId());
     wxMessageBox(msg);
+    //wxToolTip::Enable(TRUE);
+    //SetToolTip(msg);
 }
 
 void MyFrame::OnHtmlHelp(wxCommandEvent& event)
index dbac074afc5ae9c05d817f5a74cf7baf809bfb37..014c0747bb78c724856b2c8558c180ed79ef8647 100644 (file)
@@ -2384,6 +2384,12 @@ bool wxWindow::MSWCreate(int id,
 
             return FALSE;
         }
+        if (extendedStyle != 0)
+        {
+            ::SetWindowLong(GetHwnd(), GWL_EXSTYLE, extendedStyle);
+            ::SetWindowPos(GetHwnd(), NULL, 0, 0, 0, 0,
+                SWP_NOSIZE | SWP_NOMOVE | SWP_NOZORDER | SWP_NOACTIVATE);
+        }
 
         // ::SetWindowLong(GWL_EXSTYLE) doesn't work for the dialogs, so try
         // to take care of (at least some) extended style flags ourselves