U++ framework
Do not panic. Ask here before giving up.

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: 14291
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: Sun Oct 18 00:06:37 GMT+2 2026

Total time taken to generate the page: 0.05241 seconds