Vishal Gupta
Microsoft MVP
Hi guys!
Today a question came into my mind that why Hibernate button is not visible in Shutdown dialog box and why it appears when we press <SHIFT> key?
So I opened msgina.dll file into Resource Hacker and started R&D with it.
I checked in 20100 dialog that there was an entry for Hibernate button, still it was not visible in shutdown dialog box. But when I checked its properties, I was surprised. Its Left distance and Top distance were set to 30093, 30049 respectively. It means it was there but was set to not appear in dialog box coz the dialog box size was lesser than the hibernate button.
So I set its distance from LEFT & TOP to 5 and VOILLA, it started to show in the dialog box.
Then I did some more R&D with it and added a string saying "Hibernate" and changed other items places so that all 4 items "Hibernate, Stand by, Shut down, restart" can be shown in dialog box.
So the FINAL thing is that, u hv to just change the LEFT & TOP distances of Hibernate button and it'll be visible in shutdown dialog box!
Also I'm posting the contents of the dialog box, so that u can easily just copy-paste them in the required place!
So here is the step-by-step tutorial:
1.) Open %windir%\system32\msgina.dll file into Resource Hacker.
2.) Goto Dialog -> 20100 -> 1033.
3.) If u want the following look (Hibernate button at bottom-center) :
*img420.imageshack.us/img420/7774/hibernatebuttonts2.jpg
Paste following code:
4.) OR if u want following look (Hibernate button at the same place as of other items with added string) :
*img292.imageshack.us/img292/991/hibernateenablels4.jpg
Then paste following code:
PS: Pressing <SHIFT> key will still work...
UPDATE: Don't forget to visit following threads:
COMPLETE GUIDE: For Windows Customization - WindowBlinds, Style XP & msstyles
MASTER TUTORIAL: Make Your Windows XP Super Fast !!!
TUTORIAL: Make Your Windows XP look-a-like Windows Vista
List of Some Useful System Utilities!
TUTORIAL: All About Resource Hacker! A Brief Tutorial
TUTORIAL: List of Files to be hacked using Resource Hacker!
TUTORIAL: List of some Interesting Hacks, which can be made using Resource Hacker!
TUTORIAL: Changing Windows XP Login Screen Text Entries !
TUTORIAL: How to enable "VIEW" Menu on Desktop !
TUTORIAL: Add any Image in Desktop/Explorer Context Menu !
TUTORIAL: Add Your Favorite Program Shortcut in Desktop Context Menu!
TUTORIAL: Add "INSERT" Option in CD Drive Context Menu !
TUTORIAL: How to use the free space under RUN in New Windows XP Start Menu!
TUTORIAL: Change Look-n-Feel of Windows XP Start Menu
TUTORIAL: How 2 change XP Boot Screen using Tuneup Utilities!
TUTORIAL: All Kinds of Restrictions for Windows XP/2003
TUTORIAL: Hide Menubar, Addressbar & Throbber in My Computer
TUTORIAL: How to Add / Remove Entries in Context Menus
TUTORIAL: How to get FREE space in Windows?
TUTORIAL: Windows XP Services that can be Safely set to MANUAL!!!
TUTORIAL: Add DEVICE MANAGER, CONTROL PANEL, Etc. in My Computer Context Menu !
Remove Save Schemes & Other Entry from Desktop Context Menu!
TUTORIAL: How to Create Yahoo! Messenger Skins
TUTORIAL: Remove ADs from New Yahoo! Messenger 8 Final !
TUTORIAL: Change Yahoo! Messenger Default Status Messages With Your Own Messages
Today a question came into my mind that why Hibernate button is not visible in Shutdown dialog box and why it appears when we press <SHIFT> key?
So I opened msgina.dll file into Resource Hacker and started R&D with it.
I checked in 20100 dialog that there was an entry for Hibernate button, still it was not visible in shutdown dialog box. But when I checked its properties, I was surprised. Its Left distance and Top distance were set to 30093, 30049 respectively. It means it was there but was set to not appear in dialog box coz the dialog box size was lesser than the hibernate button.
So I set its distance from LEFT & TOP to 5 and VOILLA, it started to show in the dialog box.
Then I did some more R&D with it and added a string saying "Hibernate" and changed other items places so that all 4 items "Hibernate, Stand by, Shut down, restart" can be shown in dialog box.
So the FINAL thing is that, u hv to just change the LEFT & TOP distances of Hibernate button and it'll be visible in shutdown dialog box!
Also I'm posting the contents of the dialog box, so that u can easily just copy-paste them in the required place!
So here is the step-by-step tutorial:
1.) Open %windir%\system32\msgina.dll file into Resource Hacker.
2.) Goto Dialog -> 20100 -> 1033.
3.) If u want the following look (Hibernate button at bottom-center) :
*img420.imageshack.us/img420/7774/hibernatebuttonts2.jpg
Paste following code:
Code:
20100 DIALOGEX 0, 0, 208, 122
STYLE DS_SYSMODAL | DS_SETFOREGROUND | WS_POPUP | WS_BORDER
CAPTION ""
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
FONT 8, "MS Shell Dlg"
{
CONTROL "Flag", 20101, STATIC, SS_OWNERDRAW | WS_CHILD | WS_VISIBLE, 176, 0, 32, 26
CONTROL "Good Bye", 20102, STATIC, SS_OWNERDRAW | WS_CHILD | WS_VISIBLE, 7, 0, 162, 26
CONTROL "&Stand By", 20104, BUTTON, BS_OWNERDRAW | BS_NOTIFY | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 45, 47, 22, 20
CONTROL "Switch &Off", 20103, BUTTON, BS_OWNERDRAW | BS_NOTIFY | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 91, 47, 22, 20
CONTROL "&Reboot", 20105, BUTTON, BS_OWNERDRAW | BS_NOTIFY | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 140, 47, 22, 20
CONTROL "&Hibernate", 20106, BUTTON, BS_PUSHBUTTON | BS_NOTIFY | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 79, 94, 48, 20
CONTROL "", 20108, STATIC, SS_OWNERDRAW | WS_CHILD | WS_VISIBLE | WS_DISABLED, 22, 73, 50, 8
CONTROL "", 20107, STATIC, SS_OWNERDRAW | WS_CHILD | WS_VISIBLE | WS_DISABLED, 79, 73, 50, 8
CONTROL "", 20109, STATIC, SS_OWNERDRAW | WS_CHILD | WS_VISIBLE | WS_DISABLED, 136, 73, 50, 8
}
*img292.imageshack.us/img292/991/hibernateenablels4.jpg
Then paste following code:
Code:
20100 DIALOGEX 0, 0, 208, 122
STYLE DS_SYSMODAL | DS_SETFOREGROUND | WS_POPUP | WS_BORDER
CAPTION ""
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
FONT 8, "MS Shell Dlg"
{
CONTROL "Flag", 20101, STATIC, SS_OWNERDRAW | WS_CHILD | WS_VISIBLE, 176, 0, 32, 26
CONTROL "Good Bye", 20102, STATIC, SS_OWNERDRAW | WS_CHILD | WS_VISIBLE, 7, 0, 162, 26
CONTROL "&Stand By", 20104, BUTTON, BS_OWNERDRAW | BS_NOTIFY | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 68, 49, 22, 20
CONTROL "Switch &Off", 20103, BUTTON, BS_OWNERDRAW | BS_NOTIFY | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 117, 49, 22, 20
CONTROL "&Reboot", 20105, BUTTON, BS_OWNERDRAW | BS_NOTIFY | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 169, 49, 22, 20
CONTROL "&Hibernate", 20106, BUTTON, BS_PUSHBUTTON | BS_NOTIFY | WS_CHILD | WS_VISIBLE, 9, 49, 39, 20
CONTROL "", 20108, STATIC, SS_OWNERDRAW | WS_CHILD | WS_VISIBLE | WS_DISABLED, 55, 73, 50, 8
CONTROL "", 20107, STATIC, SS_OWNERDRAW | WS_CHILD | WS_VISIBLE | WS_DISABLED, 105, 73, 50, 8
CONTROL "", 20109, STATIC, SS_OWNERDRAW | WS_CHILD | WS_VISIBLE | WS_DISABLED, 155, 73, 50, 8
CONTROL "Hibernate", 0, STATIC, SS_CENTER | WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS, 14, 73, 32, 8
}
UPDATE: Don't forget to visit following threads:
COMPLETE GUIDE: For Windows Customization - WindowBlinds, Style XP & msstyles
MASTER TUTORIAL: Make Your Windows XP Super Fast !!!
TUTORIAL: Make Your Windows XP look-a-like Windows Vista
List of Some Useful System Utilities!
TUTORIAL: All About Resource Hacker! A Brief Tutorial
TUTORIAL: List of Files to be hacked using Resource Hacker!
TUTORIAL: List of some Interesting Hacks, which can be made using Resource Hacker!
TUTORIAL: Changing Windows XP Login Screen Text Entries !
TUTORIAL: How to enable "VIEW" Menu on Desktop !
TUTORIAL: Add any Image in Desktop/Explorer Context Menu !
TUTORIAL: Add Your Favorite Program Shortcut in Desktop Context Menu!
TUTORIAL: Add "INSERT" Option in CD Drive Context Menu !
TUTORIAL: How to use the free space under RUN in New Windows XP Start Menu!
TUTORIAL: Change Look-n-Feel of Windows XP Start Menu
TUTORIAL: How 2 change XP Boot Screen using Tuneup Utilities!
TUTORIAL: All Kinds of Restrictions for Windows XP/2003
TUTORIAL: Hide Menubar, Addressbar & Throbber in My Computer
TUTORIAL: How to Add / Remove Entries in Context Menus
TUTORIAL: How to get FREE space in Windows?
TUTORIAL: Windows XP Services that can be Safely set to MANUAL!!!
TUTORIAL: Add DEVICE MANAGER, CONTROL PANEL, Etc. in My Computer Context Menu !
Remove Save Schemes & Other Entry from Desktop Context Menu!
TUTORIAL: How to Create Yahoo! Messenger Skins
TUTORIAL: Remove ADs from New Yahoo! Messenger 8 Final !
TUTORIAL: Change Yahoo! Messenger Default Status Messages With Your Own Messages
Last edited by a moderator: