summaryrefslogtreecommitdiff
path: root/plugins/Scriver/src/utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Scriver/src/utils.h')
-rw-r--r--plugins/Scriver/src/utils.h48
1 files changed, 21 insertions, 27 deletions
diff --git a/plugins/Scriver/src/utils.h b/plugins/Scriver/src/utils.h
index 3387b0559b..d9cb24d4be 100644
--- a/plugins/Scriver/src/utils.h
+++ b/plugins/Scriver/src/utils.h
@@ -34,33 +34,27 @@ enum SEARCHENGINES {
SEARCHENGINE_FOODNETWORK = 8
};
-extern int IsUnicodeMIM();
-extern int safe_wcslen(wchar_t *msg, int maxLen) ;
-extern TCHAR *a2t(const char *text);
-extern TCHAR *a2tcp(const char *text, int cp);
-extern char* t2a(const TCHAR* src);
-extern char* t2acp(const TCHAR* src, int cp);
-extern char* u2a( const wchar_t* src, int codepage );
-extern wchar_t* a2u( const char* src, int codepage );
-extern wchar_t *a2w(const char *src, int len);
-extern TCHAR *limitText(TCHAR *text, int limit);
-extern void logInfo(const char *fmt, ...);
-extern int GetRichTextLength(HWND hwnd, int codepage, BOOL inBytes);
-extern TCHAR* GetRichText(HWND hwnd, int codepage);
-extern TCHAR *GetRichEditSelection(HWND hwnd);
-extern char* GetRichTextRTF(HWND hwnd);
-extern char* GetRichTextEncoded(HWND hwnd, int codepage);
-extern TCHAR *GetRichTextWord(HWND hwnd, POINTL *pt);
-extern int SetRichTextRTF(HWND hwnd, const char *text);
-extern int SetRichTextEncoded(HWND hwnd, const char *text, int codepage);
-extern void SearchWord(TCHAR * word, int engine);
-extern HDWP ResizeToolbar(HWND hwnd, HDWP hdwp, int width, int vPos, int height, int cControls, const ToolbarButton * buttons, int controlVisibility);
-extern void ShowToolbarControls(HWND hwndDlg, int cControls, const ToolbarButton * buttons, int controlVisibility, int state);
-extern void AppendToBuffer(char **buffer, int *cbBufferEnd, int *cbBufferAlloced, const char *fmt, ...);
-extern int MeasureMenuItem(WPARAM wParam, LPARAM lParam);
-extern int DrawMenuItem(WPARAM wParam, LPARAM lParam);
-extern void SetSearchEngineIcons(HMENU hMenu, HIMAGELIST hImageList);
-extern void GetContactUniqueId(struct SrmmWindowData *dat, char *buf, int maxlen);
+int IsUnicodeMIM();
+wchar_t *a2w(const char *src, int len);
+int safe_wcslen(wchar_t *msg, int maxLen) ;
+TCHAR *limitText(TCHAR *text, int limit);
+void logInfo(const char *fmt, ...);
+int GetRichTextLength(HWND hwnd, int codepage, BOOL inBytes);
+TCHAR* GetRichText(HWND hwnd, int codepage);
+TCHAR *GetRichEditSelection(HWND hwnd);
+char* GetRichTextRTF(HWND hwnd);
+char* GetRichTextEncoded(HWND hwnd, int codepage);
+TCHAR *GetRichTextWord(HWND hwnd, POINTL *pt);
+int SetRichTextRTF(HWND hwnd, const char *text);
+int SetRichTextEncoded(HWND hwnd, const char *text, int codepage);
+void SearchWord(TCHAR * word, int engine);
+HDWP ResizeToolbar(HWND hwnd, HDWP hdwp, int width, int vPos, int height, int cControls, const ToolbarButton * buttons, int controlVisibility);
+void ShowToolbarControls(HWND hwndDlg, int cControls, const ToolbarButton * buttons, int controlVisibility, int state);
+void AppendToBuffer(char **buffer, int *cbBufferEnd, int *cbBufferAlloced, const char *fmt, ...);
+int MeasureMenuItem(WPARAM wParam, LPARAM lParam);
+int DrawMenuItem(WPARAM wParam, LPARAM lParam);
+void SetSearchEngineIcons(HMENU hMenu, HIMAGELIST hImageList);
+void GetContactUniqueId(struct SrmmWindowData *dat, char *buf, int maxlen);
HWND CreateToolTip(HWND hwndParent, LPTSTR ptszText, LPTSTR ptszTitle, RECT *rect);
void SetToolTipText(HWND hwndParent, HWND hwndTT, LPTSTR ptszText, LPTSTR ptszTitle);
void SetToolTipRect(HWND hwndParent, HWND hwndTT, RECT* rect);