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 next 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

Re: Balloon notifications and Callbacks... [message #12178 is a reply to message #12172] Mon, 15 October 2007 14:16 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
spidertp wrote on Mon, 15 October 2007 04:36


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



"Welcome to the U++ contributors list".

Mirek
Re: Balloon notifications and Callbacks... [message #12184 is a reply to message #12172] Tue, 16 October 2007 07:45 Go to previous message
spidertp is currently offline  spidertp
Messages: 16
Registered: October 2007
Location: Poland
Promising Member
Quote:

"Welcome to the U++ contributors list".

Mirek


WOW Smile I'm honoured Smile
Previous Topic: Minor bug: TopWindow::GetStdSize()
Next Topic: How to force form to be resizable only in 1 direction
Goto Forum:
  


Current Time: Fri Mar 29 10:09:21 CET 2024

Total time taken to generate the page: 0.02369 seconds