diff options
author | (no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> | 2009-03-29 15:58:48 +0000 |
---|---|---|
committer | (no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> | 2009-03-29 15:58:48 +0000 |
commit | d1ef727e95bac24bc97ebe5cb3c3f0ee42271f86 (patch) | |
tree | 712f6e5275e7fb54b1814c73c372fca660028632 /yapp/popup_history_dlg.cpp | |
parent | ba2f55ddc45ea29cce65ad1bfcc178da9684141f (diff) |
x64 portability
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@439 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'yapp/popup_history_dlg.cpp')
-rw-r--r-- | yapp/popup_history_dlg.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/yapp/popup_history_dlg.cpp b/yapp/popup_history_dlg.cpp index 1373526..2ab979b 100644 --- a/yapp/popup_history_dlg.cpp +++ b/yapp/popup_history_dlg.cpp @@ -220,7 +220,7 @@ void MoveCustomControl(HWND hWnd, int renderer) case RENDER_HISTORYPP:
case RENDER_IEVIEW:
{
- PopupHistoryWindowData *data = (PopupHistoryWindowData *) GetWindowLong(hWnd, GWL_USERDATA);
+ PopupHistoryWindowData *data = (PopupHistoryWindowData *) GetWindowLongPtr(hWnd, GWLP_USERDATA);
if (data)
{
IEVIEWWINDOW ieWnd = {0};
@@ -259,7 +259,7 @@ void LoadRenderer(HWND hWnd, int renderer) PopupHistoryWindowData *data = (PopupHistoryWindowData *) malloc(sizeof(PopupHistoryWindowData)); //create custom control data
data->hIEView = ieWnd.hwnd;
ShowWindow(data->hIEView, SW_SHOW);
- SetWindowLong(hWnd, GWL_USERDATA, (LONG) data); //set it as the window's user data
+ SetWindowLongPtr(hWnd, GWLP_USERDATA, (LONG_PTR) data); //set it as the window's user data
ShowWindow(GetDlgItem(hWnd, IDC_LST_HISTORY), SW_HIDE);
//SetWindowPos(GetDlgItem(hWnd, IDC_LST_HISTORY), HWND_BOTTOM, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE);
@@ -275,7 +275,7 @@ void UnloadRenderer(HWND hWnd, int renderer) case RENDER_HISTORYPP:
case RENDER_IEVIEW:
{
- PopupHistoryWindowData *data = (PopupHistoryWindowData *) GetWindowLong(hWnd, GWL_USERDATA);
+ PopupHistoryWindowData *data = (PopupHistoryWindowData *) GetWindowLongPtr(hWnd, GWLP_USERDATA);
if (data)
{
@@ -301,7 +301,7 @@ void DeleteOldEvents(HWND hWnd, int renderer) case RENDER_HISTORYPP:
case RENDER_IEVIEW:
{
- PopupHistoryWindowData *data = (PopupHistoryWindowData *) GetWindowLong(hWnd, GWL_USERDATA);
+ PopupHistoryWindowData *data = (PopupHistoryWindowData *) GetWindowLongPtr(hWnd, GWLP_USERDATA);
if (data)
{
IEVIEWEVENT ieEvent = {0};
@@ -352,7 +352,7 @@ IEVIEWEVENTDATA *CreateAndFillEventData(PopupHistoryData *popupItem) void AddEventsCustomControl(HWND hWnd, int renderer, TCHAR *filter, SIG_MATCHESFILTER MatchesFilter)
{
- PopupHistoryWindowData *pwData = (PopupHistoryWindowData *) GetWindowLong(hWnd, GWL_USERDATA);
+ PopupHistoryWindowData *pwData = (PopupHistoryWindowData *) GetWindowLongPtr(hWnd, GWLP_USERDATA);
if (pwData)
{
IEVIEWEVENT ieEvent = {0};
@@ -600,7 +600,7 @@ void LoadHistoryColumns(HWND hHistoryList) }
//this is the history list window handler
-BOOL CALLBACK DlgProcHistLst(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
+INT_PTR CALLBACK DlgProcHistLst(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
static int bInitializing;
@@ -620,7 +620,7 @@ BOOL CALLBACK DlgProcHistLst(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) ListView_SetExtendedListViewStyleEx(hHistoryList, LVS_EX_FULLROWSELECT, LVS_EX_FULLROWSELECT);
- oldPopupsListProc = (WNDPROC) SetWindowLong(hHistoryList, GWL_WNDPROC, (LONG) PopupsListSubclassProc);
+ oldPopupsListProc = (WNDPROC) SetWindowLongPtr(hHistoryList, GWLP_WNDPROC, (LONG_PTR) PopupsListSubclassProc);
LoadHistoryColumns(hHistoryList);
|