diff options
author | admin@progandy.co.cc <admin@progandy.co.cc@eced67a3-f377-a0ae-92ae-d6de1850b05a> | 2010-09-07 20:56:58 +0000 |
---|---|---|
committer | admin@progandy.co.cc <admin@progandy.co.cc@eced67a3-f377-a0ae-92ae-d6de1850b05a> | 2010-09-07 20:56:58 +0000 |
commit | fabf8cf6652880668158c0160181055705fa947e (patch) | |
tree | 02865290dac031f7e64e4f4bf3a0107f34b1886b /MirOTR/mirotrmenu.h | |
parent | 3ab5329069479c9951ee1bf8ac26af73df500045 (diff) |
- add missing files
- beginning SMP implementation
git-svn-id: http://mirotr.googlecode.com/svn/trunk@4 eced67a3-f377-a0ae-92ae-d6de1850b05a
Diffstat (limited to 'MirOTR/mirotrmenu.h')
-rw-r--r-- | MirOTR/mirotrmenu.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/MirOTR/mirotrmenu.h b/MirOTR/mirotrmenu.h new file mode 100644 index 0000000..fa24799 --- /dev/null +++ b/MirOTR/mirotrmenu.h @@ -0,0 +1,45 @@ +#pragma once
+#define MS_MIROTR_ADDMIROTRMENUITEM MODULENAME"/AddMirOTRMenuItem"
+#define MS_MIROTR_MENUBUILDMIROTR MODULENAME"/MenuBuildMirOTR"
+#define MS_MIROTR_REMOVEMIROTRMENUITEM MODULENAME"/RemoveMirOTRMenuItem"
+
+#define CMIF_NOTNOTPRIVATE CMIF_NOTOFFLINE
+#define CMIF_NOTUNVERIFIED CMIF_NOTONLINE
+#define CMIF_NOTPRIVATE CMIF_NOTONLIST
+#define CMIF_NOTFINISHED CMIF_NOTOFFLIST
+#define CMIF_DISABLED 0x8000
+
+//add a new item to the MirOTR Menu
+//wParam=0
+//lParam=(LPARAM)(CLISTMENUITEM*)&mi
+//returns a handle to the new item, or NULL on failure
+//the service that is called when the item is clicked is called with
+//wParam=0, lParam=hContact
+//dividers are inserted every 100000 positions
+//pszContactOwner is ignored for this service.
+//
+// WARNING: do not use Translate(TS) for p(t)szName or p(t)szPopupName as they
+// are translated by the core, which may lead to double translation.
+// Use LPGEN instead which are just dummy wrappers/markers for "lpgen.pl".
+typedef struct {
+ int cbSize; //size in bytes of this structure
+ union {
+ char* pszName; //[TRANSLATED-BY-CORE] text of the menu item
+ TCHAR* ptszName; //Unicode text of the menu item
+ };
+ int position; //approx position on the menu. lower numbers go nearer the top
+ HGENMENU root; //submenu where the item will be added, NULL for root
+ DWORD flags; //set of MOMIF_* flags
+ union {
+ HICON hIcon; //icon to put by the item. If this was not loaded from
+ //a resource, you can delete it straight after the call
+ HANDLE icolibItem; //set CMIF_ICONFROMICOLIB to pass this value
+ };
+ DWORD hotKey; //keyboard accelerator, same as lParam of WM_HOTKEY,0 for none
+ char* pszService; //name of service to call when the item gets selected
+} MIROTRMENUITEM;
+
+void InitMirOTRMenu(void);
+void UninitMirOTRMenu(void);
+
+void ShowOTRMenu(HANDLE hContact, POINT pt);
\ No newline at end of file |