summaryrefslogtreecommitdiff
path: root/plugins/SRMM/msgs.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/SRMM/msgs.h')
-rw-r--r--plugins/SRMM/msgs.h23
1 files changed, 19 insertions, 4 deletions
diff --git a/plugins/SRMM/msgs.h b/plugins/SRMM/msgs.h
index 842b291a08..4a02e67a32 100644
--- a/plugins/SRMM/msgs.h
+++ b/plugins/SRMM/msgs.h
@@ -31,7 +31,7 @@ struct NewMessageWindowLParam
int noActivate;
};
-struct MessageWindowData
+struct SrmmWindowData
{
HANDLE hContact;
HANDLE hDbEventFirst, hDbEventLast;
@@ -89,18 +89,33 @@ struct MessageWindowData
#define EVENTTYPE_JABBER_PRESENCE 2001
#define EVENTTYPE_STATUSCHANGE 25368
-struct CREOleCallback
+struct CREOleCallback : public IRichEditOleCallback
{
- IRichEditOleCallbackVtbl *lpVtbl;
+ CREOleCallback() : refCount(0) {}
unsigned refCount;
IStorage *pictStg;
int nextStgId;
+
+ STDMETHOD(QueryInterface)(REFIID riid, LPVOID FAR * lplpObj);
+ STDMETHOD_(ULONG,AddRef) (THIS);
+ STDMETHOD_(ULONG,Release) (THIS);
+
+ STDMETHOD(ContextSensitiveHelp)(BOOL fEnterMode);
+ STDMETHOD(GetNewStorage) (LPSTORAGE FAR * lplpstg);
+ STDMETHOD(GetInPlaceContext) (LPOLEINPLACEFRAME FAR * lplpFrame, LPOLEINPLACEUIWINDOW FAR * lplpDoc, LPOLEINPLACEFRAMEINFO lpFrameInfo);
+ STDMETHOD(ShowContainerUI) (BOOL fShow);
+ STDMETHOD(QueryInsertObject) (LPCLSID lpclsid, LPSTORAGE lpstg, LONG cp);
+ STDMETHOD(DeleteObject) (LPOLEOBJECT lpoleobj);
+ STDMETHOD(QueryAcceptData) (LPDATAOBJECT lpdataobj, CLIPFORMAT FAR * lpcfFormat, DWORD reco, BOOL fReally, HGLOBAL hMetaPict);
+ STDMETHOD(GetClipboardData) (CHARRANGE FAR * lpchrg, DWORD reco, LPDATAOBJECT FAR * lplpdataobj);
+ STDMETHOD(GetDragDropEffect) (BOOL fDrag, DWORD grfKeyState, LPDWORD pdwEffect);
+ STDMETHOD(GetContextMenu) (WORD seltype, LPOLEOBJECT lpoleobj, CHARRANGE FAR * lpchrg, HMENU FAR * lphmenu) ;
};
INT_PTR CALLBACK DlgProcMessage(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam);
INT_PTR CALLBACK ErrorDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam);
int DbEventIsForMsgWindow(DBEVENTINFO *dbei);
-int DbEventIsShown(DBEVENTINFO * dbei, struct MessageWindowData *dat);
+int DbEventIsShown(DBEVENTINFO * dbei, struct SrmmWindowData *dat);
void StreamInEvents(HWND hwndDlg, HANDLE hDbEventFirst, int count, int fAppend);
HANDLE SendMessageDirect(const TCHAR *szMsg, HANDLE hContact, char *szProto);