wordpad: Fix Win64 warnings.

This commit is contained in:
Dmitry Timoshkov 2008-04-09 21:24:27 +09:00 committed by Alexandre Julliard
parent cde3101b8e
commit 2c8476a078
2 changed files with 4 additions and 4 deletions

View File

@ -85,7 +85,7 @@ void registry_read_pagemargins(HKEY hKey)
}
}
static void AddTextButton(HWND hRebarWnd, int string, int command, int id)
static void AddTextButton(HWND hRebarWnd, UINT string, UINT command, UINT id)
{
REBARBANDINFOW rb;
HINSTANCE hInstance = (HINSTANCE)GetWindowLongPtr(hRebarWnd, GWLP_HINSTANCE);
@ -95,7 +95,7 @@ static void AddTextButton(HWND hRebarWnd, int string, int command, int id)
LoadStringW(hInstance, string, text, MAX_STRING_LEN);
hButton = CreateWindowW(WC_BUTTONW, text,
WS_VISIBLE | WS_CHILD, 5, 5, 100, 15,
hRebarWnd, (HMENU)command, hInstance, NULL);
hRebarWnd, (HMENU)ULongToHandle(command), hInstance, NULL);
rb.cbSize = sizeof(rb);
rb.fMask = RBBIM_SIZE | RBBIM_CHILDSIZE | RBBIM_STYLE | RBBIM_CHILD | RBBIM_IDEALSIZE | RBBIM_ID;
@ -702,7 +702,7 @@ LRESULT print_preview(HWND hMainWnd)
if(preview.hdc2)
{
if((int)preview.hdc2 != -1)
if(preview.hdc2 != (HDC)-1)
DeleteDC(preview.hdc2);
preview.hdc2 = CreateCompatibleDC(hdc);
}

View File

@ -223,7 +223,7 @@ void registry_read_filelist(HWND hMainWnd)
!= ERROR_SUCCESS)
break;
mi.dwItemData = (DWORD)pFile[i];
mi.dwItemData = (ULONG_PTR)pFile[i];
wsprintfW(itemText, numFormat, i+1);
lstrcpyW(buffer, pFile[i]);