NOTE: This tutorial has been featured by Microsoft. AskVG.com was the first website posting this unique trick.
In Windows XP "Hibernate" button is not visible in Shutdown dialog box but when we press <SHIFT> key, it appears in place of "Stand By" button. Its strange and many people want to show it always in shutdown dialog box. So here I'll tell you a way to always show Hibernate button in shutdown dialog box:
1.) Open %windir%\system32\msgina.dll file into Resource Hacker.
2.) Go to Dialog -> 20100 -> 1033.
3.) If you want the following look (Hibernate button at bottom) :

Replace existing code with the following 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
}
4.) OR if you want to show Hibernate button in the same row of other items, then replace existing code with the following 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 | WS_TABSTOP, 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
}
PS: Pressing <SHIFT> key to reveal Hibernate button will still work.
This article was posted by VG in following section: Resource Hacker, Windows XP.
If you enjoyed this article, you can subscribe to our RSS feed or free newsletter to get all new articles directly in your Inbox. Also check out our most popular articles and archive to read other interesting articles. If you have some news or tip to share, please send us.
VG
^^ Please check the XP to Vista or XP to Seven tutorials.
CODYQX4
Found it in XP to Se7en.
Barry
I would like my shutdown option to look like this i have a scroll down box in vista hate it. I am using vista home premium please tell me how to change it so that i button instead of a scroll box in vista
VG
^^ Not possible.
DamZ
There's a simpler, faster and safer way to accomplish this:
In the registry, create this key:
\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System\Shutdown
Create a DWORD value named ShowHibernateButton and set its data to 1.
Check your shudown dialog.
VG
^^ click on the arrow buttons in the dialog box and use arrow keys on keyboard to move them a bit up so that they can fit in the background image.
You can do the same thing to delete the "Flag" text. Simply click on it and press Delete key.
Regarding "Good Bye" text, I have no idea why its showing in small black font.
Garetty
I got the buttons figured out.
Also, when I click [Alt], I can see the big white text... But I still see the black small text.
VG
^^ Try to change the dialog box font to some other font and also increase its size. Edit 5th line:
FONT 8, "MS Shell Dlg"
Tangmeister
I'm really sorry to have to be so broad about this, but one of the shell32.dll, explorer.exe or msgina.dll files contains a dialog box that looks like it has 3 large square buttons in the middle row, all styled with a classic look.
I regret not knowing where it is, but if I were to edit this dialog, would the shutdown box not be much more flexible?
VG
^^ Thats the same dialog box which you are talking about. You can customize it to change look of Shutdown dialog box.