diff options
Diffstat (limited to 'Plugins/historykeeper/sdk')
-rw-r--r-- | Plugins/historykeeper/sdk/m_metacontacts.h | 4 | ||||
-rw-r--r-- | Plugins/historykeeper/sdk/m_updater.h | 4 | ||||
-rw-r--r-- | Plugins/historykeeper/sdk/m_variables.h | 33 |
3 files changed, 25 insertions, 16 deletions
diff --git a/Plugins/historykeeper/sdk/m_metacontacts.h b/Plugins/historykeeper/sdk/m_metacontacts.h index 1da12b9..9f348bd 100644 --- a/Plugins/historykeeper/sdk/m_metacontacts.h +++ b/Plugins/historykeeper/sdk/m_metacontacts.h @@ -23,6 +23,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #ifndef M_METACONTACTS_H__
#define M_METACONTACTS_H__ 1
+#ifndef MIID_METACONTACTS
+#define MIID_METACONTACTS {0xc0325019, 0xc1a7, 0x40f5, { 0x83, 0x65, 0x4f, 0x46, 0xbe, 0x21, 0x86, 0x3e}}
+#endif
+
//get the handle for a contact's parent metacontact
//wParam=(HANDLE)hSubContact
//lParam=0
diff --git a/Plugins/historykeeper/sdk/m_updater.h b/Plugins/historykeeper/sdk/m_updater.h index 371b743..488d372 100644 --- a/Plugins/historykeeper/sdk/m_updater.h +++ b/Plugins/historykeeper/sdk/m_updater.h @@ -63,6 +63,10 @@ __inline static char *CreateVersionStringPlugin(PLUGININFO *pluginInfo, char *bu return CreateVersionString(pluginInfo->version, buf);
}
+__inline static char *CreateVersionStringPluginEx(PLUGININFOEX *pluginInfo, char *buf) {
+ return CreateVersionString(pluginInfo->version, buf);
+}
+
// register the 'easy' way - use this method if you have no beta URL and the plugin is on the miranda file listing
// NOTE: the plugin version string on the file listing must be the string version of the version in pluginInfo (i.e. 0.0.0.1,
diff --git a/Plugins/historykeeper/sdk/m_variables.h b/Plugins/historykeeper/sdk/m_variables.h index 3f13c96..1264643 100644 --- a/Plugins/historykeeper/sdk/m_variables.h +++ b/Plugins/historykeeper/sdk/m_variables.h @@ -28,6 +28,10 @@ #include <m_button.h>
#endif
+#ifndef SIZEOF
+#include <win2k.h>
+#endif
+
// --------------------------------------------------------------------------
// Memory management
// --------------------------------------------------------------------------
@@ -578,41 +582,38 @@ __inline static int variables_skin_helpbutton(HWND hwndDlg, UINT uIDButton) { hIcon = NULL;
res = 0;
- if (ServiceExists(MS_VARS_GETSKINITEM)) {
+ if (ServiceExists(MS_VARS_GETSKINITEM))
hIcon = (HICON)CallService(MS_VARS_GETSKINITEM, 0, (LPARAM)VSI_HELPICON);
- }
- GetClassName(GetDlgItem(hwndDlg, uIDButton), tszClass, sizeof(tszClass));
+
+ GetClassName(GetDlgItem(hwndDlg, uIDButton), tszClass, SIZEOF(tszClass));
if (!_tcscmp(tszClass, _T("Button"))) {
if (hIcon != NULL) {
- SetWindowLong(GetDlgItem(hwndDlg, uIDButton), GWL_STYLE, GetWindowLong(GetDlgItem(hwndDlg, uIDButton), GWL_STYLE)|BS_ICON);
+ SetWindowLongPtr(GetDlgItem(hwndDlg, uIDButton), GWL_STYLE, GetWindowLongPtr(GetDlgItem(hwndDlg, uIDButton), GWL_STYLE)|BS_ICON);
SendMessage(GetDlgItem(hwndDlg, uIDButton), BM_SETIMAGE, (WPARAM)IMAGE_ICON, (LPARAM)hIcon);
}
else {
- SetWindowLong(GetDlgItem(hwndDlg, uIDButton), GWL_STYLE, GetWindowLong(GetDlgItem(hwndDlg, uIDButton), GWL_STYLE)&~BS_ICON);
+ SetWindowLongPtr(GetDlgItem(hwndDlg, uIDButton), GWL_STYLE, GetWindowLongPtr(GetDlgItem(hwndDlg, uIDButton), GWL_STYLE)&~BS_ICON);
SetDlgItemText(hwndDlg, uIDButton, _T("V"));
}
}
else if (!_tcscmp(tszClass, MIRANDABUTTONCLASS)) {
if (hIcon != NULL) {
- char *szTipInfo;
+ char *szTipInfo = NULL;
SendMessage(GetDlgItem(hwndDlg, uIDButton), BM_SETIMAGE, (WPARAM)IMAGE_ICON, (LPARAM)hIcon);
- if (ServiceExists(MS_VARS_GETSKINITEM)) {
+ if (ServiceExists(MS_VARS_GETSKINITEM))
szTipInfo = (char *)CallService(MS_VARS_GETSKINITEM, 0, (LPARAM)VSI_HELPTIPTEXT);
- }
- if (szTipInfo == NULL) {
+
+ if (szTipInfo == NULL)
szTipInfo = Translate("Open String Formatting Help");
- }
+
SendMessage(GetDlgItem(hwndDlg, uIDButton), BUTTONADDTOOLTIP, (WPARAM)szTipInfo, 0);
SendDlgItemMessage(hwndDlg, uIDButton, BUTTONSETASFLATBTN, 0, 0);
}
- else {
- SetDlgItemText(hwndDlg, uIDButton, _T("V"));
- }
- }
- else {
- res = -1;
+ else SetDlgItemText(hwndDlg, uIDButton, _T("V"));
}
+ else res = -1;
+
ShowWindow(GetDlgItem(hwndDlg, uIDButton), ServiceExists(MS_VARS_FORMATSTRING));
return res;
|