winhelp: Implemented SetPopupColor macro.

This commit is contained in:
Eric Pouech 2008-07-12 10:37:08 +02:00 committed by Alexandre Julliard
parent 448fed2055
commit 7d0b6bd4a6
3 changed files with 11 additions and 3 deletions

View File

@ -133,6 +133,9 @@ typedef struct tagHlpFileFile
HLPFILE_WINDOWINFO* windows; HLPFILE_WINDOWINFO* windows;
HICON hIcon; HICON hIcon;
BOOL has_popup_color;
COLORREF popup_color;
LPSTR help_on_file; LPSTR help_on_file;
} HLPFILE; } HLPFILE;

View File

@ -904,9 +904,11 @@ void CALLBACK MACRO_SetHelpOnFile(LPCSTR str)
strcpy(Globals.active_win->page->file->help_on_file, str); strcpy(Globals.active_win->page->file->help_on_file, str);
} }
void CALLBACK MACRO_SetPopupColor(LONG u1, LONG u2, LONG u3) void CALLBACK MACRO_SetPopupColor(LONG r, LONG g, LONG b)
{ {
WINE_FIXME("(%u, %u, %u)\n", u1, u2, u3); WINE_TRACE("(%x, %x, %x)\n", r, g, b);
Globals.active_win->page->file->has_popup_color = TRUE;
Globals.active_win->page->file->popup_color = RGB(r, g, b);
} }
void CALLBACK MACRO_ShellExecute(LPCSTR str1, LPCSTR str2, LONG u1, LONG u2, LPCSTR str3, LPCSTR str4) void CALLBACK MACRO_ShellExecute(LPCSTR str1, LPCSTR str2, LONG u1, LONG u2, LPCSTR str3, LPCSTR str4)

View File

@ -228,6 +228,9 @@ static HLPFILE_WINDOWINFO* WINHELP_GetPopupWindowInfo(HLPFILE* hlpfile,
wi.style = SW_SHOW; wi.style = SW_SHOW;
wi.win_style = WS_POPUP | WS_BORDER; wi.win_style = WS_POPUP | WS_BORDER;
if (parent->page->file->has_popup_color)
wi.sr_color = parent->page->file->popup_color;
else
wi.sr_color = parent->info->sr_color; wi.sr_color = parent->info->sr_color;
wi.nsr_color = 0xFFFFFF; wi.nsr_color = 0xFFFFFF;