Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Task Panel
  New Posts New Posts RSS Feed - Best way to enable/disable panel items?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Best way to enable/disable panel items?

 Post Reply Post Reply
Author
Message
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1201
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Topic: Best way to enable/disable panel items?
    Posted: 01 June 2008 at 3:32am
Hi;
Does anyone know, whats the best way to enable/disable task panel items according to the current GUI state. Something similar to the ON_UPDATE_COMMAND_UI() message system?
Best for me would be the system of OnUpdateXXX handlers.
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1201
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Posted: 01 June 2008 at 8:51am

Hi;
Sometimes it's better to look at the samples first!

I found in TaskPanel sample file UITaskPanel.cpp what I was looking for, but the command itself still has to be handled in XTPWM_TASKPANEL_NOTIFY message handler. It would be fine and better maintainable if the command (item click) could also be handled by ON_COMMAND() message handlers.
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.140 seconds.