Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » TopWindow&PopUp, TrayIcon » Balloon notifications and Callbacks...
Balloon notifications and Callbacks... [message #12172] Mon, 15 October 2007 10:36 Go to previous message
spidertp is currently offline  spidertp
Messages: 16
Registered: October 2007
Location: Poland
Promising Member
Hello,
I put into TrayIcon32.cpp file some new lines regardins ballon tips callbacks in Win32.
I don't know if informations I inserted are in other file, so sorry if I'm doing something second time.

So, the changes are:
1)in enum:
enum {
UM_TASKBAR = WM_USER + 1024,
};


I added:
enum {
	UM_TASKBAR = WM_USER + 1024,
	NIN_BALLOONSHOW = (WM_USER + 2),
	NIN_BALLOONHIDE = (WM_USER + 3),
	NIN_BALLOONTIMEOUT = (WM_USER + 4),
	NIN_BALLOONUSERCLICK = (WM_USER + 5),	
};

2) Added some callbacks:
void TrayIcon::BalloonLeftDown()
{
	WhenBalloonLeftDown();
}
void TrayIcon::BalloonShow()
{
	WhenBalloonShow();
}
void TrayIcon::BalloonHide()
{
	WhenBalloonHide();
}
void TrayIcon::BalloonTimeout()
{
	WhenBalloonTimeout;
}


3) In WndProc:
I added below mentioned lines:
case NIN_BALLOONSHOW:
	BalloonShow();
	return TRUE;
case NIN_BALLOONHIDE:
	BalloonHide();
	return TRUE;
case NIN_BALLOONTIMEOUT:
	BalloonTimeout();
	return TRUE;
case NIN_BALLOONUSERCLICK:
	BalloonLeftDown();
	return TRUE;


4) In CtrlUtil.h (section for Win32)

I added:
virtual void BalloonLeftDown();
virtual void BalloonShow();
virtual void BalloonHide();
virtual void BalloonTimeout();


and
Callback        WhenBalloonLeftDown;
Callback        WhenBalloonShow;
Callback        WhenBalloonHide;
Callback        WhenBalloonTimeout;


So, what do you think about including it to UPPsrc?

Best regards,
Tomek

[Updated on: Mon, 15 October 2007 13:34]

Report message to a moderator

 
Read Message
Read Message
Read Message
Previous Topic: Minor bug: TopWindow::GetStdSize()
Next Topic: How to force form to be resizable only in 1 direction
Goto Forum:
  


Current Time: Sat Apr 20 11:55:15 CEST 2024

Total time taken to generate the page: 0.02061 seconds