Modifying the Download Dialog - Win 9x/ME/2K/XP      



To start, open up ResHacker and browse to shdoclc.dll. Dialog #4352 is the Download Dialog and #4416 is the Save Dialog. I am just going to talk about the download dialog.

Some things that happen with the dialog to make it easier to understand and mod are:
  1. Control 4373 is hidden until the download is done or could not complete (strings are in string table #46 and #76, I think, haven't tested these)
  2. Control 4361 is placed ontop of 4374, 4375 and 4357 when the file size is unknown
  3. Control 4374 is placed ontop when downloading and Control 4375 is placed ontop when the download is done
  4. Control 4357 is Time Remaining, 4370 is where you are saving the file and 4368 is the Rate
Strings:
  1. Control 4355 is written to depending on status: Saved, Saving and Opening. Strings are in table #47
  2. Title percentage is in table #48
  3. Control 4354's string is in table #46. It's the %1!.1023ws! from %2!.1023ws!
  4. Time is in table #47 and rate is in #76

Ok, enough chit-chat, now on to the modding:

First thing I did was change the settings for control 4356, the progess bar. I turned on PBS_SMOOTH and PBS_VERTICAL. Then I deleted all the icons and AVIs, I just don't like the look of them. Then I positioned my other controls to where I liked them, changed some strings and I centered controls 4354 and 4373. Instead of deleting my open folder button, I just sized the height to 0. Because my Estimated Time is below the text, I had to size control 4361 (size unknown) to 20 to cover up control 4357 when its placed on top. Here is my dialog:

4352 DIALOG 60, 60, 230, 140
STYLE DS_MODALFRAME | DS_NOIDLEMSG | DS_SETFOREGROUND | DS_CENTER | WS_MINIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "File Download"
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
FONT 6, "hooge 05_53"
{
CONTROL "File Info:", 4355, STATIC, SS_SIMPLE | SS_NOPREFIX | WS_CHILD | WS_VISIBLE, 35, 20, 190, 10
CONTROL "File Location", 4354, STATIC, SS_CENTER | SS_NOPREFIX | WS_CHILD | WS_VISIBLE, 35, 5, 190, 10
CONTROL "Download Complete", 4373, STATIC, SS_CENTER | SS_NOPREFIX | WS_CHILD, 35, 5, 190, 10
CONTROL "", 4356, "msctls_progress32", PBS_SMOOTH | PBS_VERTICAL | WS_CHILD, 5, 5, 25, 130
CONTROL "Size Unknown", 4361, STATIC, SS_SIMPLE | SS_NOPREFIX | WS_CHILD, 35, 45, 160, 20
CONTROL "Time Left:", 4374, STATIC, SS_SIMPLE | SS_NOPREFIX | WS_CHILD | WS_VISIBLE, 35, 45, 160, 10
CONTROL "Downloaded:", 4375, STATIC, SS_SIMPLE | SS_NOPREFIX | WS_CHILD, 35, 45, 190, 10
CONTROL "Rate:", -1, STATIC, SS_SIMPLE | SS_NOPREFIX | WS_CHILD | WS_VISIBLE, 35, 70, 190, 10
CONTROL "Time", 4357, STATIC, SS_SIMPLE | SS_NOPREFIX | WS_CHILD | WS_VISIBLE, 45, 55, 170, 10
CONTROL "File", 4370, STATIC, SS_SIMPLE | SS_NOPREFIX | WS_CHILD | WS_VISIBLE, 45, 30, 170, 10
CONTROL "Rate", 4368, STATIC, SS_SIMPLE | SS_NOPREFIX | WS_CHILD | WS_VISIBLE, 45, 80, 170, 10
CONTROL "&Close dialog after completion", 4371, BUTTON, BS_AUTOCHECKBOX | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 45, 124, 170, 10
CONTROL "&Open", 4377, BUTTON, BS_PUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 60, 100, 50, 14
CONTROL "Open &Folder", 4376, BUTTON, BS_PUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 120, 100, 20, 0
CONTROL "Cancel", 2, BUTTON, BS_DEFPUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 150, 100, 50, 14
CONTROL "", -1, "NativeFontCtl", 0x50000002, 0, 0, 0, 0
}

Its a pretty easy mod to do, it's just a time consumer like most are. Happy Modding.

by ir_mudd