Restarting GUI without logging off

G

Guest

Hi,

I need to change a setting of my GUI so that the tittlebar is a less smaller.

[HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics]
"CaptionHeight"="-270"

Does anyone know how to switch off the GUI and restart it with the new
settings in the register without rebooting or logging off.

This is the same as you switch for example from "windows xp style" to
"windows classic style",XP isn't logging off for doing that.(Try it yourself)

Start->Configuration->Display->Appearance->Then change to classic view and
click Apply.

You will see that you get a sort of login logoff to activate these settings.

Any help is welcome.

Regards,

Bart
 
R

Ramesh [MVP]

Bart,

End all instances of Explorer.exe from Task Manager, and then start a new explorer.exe task.

-or-

Right-click Desktop, choose Properties, Appearance Tab.
Click Advanced button, choose Icon from the drop-down list and set it's size to 31 and press OK.
Close the dialog
Repeat the above steps and set the Icon size to 32 (defaults)

--
Ramesh, Microsoft MVP
Windows XP Shell/User
http://windowsxp.mvps.org


Hi,

I need to change a setting of my GUI so that the tittlebar is a less smaller.

[HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics]
"CaptionHeight"="-270"

Does anyone know how to switch off the GUI and restart it with the new
settings in the register without rebooting or logging off.

This is the same as you switch for example from "windows xp style" to
"windows classic style",XP isn't logging off for doing that.(Try it yourself)

Start->Configuration->Display->Appearance->Then change to classic view and
click Apply.

You will see that you get a sort of login logoff to activate these settings.

Any help is welcome.

Regards,

Bart
 
G

Guest

Hi,

Thx for the tip,

But ending the explorer.exe and starting it back, i had already tried
without result.

The second solution i can't try because I need the command for putting it in
a vbs file.

In the .vbs, i want to set the captionbar from -375 to -270 (windows classic
size) and then let's activate the settings by rebooting the GUI and then
start the program with a smaller titlebar.

Why i'm doing this: i need to run an expensive program from a windows2000 on
windows XP pc. This program gives frame errors if the size is not like -270.
That's why i'm asking if someone knows the command for rebooting the GUI.

I think it's something with the rundll32.exe (dll file), I already put a
filemonitor and a regmonitor on it. Without any results.

Hoping for more solutions :)
 
R

Ramesh [MVP]

Bart,
Don't know if this can be done using a VBScript, but SendMessage API when used with VB might do it. Pls try posting this in Scripting / VB newsgroup.

--
Ramesh, Microsoft MVP
Windows XP Shell/User
http://windowsxp.mvps.org


Hi,

Thx for the tip,

But ending the explorer.exe and starting it back, i had already tried
without result.

The second solution i can't try because I need the command for putting it in
a vbs file.

In the .vbs, i want to set the captionbar from -375 to -270 (windows classic
size) and then let's activate the settings by rebooting the GUI and then
start the program with a smaller titlebar.

Why i'm doing this: i need to run an expensive program from a windows2000 on
windows XP pc. This program gives frame errors if the size is not like -270.
That's why i'm asking if someone knows the command for rebooting the GUI.

I think it's something with the rundll32.exe (dll file), I already put a
filemonitor and a regmonitor on it. Without any results.

Hoping for more solutions :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top