![]() |
Need help with a simple task panel task |
Post Reply
|
| Author | ||
unit158
Newbie
Joined: 15 June 2005 Status: Offline Points: 10 |
Post Options
Thanks(0)
Quote Reply
Topic: Need help with a simple task panel taskPosted: 22 June 2005 at 7:46pm |
|
|
I have been looking over the sample task panel project and such, and have become familiar with how it was created, etc.
However, I cannot figure out how to actually make the options in the task panel work. For example, if I wanted one of the options to just create a message box saying hello, how would I go about doing this? Thanks in advance for any advice / suggestions. |
||
![]() |
||
Maye Johnson
Groupie
Joined: 16 October 2004 Status: Offline Points: 40 |
Post Options
Thanks(0)
Quote Reply
Posted: 22 June 2005 at 8:15pm |
|
|
I have a Task Panel derived from CView in my .h file as such:
In the .cpp file, you direct the XTPWM_TASKPANEL_NOTIFY message to execute your Task Panel Notify function to take different actions depending on the ID of the clicked item.
I have mine get a pointer to the parent class in the OnCreate() function, and then call a function in the parent object telling it the item that was clicked. The item is the ID that you added to the Task Panel's group via AddGroupItem(). If you want my source, please let me know and I will email it to you. It's very easy to use once you know what classes to create and functions to call. The samples from Codejock are very good (it's what I used). |
||
![]() |
||
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 |