![]() |
#1 |
Junior Member
Join Date: Dec 2010
Posts: 7
|
inetc background colour on banner mode?
Hi All
I've changed the background colour of my nsDialogs pages using the normal SetCtlColors technique but when I trigger an inetc download in banner mode it has a grey background (see picture). Does anyone know how to change this? I've had a look using AutoIt (to find the ID) and Resource Hacker but can't seem to find what I'm looking for. If it helps, the inetc download is in the leave function of my page. Cheers. |
![]() |
![]() |
![]() |
#2 |
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
You probably need to modify the plug-in.
Stu |
![]() |
![]() |
![]() |
#3 |
Major Dude
|
Try to modify IDD_DIALOG1 or IDD_DIALOG2 in .rc file of plugin using Visual Studio and recompile it.
Cool looking installers with custom design: www.graphical-installer.com Create Setup Pages easily: www.install-designer.com Build installers in Visual Studio 2005-2019: www.visual-installer.com or RAD Studio 2009, 2010, XE-10.4 Sydney: www.rad-installer.com |
![]() |
![]() |
![]() |
#4 |
Junior Member
Join Date: Dec 2010
Posts: 7
|
Thanks, I'll give it a go and report back.
|
![]() |
![]() |
![]() |
#5 |
Junior Member
Join Date: Aug 2011
Posts: 3
|
![]()
hello
i have solved this issue. we could not able to set background color on .rc files. so, you have to modify code of inetc. i have attached inetc.cpp you can look at on that with below code. HBRUSH g_hbrBackground = CreateSolidBrush(RGB(217, 212, 213)); // background //color /***************************************************** * FUNCTION NAME: dlgProc() * PURPOSE: * dlg message handling procedure * SPECIAL CONSIDERATIONS: * todo: better dialog design *****************************************************/ BOOL WINAPI dlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam ) { switch(message) { case WM_INITDIALOG: onInitDlg(hDlg); centerDlg(hDlg); break; case WM_PAINT: // child dialog redraw problem. return false is important RedrawWindow(GetDlgItem(hDlg, IDC_STATIC1), NULL, NULL, RDW_INVALIDATE); RedrawWindow(GetDlgItem(hDlg, IDCANCEL), NULL, NULL, RDW_INVALIDATE); RedrawWindow(GetDlgItem(hDlg, IDC_PROGRESS1), NULL, NULL, RDW_INVALIDATE); UpdateWindow(GetDlgItem(hDlg, IDC_STATIC1)); UpdateWindow(GetDlgItem(hDlg, IDCANCEL)); UpdateWindow(GetDlgItem(hDlg, IDC_PROGRESS1)); return false; case WM_TIMER: if(!silent && IsWindow(hDlg)) { // long connection period and paused state updates if(status != ST_DOWNLOAD && GetTickCount() - transfStart > PROGRESS_MS) transfStart += PROGRESS_MS; if(popup) onTimer(hDlg); else progress_callback(); RedrawWindow(GetDlgItem(hDlg, IDC_STATIC1), NULL, NULL, RDW_INVALIDATE); RedrawWindow(GetDlgItem(hDlg, IDCANCEL), NULL, NULL, RDW_INVALIDATE); RedrawWindow(GetDlgItem(hDlg, IDC_PROGRESS1), NULL, NULL, RDW_INVALIDATE); } break; case WM_COMMAND: switch(LOWORD(wParam)) { case IDCANCEL: if(nocancel) break; if(szQuestion && MessageBox(hDlg, szQuestion, *szCaption ? szCaption : PLUGIN_NAME, MB_ICONWARNING|MB_YESNO) == IDNO) break; status = ST_CANCELLED; case IDOK: if(status != ST_CANCELLED && HIWORD(wParam) != INTERNAL_OK) break; // otherwise in the silent mode next banner windows may go to background // if(silent) sf(hDlg); KillTimer(hDlg, 1); DestroyWindow(hDlg); break; } break; case WM_CTLCOLORSTATIC: { HDC hdcStatic = (HDC)wParam; SetTextColor(hdcStatic, RGB(24, 49, 75)); // foreground color SetBkMode(hdcStatic, TRANSPARENT); return (LONG)g_hbrBackground; } break; case WM_CTLCOLORDLG: return (LONG)g_hbrBackground; default: return false; } return true; } |
![]() |
![]() |
![]() |
#6 |
Member
Join Date: May 2007
Location: Orange County, CA, U.S.A.
Posts: 73
|
Thought I'd resurrect this thread for an updated solution.
Our installer uses UltraModernUI with alternate branding that uses 2 different color schemes, so I needed a more flexible solution than rmangroliya's, so my quick and dirty solution was to adapt the idea here, basing it on the current latest version (1.0.5.2), and adding 2 parameters, /textcolor="RRGGBB" and /bgcolor="RRGGBB". This way, I can just pass along the ${UMUI_TEXT_COLOR} and ${MUI_BGCOLOR} defines. |
![]() |
![]() |
![]() |
|
Tags |
background, color, colour, inetc |
Thread Tools | Search this Thread |
Display Modes | |
|
|