![]() |
OutlookBar item selection... |
Post Reply
|
| Author | |
evoX
Senior Member
Joined: 25 July 2007 Status: Offline Points: 207 |
Post Options
Thanks(0)
Quote Reply
Topic: OutlookBar item selection...Posted: 28 April 2008 at 10:48pm |
|
How can I change the current selected item of OutlookBar without user intervention? I use this code, but it does not change the selection focus
m_wndOutlookBar.GetAt(6)->SetExpanded(TRUE); // open the folder m_wndOutlookBar.PostMessage( OBN_XT_ITEMCLICK, CMD_ITEM2 ); // simulate mouse click |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 29 April 2008 at 12:40am |
|
Hi,
OutlookBar is very obsolete control. Use CXTPTaskPanel instead.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
evoX
Senior Member
Joined: 25 July 2007 Status: Offline Points: 207 |
Post Options
Thanks(0)
Quote Reply
Posted: 29 April 2008 at 8:47am |
|
I used the code from the latest sample from version 11.2.2
CXTPOfficeBorder<CXTPTaskPanel> m_wndOutlookBar; |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 29 April 2008 at 8:54am |
|
oh ok.
try this
m_wndOutlookBar.SetFocusedItem(m_wndOutlookBar.GetAt(6));
OBN_XT_ITEMCLICK is message of CXTOutBarCtrl - not CXTPTaskPanel.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
evoX
Senior Member
Joined: 25 July 2007 Status: Offline Points: 207 |
Post Options
Thanks(0)
Quote Reply
Posted: 29 April 2008 at 9:17am |
|
Hi,
No, it does nothing.
the item is not highlighted. And I think your code sets the focus to folder 6, I need to set the selection to an item not to folder.
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 29 April 2008 at 2:34pm |
|
to item:
m_wndOutlookBar.SetFocusedItem(m_wndOutlookBar.GetAt(6)->GetAt(0));
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
evoX
Senior Member
Joined: 25 July 2007 Status: Offline Points: 207 |
Post Options
Thanks(0)
Quote Reply
Posted: 29 April 2008 at 7:26pm |
|
thanks, now it works
|
|
![]() |
|
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 |