diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-21 21:11:28 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-21 21:11:28 +0000 |
commit | 6b327577051e49ef853117e9c04442c408fdf934 (patch) | |
tree | a344e021ffa4a9f2c01c4d10aa1c6924b5d9112a /include | |
parent | 341d37fdcb9ed6469974ec5d0083c7c376618656 (diff) |
MS_UTILS_OPENURL Unicode
git-svn-id: http://svn.miranda-ng.org/main/trunk@520 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'include')
-rw-r--r-- | include/m_utils.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/include/m_utils.h b/include/m_utils.h index 34d82594e8..b8366f31a9 100644 --- a/include/m_utils.h +++ b/include/m_utils.h @@ -41,13 +41,23 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. //and simple string scrambling, but they are very db-orientated
/* Opens a URL in the user's default web browser v0.1.0.1+
-wParam=bOpenInNewWindow
-lParam=(LPARAM)(const char*)szUrl
+wParam = OUF_* flags
+lParam = (LPARAM)(const TCHAR*)szUrl
returns 0 always
bOpenInNewWindow should be zero to open the URL in the browser window the user
last used, or nonzero to open in a new browser window. If there's no browser
running, one will be opened to show the URL.
*/
+
+#define OUF_NEWWINDOW 1
+#define OUF_UNICODE 2
+
+#if defined( _UNICODE )
+ #define OUF_TCHAR OUF_UNICODE
+#else
+ #define OUF_TCHAR 0
+#endif
+
#define MS_UTILS_OPENURL "Utils/OpenURL"
/* Resizes a dialog by calling a custom routine to move the individual
|