Update of /cvsroot/mahogany/M/src/wx/generic
In directory sc8-pr-cvs1:/tmp/cvs-serv967/src/wx/generic
Modified Files:
persctrl.cpp
Log Message:
release mouse before showing the dialog, otherwise buttons in it might not work
(Windows only)
Index: persctrl.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/wx/generic/persctrl.cpp,v
retrieving revision 1.78
retrieving revision 1.79
diff -b -u -2 -r1.78 -r1.79
--- persctrl.cpp 2 Dec 2002 21:15:39 -0000 1.78
+++ persctrl.cpp 17 Jul 2003 23:50:09 -0000 1.79
@@ -57,4 +57,9 @@
#include "wx/persctrl.h"
+#ifdef __WINDOWS__
+ #include <windows.h>
+ #include "wx/msw/winundef.h"
+#endif // __WINDOWS__
+
#ifndef MAX
# define MAX(a,b) (((a) > (b))?(a):(b))
@@ -1814,4 +1819,11 @@
if ( !rc ) {
+#ifdef __WINDOWS__
+ // hack: we're called with mouse being captured by the list
+ // ctrl under Windows and we must release it to allow it to
+ // work normally in the dialog which we show below
+ ::ReleaseCapture();
+#endif // __WINDOWS__
+
// do show the msg box
wxPMessageDialog dlg(parent, message, caption, style);
-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates