summaryrefslogtreecommitdiff
path: root/tipper/docs/m_tipper.h
diff options
context:
space:
mode:
authorsje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2006-11-01 14:46:09 +0000
committersje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2006-11-01 14:46:09 +0000
commita13e82647294da4add976a24335fec50d7bfe905 (patch)
tree087acc8d5085391fe71cde7299269c4d0f583c30 /tipper/docs/m_tipper.h
parentbded3f3d452e097995cbb1e695aaec13a739d1af (diff)
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@15 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'tipper/docs/m_tipper.h')
-rw-r--r--tipper/docs/m_tipper.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/tipper/docs/m_tipper.h b/tipper/docs/m_tipper.h
new file mode 100644
index 0000000..031d490
--- /dev/null
+++ b/tipper/docs/m_tipper.h
@@ -0,0 +1,23 @@
+// Tipper API
+// note: Tipper is internally unicode and requires unicows.dll to function correctly on 95/98/ME
+// so you'll find a lot of wchar_t stuff in here
+
+// use hContact, module and setting to read your db value(s) and put the resulting string into buff
+// return buff if the translation was successful, or return 0 for failure
+typedef wchar_t *(TranslateFunc)(HANDLE hContact, const char *module, const char *setting_or_prefix, wchar_t *buff, int bufflen);
+
+typedef struct {
+ TranslateFunc *tfunc; // address of your translation function (see typedef above)
+ const wchar_t *name; // make sure this is unique, and DO NOT translate it
+ DWORD id; // will be overwritten by Tipper - do not use
+} DBVTranslation;
+
+// add a translation to tipper
+// wParam not used
+// lParam = (DBVTranslation *)translation
+#define MS_TIPPER_ADDTRANSLATION "Tipper/AddTranslation"
+
+// unicode extension to the basic functionality
+// wParam - optional (wchar_t *)text for text-only tips
+// lParam - (CLCINFOTIP *)infoTip
+#define MS_TIPPER_SHOWTIPW "mToolTip/ShowTipW"