https://git.reactos.org/?p=reactos.git;a=commitdiff;h=c3e2a547897d28754668b…
commit c3e2a547897d28754668baa4ffde00a2cf3db658
Author: Hervé Poussineau <hpoussin(a)reactos.org>
AuthorDate: Sat Mar 30 22:49:16 2019 +0100
Commit: Hervé Poussineau <hpoussin(a)reactos.org>
CommitDate: Mon Apr 1 11:38:32 2019 +0200
[SDK] Fix compilation error
../sdk/include/reactos/rosctrls.h:283:59: error: no matching function for call to
'CToolbar<TItemData>::SendMessageW(int, HWND__*&, int)'
return SendMessageW(TB_SETTOOLTIPS, hWndTooltip, 0);
../sdk/include/psdk/winuser.h:5543:21: note: candidate: LRESULT
ATL::CWindow::SendMessageW(UINT, WPARAM, LPARAM) <near match>
../sdk/include/psdk/winuser.h:5543:21: note: conversion of argument 2 would be
ill-formed
---
sdk/include/reactos/rosctrls.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sdk/include/reactos/rosctrls.h b/sdk/include/reactos/rosctrls.h
index 6d3481a042..e81a0c4cfb 100644
--- a/sdk/include/reactos/rosctrls.h
+++ b/sdk/include/reactos/rosctrls.h
@@ -280,7 +280,7 @@ public: // Configuration methods
DWORD SetTooltip(HWND hWndTooltip)
{
- return SendMessageW(TB_SETTOOLTIPS, hWndTooltip, 0);
+ return SendMessageW(TB_SETTOOLTIPS, reinterpret_cast<WPARAM>(hWndTooltip),
0);
}
INT GetHotItem()