Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
platform
active.directory
adsi
adsi.iis-admin
base
com_ole
complus_mts
component_svcs
database
directx
gdi
graphics_mm
internet.client
internet.server
internet.server.isapi-dev
localization
mapi
messaging
msi
mslayerforunicode
multimedia
networking
networking.ipv6
sdk_install
security
shell
telephony.tapi_2
telephony.tapi_3
telephony.tsp
telephony.wte
tools
ui
ui_shell
win_base_svcs
win16
  
 
date: Thu, 22 May 2008 19:04:40 +0800,    group: microsoft.public.platformsdk.shell        back       


Extracting or Reading the Title text of a balloon tip   
I have to write an application that will read the title and text of another 
application that shows a balloon tip in the systray. More explicity , I want 
to read the  title and body text of a balloon tip of another application .

I am unable to read the title text but I have read successfully the body 
text. The code that extracts the body text from a balloon tooltip that is 
displayed in the Systray is :

	CWnd *wnd = CWnd::FromHandle(hWnd);
	char *arr = NULL;
	int iLen;
	iLen = ::SendMessage(hWnd,WM_GETTEXTLENGTH,0,0);
	arr = new char[iLen + 1];
	memset(arr,0,iLen + 1);
	::SendMessage(hWnd,WM_GETTEXT,(WPARAM)(iLen + 1),(LPARAM)arr);
	AfxMessageBox(CString(arr));

Can anybody help me urgently to know that how can I read 
the title text from a balloon tooltip that is displayed in the Systray ?

Thanx in advance
Aveek Adhya

url:http://www.ureader.com/gp/1660-1.aspx
date: Thu, 22 May 2008 19:04:40 +0800   author:   Aveek Adhya

Re: Extracting or Reading the Title text of a balloon tip   
What you are doing currently only works because Windows automatically 
marshals the string across process boundaries when handling the WM_GETTEXT 
message. Unless there is similar handling for TTM_GETTITLE (which I doubt) 
the only way you could really do it is to inject code into the target 
process to read the string.

"Aveek Adhya"  wrote in message 
news:8fbb5e5267984f789ce3a3b9d2213928@newspe.com...
>I have to write an application that will read the title and text of another
> application that shows a balloon tip in the systray. More explicity , I 
> want
> to read the  title and body text of a balloon tip of another application .
>
> I am unable to read the title text but I have read successfully the body
> text. The code that extracts the body text from a balloon tooltip that is
> displayed in the Systray is :
>
> CWnd *wnd = CWnd::FromHandle(hWnd);
> char *arr = NULL;
> int iLen;
> iLen = ::SendMessage(hWnd,WM_GETTEXTLENGTH,0,0);
> arr = new char[iLen + 1];
> memset(arr,0,iLen + 1);
> ::SendMessage(hWnd,WM_GETTEXT,(WPARAM)(iLen + 1),(LPARAM)arr);
> AfxMessageBox(CString(arr));
>
> Can anybody help me urgently to know that how can I read
> the title text from a balloon tooltip that is displayed in the Systray ?
>
> Thanx in advance
> Aveek Adhya
>
> url:http://www.ureader.com/gp/1660-1.aspx
date: Fri, 23 May 2008 12:41:47 +1000   author:   Jon Potter am

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us