From 555ce4dfcc5b028219da4e6401a32f7f976044ae Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Tue, 24 Sep 2013 18:08:07 +0000 Subject: plugins cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@6211 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TooltipNotify/src/Tooltip.cpp | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'plugins/TooltipNotify') diff --git a/plugins/TooltipNotify/src/Tooltip.cpp b/plugins/TooltipNotify/src/Tooltip.cpp index 9821af1232..ccb92c15c5 100644 --- a/plugins/TooltipNotify/src/Tooltip.cpp +++ b/plugins/TooltipNotify/src/Tooltip.cpp @@ -169,17 +169,8 @@ void CTooltip::Hide() void CTooltip::set_Translucency(BYTE bAlpha) { - typedef BOOL (WINAPI *pfnSetLayeredWindowAttributes_t)(HWND, COLORREF, BYTE, DWORD); - pfnSetLayeredWindowAttributes_t pfnSetLayeredWindowAttributes; - - pfnSetLayeredWindowAttributes = reinterpret_cast - (GetProcAddress(GetModuleHandle(_T("user32.dll")), "SetLayeredWindowAttributes")); - - if (pfnSetLayeredWindowAttributes && - SetWindowLongPtr(m_hWnd, GWL_EXSTYLE, GetWindowLongPtr(m_hWnd, GWL_EXSTYLE) | WS_EX_LAYERED) != 0) - { - pfnSetLayeredWindowAttributes(m_hWnd, RGB(0,0,0), bAlpha, LWA_ALPHA); - } + if (SetWindowLongPtr(m_hWnd, GWL_EXSTYLE, GetWindowLongPtr(m_hWnd, GWL_EXSTYLE) | WS_EX_LAYERED) != 0) + SetLayeredWindowAttributes(m_hWnd, RGB(0,0,0), bAlpha, LWA_ALPHA); } void CTooltip::set_TransparentInput(BOOL bOnOff) -- cgit v1.2.3