Enable BalloonTips without log off/on?

Enable BalloonTips without log off/on?

Post by Oliver Pfe » Wed, 09 Feb 2005 19:32:35


Hi,

I want to enable/disable the balloon tips conditionally inside our
application. If I change the responsible registry entry (see below) I will
have to log off/on first to apply the setting.

HKEY_CU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\
EnableBalloonTips

I think there must be any window message to be sent in addition to get the
new setting working on-the-fly. Tools like TweakUI has solve this also
because the balloon setting is applied immediately after you change it.

--
cu
o.pfeiffer

ICQ# 84320006
eMail XXXX@XXXXX.COM
--------------------------------------------
TECHNOLOGIE - ZENTRUM INFORMATIK / UNIVERSITAET BREMEN / GERMANY
 
 
 

Enable BalloonTips without log off/on?

Post by Jeff Henke » Wed, 09 Feb 2005 21:39:39

Try broadcasting a WM_SETTINGCHANGE message.

 
 
 

Enable BalloonTips without log off/on?

Post by Oliver Pfe » Wed, 09 Feb 2005 22:30:26

"Jeff Henkels" < XXXX@XXXXX.COM > wrote in



This should do the trick. Thanks.

Is there any page inside the msdn lib where all these constants are listed
with their numeric values? I haven't found it yet. :(

--
cu
o.pfeiffer

ICQ# 84320006
eMail XXXX@XXXXX.COM
--------------------------------------------
TECHNOLOGIE - ZENTRUM INFORMATIK / UNIVERSITAET BREMEN / GERMANY
 
 
 

Enable BalloonTips without log off/on?

Post by Oliver Pfe » Wed, 09 Feb 2005 22:31:27

Oliver Pfeiffer < XXXX@XXXXX.COM > wrote in



I need ...

HWND_BROADCAST

... and ...

WM_SETTINGCHANGE

... as numeric constants (0x????)! Thanks in advance for any URL. :)

--
cu
o.pfeiffer

ICQ# 84320006
eMail XXXX@XXXXX.COM
--------------------------------------------
TECHNOLOGIE - ZENTRUM INFORMATIK / UNIVERSITAET BREMEN / GERMANY
 
 
 

Enable BalloonTips without log off/on?

Post by Oliver Pfe » Wed, 09 Feb 2005 22:42:44

Oliver Pfeiffer < XXXX@XXXXX.COM > wrote in



I got it out of the header files ...

public const int HWND_BROADCAST = 0xffff;
public const int WM_SETTINGCHANGE = 0x001A;

... but I'm still looking for a page inside of the MSDN library. There must
be one!??

--
cu
o.pfeiffer

ICQ# 84320006
eMail XXXX@XXXXX.COM
--------------------------------------------
TECHNOLOGIE - ZENTRUM INFORMATIK / UNIVERSITAET BREMEN / GERMANY
 
 
 

Enable BalloonTips without log off/on?

Post by Gary Chans » Thu, 10 Feb 2005 03:45:50


must

MSDN never gives the values of constants like these. You can only get
the values from the header files.

--
-GJC [MS Windows SDK MVP]
-Software Consultant (Embedded systems and Real Time Controls)
- http://www.yqcomputer.com/
XXXX@XXXXX.COM
 
 
 

Enable BalloonTips without log off/on?

Post by Steve Alpe » Thu, 10 Feb 2005 05:58:56


Gary: Generally, I consider it risky when I have to define constants
like this in my program... especially since they might change. Or to
use the old saw "constants aren't!"

In C++, I'd do

#ifndef WM_SETTINGCHANGE
# define WM_SETTINGCHANGE 0x001a
#endif

just in case..

/steveA

--
Steve Alpert
my email Fgrir_Nycreg @ vqk.pbz is encrypted with ROT13 (www.rot13.org)
and spaces
 
 
 

Enable BalloonTips without log off/on?

Post by Oliver Pfe » Thu, 10 Feb 2005 08:22:01

"Jeff Henkels" < XXXX@XXXXX.COM > wrote in



BTW: Do you know a force way to let a window repaint itself?

Because we have another (reproducable) problem here:

If you set the normal window transparency on a window (layered), then set
the pixel color transparency also and after that remove the layer -> the
whole window gets black colored. A single redraw should fix this because
after a minimize/restore everything will be ok.

But an invalidateRect or a WM_PAINT doesn't help - the window isn't
repainted. What's wrong here? How can we force a window to be repainted
without changing its state or size?

--
cu
o.pfeiffer

ICQ# 84320006
eMail XXXX@XXXXX.COM
--------------------------------------------
TECHNOLOGIE - ZENTRUM INFORMATIK / UNIVERSITAET BREMEN / GERMANY
 
 
 

Enable BalloonTips without log off/on?

Post by Tim Robins » Fri, 11 Feb 2005 09:26:20


[...]

I think you're safe here. If Microsoft changed the values of these sorts
of constants one day, most existing Windows applications would stop working.

--
Tim Robinson (MVP, Windows SDK)
http://www.yqcomputer.com/
 
 
 

Enable BalloonTips without log off/on?

Post by Gary Chans » Fri, 11 Feb 2005 13:43:13


get

That's good advice.

--
-GJC [MS Windows SDK MVP]
-Software Consultant (Embedded systems and Real Time Controls)
- http://www.yqcomputer.com/
XXXX@XXXXX.COM