mirror of
https://github.com/reactos/wine.git
synced 2024-11-26 13:10:28 +00:00
shdocvw: Support setting an icon on the main iexplore window.
This commit is contained in:
parent
978b4898e5
commit
8182520f13
@ -37,6 +37,8 @@
|
|||||||
|
|
||||||
WINE_DEFAULT_DEBUG_CHANNEL(shdocvw);
|
WINE_DEFAULT_DEBUG_CHANNEL(shdocvw);
|
||||||
|
|
||||||
|
#define IDI_APPICON 101
|
||||||
|
|
||||||
static const WCHAR szIEWinFrame[] = { 'I','E','F','r','a','m','e',0 };
|
static const WCHAR szIEWinFrame[] = { 'I','E','F','r','a','m','e',0 };
|
||||||
|
|
||||||
static LRESULT iewnd_OnCreate(HWND hwnd, LPCREATESTRUCTW lpcs)
|
static LRESULT iewnd_OnCreate(HWND hwnd, LPCREATESTRUCTW lpcs)
|
||||||
@ -85,7 +87,7 @@ ie_window_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam)
|
|||||||
|
|
||||||
void register_iewindow_class(void)
|
void register_iewindow_class(void)
|
||||||
{
|
{
|
||||||
WNDCLASSW wc;
|
WNDCLASSEXW wc;
|
||||||
|
|
||||||
memset(&wc, 0, sizeof wc);
|
memset(&wc, 0, sizeof wc);
|
||||||
wc.style = 0;
|
wc.style = 0;
|
||||||
@ -93,13 +95,15 @@ void register_iewindow_class(void)
|
|||||||
wc.cbClsExtra = 0;
|
wc.cbClsExtra = 0;
|
||||||
wc.cbWndExtra = sizeof(InternetExplorer*);
|
wc.cbWndExtra = sizeof(InternetExplorer*);
|
||||||
wc.hInstance = shdocvw_hinstance;
|
wc.hInstance = shdocvw_hinstance;
|
||||||
wc.hIcon = 0;
|
wc.hIcon = LoadIconW(GetModuleHandleW(0), MAKEINTRESOURCEW(IDI_APPICON));
|
||||||
wc.hCursor = LoadCursorW(0, MAKEINTRESOURCEW(IDI_APPLICATION));
|
wc.hIconSm = LoadImageW(GetModuleHandleW(0), MAKEINTRESOURCEW(IDI_APPICON), IMAGE_ICON,
|
||||||
|
GetSystemMetrics(SM_CXSMICON), GetSystemMetrics(SM_CYSMICON), LR_SHARED);
|
||||||
|
wc.hCursor = LoadCursorW(0, MAKEINTRESOURCEW(IDC_ARROW));
|
||||||
wc.hbrBackground = 0;
|
wc.hbrBackground = 0;
|
||||||
wc.lpszClassName = szIEWinFrame;
|
wc.lpszClassName = szIEWinFrame;
|
||||||
wc.lpszMenuName = NULL;
|
wc.lpszMenuName = NULL;
|
||||||
|
|
||||||
RegisterClassW(&wc);
|
RegisterClassExW(&wc);
|
||||||
}
|
}
|
||||||
|
|
||||||
void unregister_iewindow_class(void)
|
void unregister_iewindow_class(void)
|
||||||
|
Loading…
Reference in New Issue
Block a user