diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-23 19:20:55 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-23 19:20:55 +0000 |
commit | 1c51a6e0409bbfd61383a942636d6766154b5225 (patch) | |
tree | dcc4e9573aace0028c3dd8bd580a35560fc77882 /plugins/SRMM/msgs.h | |
parent | 9e0c64767759da86499f245083239575d947b5e9 (diff) |
srmm plusified
git-svn-id: http://svn.miranda-ng.org/main/trunk@583 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SRMM/msgs.h')
-rw-r--r-- | plugins/SRMM/msgs.h | 23 |
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);
|