[prev in list] [next in list] [prev in thread] [next in thread]
List: wine-devel
Subject: Re: comctl32: Shed an unused parameter of TOOLTIPS_HitTestT and rename
From: James McKenzie <jjmckenzie51 () gmail ! com>
Date: 2011-02-27 15:18:29
Message-ID: 4D6A6B45.3060606 () earthlink ! net
[Download RAW message or body]
On 2/27/11 1:46 AM, Nikolay Sivov wrote:
> On 2/26/2011 23:01, Gerald Pfeifer wrote:
>> ---
>> dlls/comctl32/tooltips.c | 7 +++----
>> 1 files changed, 3 insertions(+), 4 deletions(-)
>>
>> diff --git a/dlls/comctl32/tooltips.c b/dlls/comctl32/tooltips.c
>> index a2e58e0..445845c 100644
>> --- a/dlls/comctl32/tooltips.c
>> +++ b/dlls/comctl32/tooltips.c
>> @@ -1396,8 +1396,7 @@ TOOLTIPS_GetToolInfoT (const TOOLTIPS_INFO
>> *infoPtr, TTTOOLINFOW *ti, BOOL isW)
>>
>>
>> static LRESULT
>> -TOOLTIPS_HitTestT (const TOOLTIPS_INFO *infoPtr, LPTTHITTESTINFOW
>> lptthit,
>> - BOOL isW)
>> +TOOLTIPS_HitTest (const TOOLTIPS_INFO *infoPtr, LPTTHITTESTINFOW
>> lptthit)
>> {
>> TTTOOL_INFO *toolPtr;
>> INT nTool;
>> @@ -2209,8 +2208,8 @@ TOOLTIPS_WindowProc (HWND hwnd, UINT uMsg,
>> WPARAM wParam, LPARAM lParam)
>>
>> case TTM_HITTESTA:
>> case TTM_HITTESTW:
>> - return TOOLTIPS_HitTestT (infoPtr, (LPTTHITTESTINFOW)lParam,
>> - uMsg == TTM_HITTESTW);
>> + return TOOLTIPS_HitTest (infoPtr, (LPTTHITTESTINFOW)lParam);
>> +
>> case TTM_NEWTOOLRECTA:
>> case TTM_NEWTOOLRECTW:
>> return TOOLTIPS_NewToolRectT (infoPtr, (LPTTTOOLINFOW)lParam);
> This should properly handle text instead of removing A/W case.
>
>
Even if all it does is convert ANSI to UNICODE and then call the UNICODE
case correct?
This is more a question on how I should handle a case I'm working with
for riched20, not a comment on this particular piece of code.
James McKenzie
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic