> 
> #> My guess would be that somehow PowerPro is missing the fact 
that the 
> #> tool tips are in UniCode.
> 
> Hmm, interesting idea... Do you know any way I could check if 
tooltips
> are Unicode or not? And also, shouldn't active windows tooltip be
> wrong as well?

The issue arises because there is no Windows-system API to support 
hooking into other programs tray icons.  So PowerPro, like every 
other tray substitute, has to cheat and hook into the message stream 
coming to the tray window itself (the one on the task bar) and 
filter out tool tip messages which it receives.  The tool tips in 
these messages will use Unicode if the program sending them is a 
Unicode-using program and PowerPro knows this by using the  
IsUnicodeWindow system function on the source of the message.  If 
the window is unicode, the tool tip is translated to single byte 
character with WideCharToMultiByte, using cp_acp (ie system default) 
code page.  

Possibly this fails for reasons I don't understand with your setup.  
I don't know much about code pages and how they function on non-
English systems.

For active windows, PowerPro uses the built in Windows call 
WM_GETTEXT to get the window text,and, as part of this call, the 
Windows sytem takes care of translating from Unicode to single byte 
characters, if needed.

The only way I know to check for unicode is to run the system api 
IsUnicodeWindow on a window from the program; however, it may be 
that there are utilities out there that can derive this information 
from the exe.  
  





> 
> -- 
>  Best wishes,
>    Slawomir Nowaczyk
>      ( [EMAIL PROTECTED] )
> 
> War doesn't determine who's right, war determines who's left.
>







------------------------ Yahoo! Groups Sponsor --------------------~--> 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/JV_rlB/TM
--------------------------------------------------------------------~-> 

Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to