Module: wine Branch: master Commit: 20f899e78971ff8195ac7ca5e0a85e6d92a2615b URL: http://source.winehq.org/git/wine.git/?a=commit;h=20f899e78971ff8195ac7ca5e0...
Author: Alexandre Julliard julliard@winehq.org Date: Fri Apr 16 16:24:28 2010 +0200
appwiz.cpl: Use the fancy new icon.
---
dlls/appwiz.cpl/appwiz.c | 17 ++++++++++++++--- 1 files changed, 14 insertions(+), 3 deletions(-)
diff --git a/dlls/appwiz.cpl/appwiz.c b/dlls/appwiz.cpl/appwiz.c index 98b1019..2b68ee7 100644 --- a/dlls/appwiz.cpl/appwiz.c +++ b/dlls/appwiz.cpl/appwiz.c @@ -899,6 +899,17 @@ static BOOL CALLBACK MainDlgProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lPar return FALSE; }
+static int CALLBACK propsheet_callback( HWND hwnd, UINT msg, LPARAM lparam ) +{ + switch (msg) + { + case PSCB_INITIALIZED: + SendMessageW( hwnd, WM_SETICON, ICON_BIG, (LPARAM)LoadIconW( hInst, MAKEINTRESOURCEW(ICO_MAIN) )); + break; + } + return 0; +} + /****************************************************************************** * Name : StartApplet * Description: Main routine for applet @@ -928,14 +939,14 @@ static void StartApplet(HWND hWnd)
/* Fill out the PROPSHEETHEADER */ psh.dwSize = sizeof (PROPSHEETHEADERW); - psh.dwFlags = PSH_PROPSHEETPAGE | PSH_USEICONID; + psh.dwFlags = PSH_PROPSHEETPAGE | PSH_USEICONID | PSH_USECALLBACK; psh.hwndParent = hWnd; psh.hInstance = hInst; - psh.u.pszIcon = NULL; + psh.u.pszIcon = MAKEINTRESOURCEW(ICO_MAIN); psh.pszCaption = app_title; psh.nPages = 1; psh.u3.ppsp = &psp; - psh.pfnCallback = NULL; + psh.pfnCallback = propsheet_callback; psh.u2.nStartPage = 0;
/* Display the property sheet */