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:
ramon18 2003-06-23 21:48:45 +00:00
parent c9456e766f
commit 3f4c97dc96
2 changed files with 4 additions and 4 deletions

View file

@ -757,16 +757,16 @@ int StaticLINKWindowProc(HWND hWin, UINT uMsg, LPARAM wParam, WPARAM lParam)
{
PAINTSTRUCT ps;
HFONT hOldFont;
HFONT hFont = (HFONT)SendMessage(hWin, WM_GETFONT, 0, 0);
HDC pDC = BeginPaint(hWin, &ps);
HFONT hFont = (HFONT)SendMessage(hMainWindow, WM_GETFONT, 0, 0);
int OldMode = SetBkMode(pDC, TRANSPARENT);
int OldTextColor;
if ( GetSysColorBrush(COLOR_HOTLIGHT) )
OldTextColor = SetTextColor(pDC, GetSysColor(COLOR_HOTLIGHT));
else
OldTextColor = SetTextColor(pDC, RGB(0,0,255)); // Win95/NT4 arrggg!!!
hOldFont = (HFONT)SelectObject(pDC, hFont);
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) )
{
ShellExecute(hWin, "", pFields[StaticField].pszState, "", "", SW_SHOWDEFAULT);
ShellExecute(hMainWindow, NULL, pFields[StaticField].pszState, NULL, NULL, SW_SHOWDEFAULT);
}
return 0;
}