Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 


mazin

[HowTo] add Hibernate button

Recommended Posts

post-12365-1153658364_thumb.jpg

Open msgina.dll in Resource Hacker. Go to: Dialog -- > 20100 --> 1033

1- Hide Dialog. (to see the whole text clearly)

2- Replace all text there with this in the quote box below.

3- Compile Script.

4- File --> Save.

5- Close Resource Hacker.

6- Re-cab msgina.dll (makecab msgina.dll)

7- Replace the original msgina.dl_ with the newly cabbed one.

You are done!

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 "&Cancel", 2, BUTTON, BS_PUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 161, 103, 40, 12

CONTROL "Flag", 20101, STATIC, SS_OWNERDRAW | WS_CHILD | WS_VISIBLE, 176, 0, 32, 26

CONTROL "Turn off computer", 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, 36, 49, 22, 20

CONTROL "T&urn Off", 20103, BUTTON, BS_OWNERDRAW | BS_NOTIFY | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 93, 49, 22, 20

CONTROL "&Restart", 20105, BUTTON, BS_OWNERDRAW | BS_NOTIFY | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 150, 49, 22, 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

CONTROL "&Hibernate", 20106, BUTTON, BS_PUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 7, 103, 40, 12

}

Share this post


Link to post
Share on other sites

worked perfect for me! thanks, i was hoping you'd post how to do this lol :)

shutdownky7.png

Share this post


Link to post
Share on other sites

Cool! :thumbup

Also you can hold the Shift key and it will change Stand By to Hybernate

standsz4.pngTo hiberkc0.png

Edited by ricktendo64

Share this post


Link to post
Share on other sites

Hi,

You can also install MS Hotfix KB875506 and add a new registry setting:

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System]

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System\Shutdown]
"ShowHibernateButton"=dword:00000001

This hotfix has an updated MSGINA.DLL which allows for all four buttons to appear on the signoff dialog.

Some OEM PC's ship this update (I have seen it on some Sony PC's for example) so it's available out there.

This hotfix should be available from the usual online sources.

Kind Regards

Simon

Edited by PsiMoon314

Share this post


Link to post
Share on other sites

Thanks for a push in right direction, chhers :D

worked perfect for me! thanks, i was hoping you'd post how to do this lol :)

shutdownky7.png

Well u enter res hacker - go to BITMAP - and change them with bitmaps of same size, but of your liking

* the icons are placed in BITMAP-->20150 dir

Share this post


Link to post
Share on other sites

@ PsiMoon314

I downloaded and installed WindowsXP-KB875506-v2-x86-ENU (5.1.2600.2833) on a system with original msgina.dll (5.1.2600.2180).

I applied the reg file as in your post.

Thanks.

post-12365-1154730638_thumb.jpg

Edited by mazin

Share this post


Link to post
Share on other sites

I tried to hack script for displaying this (all 4 buttons) but haven't succeded, so I will use patch and reg/ Thanks

I can't find MS Hotfix KB875506, can u post a link?

Share this post


Link to post
Share on other sites
I tried to hack script for displaying this (all 4 buttons) but haven't succeded, so I will use patch and reg/ Thanks

I can't find MS Hotfix KB875506, can u post a link?

I tried to look but I can't find it either, if anyone could post it thanks

Share this post


Link to post
Share on other sites

i might be a little wrong here. but i have a problem with changing buttons.

i know how to supstitute the buttons and make them work just find.

EXCEPT for one little thing.

my Standby button displays with hover effect without doing anything. i never get to see it in"normal condition".

did i do something wrong? or is this normal?

perhaps it has to do with the 10th button. the button that is at the bottom of all, and looks blueish.

what do i have to do with it?

do i have to watch for the color settings (256 colors)?

for the size of the bitmaps?

what could be the problem and what is the matter with the one button????

would be glad to get help with that!!!!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...