summaryrefslogtreecommitdiff
path: root/plugins/SpellChecker
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-02-10 08:04:30 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-02-10 08:04:30 +0000
commitddba4ede6b451d0cfcd0d32b5180fbd0689966bf (patch)
tree5d74f37a7013d13b92c182628d6b68a58e148ae4 /plugins/SpellChecker
parentc39340bf493a1745a41317bbf937fc7eb6cbb26a (diff)
- HANDLE hContact => HCONTACT
- GCF_* prefix was added to chat constants to avoid name conflicts git-svn-id: http://svn.miranda-ng.org/main/trunk@8078 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SpellChecker')
-rw-r--r--plugins/SpellChecker/src/commons.h4
-rw-r--r--plugins/SpellChecker/src/utils.cpp10
2 files changed, 7 insertions, 7 deletions
diff --git a/plugins/SpellChecker/src/commons.h b/plugins/SpellChecker/src/commons.h
index fa435a0a42..ac8ba21e2d 100644
--- a/plugins/SpellChecker/src/commons.h
+++ b/plugins/SpellChecker/src/commons.h
@@ -120,7 +120,7 @@ struct Dialog
{
HWND hwnd;
HWND hwnd_owner;
- HANDLE hContact;
+ HCONTACT hContact;
char name[64];
Dictionary *lang;
TCHAR lang_name[32];
@@ -150,7 +150,7 @@ int MsgWindowEvent(WPARAM wParam, LPARAM lParam);
int MsgWindowPopup(WPARAM wParam, LPARAM lParam);
int IconPressed(WPARAM wParam, LPARAM lParam);
-int AddContactTextBox(HANDLE hContact, HWND hwnd, char *name, BOOL srmm, HWND hwndOwner);
+int AddContactTextBox(HCONTACT hContact, HWND hwnd, char *name, BOOL srmm, HWND hwndOwner);
int RemoveContactTextBox(HWND hwnd);
int ShowPopupMenu(HWND hwnd, HMENU hMenu, POINT pt, HWND hwndOwner);
diff --git a/plugins/SpellChecker/src/utils.cpp b/plugins/SpellChecker/src/utils.cpp
index 78027c7ca6..afa493cb39 100644
--- a/plugins/SpellChecker/src/utils.cpp
+++ b/plugins/SpellChecker/src/utils.cpp
@@ -715,7 +715,7 @@ int GetClosestLanguage(TCHAR *lang_name)
return -1;
}
-void GetUserProtoLanguageSetting(Dialog *dlg, HANDLE hContact, char *group, char *setting, BOOL isProtocol = TRUE)
+void GetUserProtoLanguageSetting(Dialog *dlg, HCONTACT hContact, char *group, char *setting, BOOL isProtocol = TRUE)
{
DBVARIANT dbv = {0};
dbv.type = DBVT_TCHAR;
@@ -776,7 +776,7 @@ void GetUserLanguageSetting(Dialog *dlg, char *setting)
if (metacontacts_proto != NULL) {
mc = CallService(MS_MC_GETMETACONTACT, (WPARAM) dlg->hContact, 0);
if (mc != CALLSERVICE_NOTFOUND) {
- HANDLE hMetaContact = (HANDLE) mc;
+ HCONTACT hMetaContact = (HCONTACT)mc;
if (hMetaContact != NULL) {
GetUserProtoLanguageSetting(dlg, hMetaContact, metacontacts_proto, setting);
if (dlg->lang_name[0] != _T('\0'))
@@ -816,7 +816,7 @@ void GetContactLanguage(Dialog *dlg)
if (dlg->lang_name[0] == _T('\0')) {
INT_PTR mc = CallService(MS_MC_GETMETACONTACT, (WPARAM) dlg->hContact, 0);
if (mc != CALLSERVICE_NOTFOUND) {
- HANDLE hMetaContact = (HANDLE) mc;
+ HCONTACT hMetaContact = (HCONTACT)mc;
if (hMetaContact != NULL) {
if (!db_get_ts(hMetaContact, MODULE_NAME, "TalkLanguage", &dbv)) {
lstrcpyn(dlg->lang_name, dbv.ptszVal, SIZEOF(dlg->lang_name));
@@ -899,7 +899,7 @@ void NotifyWrongSRMM()
notified = TRUE;
}
-int AddContactTextBox(HANDLE hContact, HWND hwnd, char *name, BOOL srmm, HWND hwndOwner)
+int AddContactTextBox(HCONTACT hContact, HWND hwnd, char *name, BOOL srmm, HWND hwndOwner)
{
if (languages.getCount() <= 0)
return 0;
@@ -1406,7 +1406,7 @@ int IconPressed(WPARAM wParam, LPARAM lParam)
if (sicd == NULL || strcmp(sicd->szModule, MODULE_NAME) != 0)
return 0;
- HANDLE hContact = (HANDLE) wParam;
+ HCONTACT hContact = (HCONTACT)wParam;
if (hContact == NULL)
return 0;