Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/plugin/PluginClass.cpp

Issue 5696885582987264: Issue 176, Issue 711 - AdBlock Plus icon clipped in IE at high DPI, ABP icon frequently jumps in IE8 (Closed)
Patch Set: Created Jan. 22, 2015, 6:37 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/plugin/PluginClass.cpp
===================================================================
--- a/src/plugin/PluginClass.cpp
+++ b/src/plugin/PluginClass.cpp
@@ -682,10 +682,11 @@
if (AdblockPlus::IE::InstalledMajorVersion() > 6)
{
RECT rect;
- BOOL rectRes = GetClientRect(m_hStatusBarWnd, &rect);
+ //Get the RECT for the leftmost pane (the status text pane)
+ BOOL rectRes = ::SendMessage(m_hStatusBarWnd, SB_GETRECT, 0, (LPARAM)&rect);
if (rectRes == TRUE)
{
- MoveWindow(m_hPaneWnd, rect.right - 200, 0, m_nPaneWidth, rect.bottom - rect.top, TRUE);
+ MoveWindow(m_hPaneWnd, rect.right - m_nPaneWidth, 0, m_nPaneWidth, rect.bottom - rect.top, TRUE);
}
}
}
@@ -1617,7 +1618,7 @@
{
HICON hIcon = GetStatusBarIcon(pClass->GetTab()->GetDocumentUrl());
- int offx = (rcClient.Height() - 16)/2 + nDrawEdge;
+ int offx = nDrawEdge;
if (hIcon)
{
::DrawIconEx(hDC, offx, (rcClient.Height() - 16)/2 + 2, hIcon, 16, 16, NULL, NULL, DI_NORMAL);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld