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 » U++ Widgets - General questions or Mixed problems » tray icon & balloon notification
Re: tray icon & balloon notification [message #817 is a reply to message #804] Fri, 03 February 2006 11:42 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13980
Registered: November 2005
Ultimate Member
Well, I guess the confusion here is that HWND used for tray icon is quite unrelated to TopWindow. You would need to override TopWindow::WindowProc to handle it correctly.

I have tried different solution- tray icon with separate HWND and it seems to work fine - per popular demand, TrayIcon is now the part of U++.

Example:

struct App : TrayIcon {
void Info() {
PromptOK("TrayIcon launched this prompt!");
}

void Menu(Bar& bar) {
bar.Add("Info..", THISBACK(Info));
bar.Separator();
bar.Add("Exit", THISBACK(Break));
}

typedef App CLASSNAME;

App() {
WhenBar = THISBACK(Menu);
WhenLeftDouble = THISBACK(Info);
Icon(CtrlImg::File());
Tip("This is U++ tray icon");
}
};

GUI_APP_MAIN
{
App().Run();
}

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to stick focus on a control
Next Topic: Qtf and drawing
Goto Forum:
  


Current Time: Tue May 14 15:23:12 CEST 2024

Total time taken to generate the page: 0.02447 seconds