summaryrefslogtreecommitdiff
path: root/plugins/TooltipNotify/src
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2013-09-24 18:08:07 +0000
committerKirill Volinsky <mataes2007@gmail.com>2013-09-24 18:08:07 +0000
commit555ce4dfcc5b028219da4e6401a32f7f976044ae (patch)
tree77ad49c389f73170ae4ece6d79742e5dff00d1ec /plugins/TooltipNotify/src
parentef62ee59a0cd7ce34af0f62fbe4768ac12320edb (diff)
plugins cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@6211 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TooltipNotify/src')
-rw-r--r--plugins/TooltipNotify/src/Tooltip.cpp13
1 files changed, 2 insertions, 11 deletions
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<pfnSetLayeredWindowAttributes_t>
- (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)