![]() |
CXTTrayIcon: How to add dynamic menus ? |
Post Reply ![]() |
Author | |
rvoith ![]() Groupie ![]() ![]() Joined: 03 July 2003 Location: Norway Status: Offline Points: 40 |
![]() ![]() ![]() ![]() ![]() Posted: 03 July 2003 at 9:43am |
I have an app similar to the TrayIconDlg-sample. I understand how I add static (ie. predefined) menus as a resource ID during the CXTTrayIcon::Create() method. But what if I want to change the menu during runtime ? I have tried several tricks in order to get to the menu - but without luck so far. Has anybody got any pointers on this topic ?
|
|
Best regards,
Bob Proud Programmer! |
|
![]() |
|
rvoith ![]() Groupie ![]() ![]() Joined: 03 July 2003 Location: Norway Status: Offline Points: 40 |
![]() ![]() ![]() ![]() ![]() |
Update! I think I'm on the track to something! By looking at how CXTTrayIcon::OnTrayNotfification() was constructed, I was able to understand (!) that I could create a message handler for the TIN_XT_TRAYICON message myself. This has now been done, and I'll try to see if I can construct the menu myself .... But, still, input are gladly accepted!
|
|
Best regards,
Bob Proud Programmer! |
|
![]() |
|
rvoith ![]() Groupie ![]() ![]() Joined: 03 July 2003 Location: Norway Status: Offline Points: 40 |
![]() ![]() ![]() ![]() ![]() |
Yihaa It worked! My code is now very similar to the CXTTrayIcon! |
|
Best regards,
Bob Proud Programmer! |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |