Fixes problems with LINK
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2671 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
c9456e766f
commit
3f4c97dc96
2 changed files with 4 additions and 4 deletions
|
@ -757,16 +757,16 @@ int StaticLINKWindowProc(HWND hWin, UINT uMsg, LPARAM wParam, WPARAM lParam)
|
||||||
{
|
{
|
||||||
PAINTSTRUCT ps;
|
PAINTSTRUCT ps;
|
||||||
HFONT hOldFont;
|
HFONT hOldFont;
|
||||||
HFONT hFont = (HFONT)SendMessage(hWin, WM_GETFONT, 0, 0);
|
|
||||||
HDC pDC = BeginPaint(hWin, &ps);
|
HDC pDC = BeginPaint(hWin, &ps);
|
||||||
|
HFONT hFont = (HFONT)SendMessage(hMainWindow, WM_GETFONT, 0, 0);
|
||||||
int OldMode = SetBkMode(pDC, TRANSPARENT);
|
int OldMode = SetBkMode(pDC, TRANSPARENT);
|
||||||
int OldTextColor;
|
int OldTextColor;
|
||||||
|
|
||||||
if ( GetSysColorBrush(COLOR_HOTLIGHT) )
|
if ( GetSysColorBrush(COLOR_HOTLIGHT) )
|
||||||
OldTextColor = SetTextColor(pDC, GetSysColor(COLOR_HOTLIGHT));
|
OldTextColor = SetTextColor(pDC, GetSysColor(COLOR_HOTLIGHT));
|
||||||
else
|
else
|
||||||
OldTextColor = SetTextColor(pDC, RGB(0,0,255)); // Win95/NT4 arrggg!!!
|
OldTextColor = SetTextColor(pDC, RGB(0,0,255)); // Win95/NT4 arrggg!!!
|
||||||
|
|
||||||
hOldFont = (HFONT)SelectObject(pDC, hFont);
|
hOldFont = (HFONT)SelectObject(pDC, hFont);
|
||||||
GetClientRect(hWin, &pFields[StaticField].rect);
|
GetClientRect(hWin, &pFields[StaticField].rect);
|
||||||
|
|
||||||
|
@ -814,7 +814,7 @@ int StaticLINKWindowProc(HWND hWin, UINT uMsg, LPARAM wParam, WPARAM lParam)
|
||||||
|
|
||||||
if ( PtInRect(&pFields[StaticField].rect, pt) )
|
if ( PtInRect(&pFields[StaticField].rect, pt) )
|
||||||
{
|
{
|
||||||
ShellExecute(hWin, "", pFields[StaticField].pszState, "", "", SW_SHOWDEFAULT);
|
ShellExecute(hMainWindow, NULL, pFields[StaticField].pszState, NULL, NULL, SW_SHOWDEFAULT);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue