summaryrefslogtreecommitdiff
path: root/src/core/stduihist/history.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/stduihist/history.cpp')
-rw-r--r--src/core/stduihist/history.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/core/stduihist/history.cpp b/src/core/stduihist/history.cpp
index 55795e62bc..0978f94731 100644
--- a/src/core/stduihist/history.cpp
+++ b/src/core/stduihist/history.cpp
@@ -135,7 +135,7 @@ static void GetObjectSummary(DBEVENTINFO *dbei, TCHAR* str, int cbStr)
}
typedef struct {
- HANDLE hContact;
+ HCONTACT hContact;
HWND hwnd;
} THistoryThread;
@@ -201,14 +201,12 @@ static int HistoryDlgResizer(HWND, LPARAM, UTILRESIZECONTROL *urc)
static INT_PTR CALLBACK DlgProcHistory(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam)
{
- HANDLE hContact;
-
- hContact = (HANDLE)GetWindowLongPtr(hwndDlg, GWLP_USERDATA);
+ HCONTACT hContact = (HCONTACT)GetWindowLongPtr(hwndDlg, GWLP_USERDATA);
switch (msg) {
case WM_INITDIALOG:
TranslateDialogDefault(hwndDlg);
SetWindowLongPtr(hwndDlg, GWLP_USERDATA, (LONG_PTR)lParam);
- hContact = (HANDLE)lParam;
+ hContact = (HCONTACT)lParam;
WindowList_Add(hWindowList, hwndDlg, hContact);
Utils_RestoreWindowPosition(hwndDlg, hContact, "History", "");
{
@@ -378,7 +376,7 @@ static INT_PTR CALLBACK DlgProcHistoryFind(HWND hwndDlg, UINT msg, WPARAM wParam
static INT_PTR UserHistoryCommand(WPARAM wParam, LPARAM)
{
- HWND hwnd = WindowList_Find(hWindowList, (HANDLE)wParam);
+ HWND hwnd = WindowList_Find(hWindowList, (HCONTACT)wParam);
if (hwnd) {
SetForegroundWindow(hwnd);
SetFocus(hwnd);
@@ -390,7 +388,7 @@ static INT_PTR UserHistoryCommand(WPARAM wParam, LPARAM)
static int HistoryContactDelete(WPARAM wParam, LPARAM)
{
- HWND hwnd = WindowList_Find(hWindowList, (HANDLE)wParam);
+ HWND hwnd = WindowList_Find(hWindowList, (HCONTACT)wParam);
if (hwnd != NULL)
DestroyWindow(hwnd);
return 0;