OnTaskPanelNotify() - XTP_TPN_GROUPEXPANDING |
Post Reply |
Author | |
amitb
Groupie Joined: 13 September 2006 Status: Offline Points: 50 |
Post Options
Thanks(0)
Posted: 18 September 2007 at 6:45am |
Hello,
I have the following code: LRESULT CMyBar::OnTaskPanelNotify(WPARAM wParam, LPARAM lParam) { CXTPTaskPanelGroupItem* pItem = (CXTPTaskPanelGroupItem*)lParam; CXTPTaskPanelGroup* pGroup = NULL; switch (wParam) { case XTP_TPN_CLICK: { int iHitItem = 0; iHitItem = pItem->GetIconIndex(); } case XTP_TPN_GROUPEXPANDING: { pGroup = pItem->GetItemGroup(); // this line gives a unhandled exception. reason ?? } } In the case of GROUP EXPANDING i want to refresh my icon list in that group. |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
lParam is XTP_TPNGROUPEXPANDING pointer for this notification.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
amitb
Groupie Joined: 13 September 2006 Status: Offline Points: 50 |
Post Options
Thanks(0)
|
Thanks Oleg,
Got it |
|
amitb
Groupie Joined: 13 September 2006 Status: Offline Points: 50 |
Post Options
Thanks(0)
|
Oleg,
In case i want to have the RightClick Event to be handled, can i do it in OnTaskPanelNotify(...) Or do i have to derive a class from taskpanel and handle the rightclick event. Thanks, - Amit |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi
Catch XTP_TPN_RCLICK handler. lParam is CXTPTaskPanelItem pointer.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
amitb
Groupie Joined: 13 September 2006 Status: Offline Points: 50 |
Post Options
Thanks(0)
|
Hello Oleg,
This gives me the right click on the task panel item. However i also want to capture the right click event on the any area of the taskpanel How do i achieve this ? Thanks, - Amit |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hello,
Only to override CXTPTaskPanel and cach WM_RBUTTONDOWN/UP.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
amitb
Groupie Joined: 13 September 2006 Status: Offline Points: 50 |
Post Options
Thanks(0)
|
Thanks again Oleg,
I was able to do it. One query is that if i have a group and say there are 5 items added to this group. Now i want to delete these 5 items from the group and refresh the group Which function should i use the clear / remove the items present in the group ?? Thanks. |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
try this
pGroup->GetItems()->Clear();
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
amitb
Groupie Joined: 13 September 2006 Status: Offline Points: 50 |
Post Options
Thanks(0)
|
Thanks. That helped
|
|
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 |