winhelp: Implemented SetPopupColor macro.
This commit is contained in:
parent
448fed2055
commit
7d0b6bd4a6
|
@ -133,6 +133,9 @@ typedef struct tagHlpFileFile
|
|||
HLPFILE_WINDOWINFO* windows;
|
||||
HICON hIcon;
|
||||
|
||||
BOOL has_popup_color;
|
||||
COLORREF popup_color;
|
||||
|
||||
LPSTR help_on_file;
|
||||
} HLPFILE;
|
||||
|
||||
|
|
|
@ -904,9 +904,11 @@ void CALLBACK MACRO_SetHelpOnFile(LPCSTR 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)
|
||||
|
|
|
@ -228,6 +228,9 @@ static HLPFILE_WINDOWINFO* WINHELP_GetPopupWindowInfo(HLPFILE* hlpfile,
|
|||
|
||||
wi.style = SW_SHOW;
|
||||
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.nsr_color = 0xFFFFFF;
|
||||
|
||||
|
|
Loading…
Reference in New Issue