![]() |
Outlook Bar not working |
Post Reply
|
| Author | |
VAGB
Newbie
Joined: 23 November 2004 Status: Offline Points: 17 |
Post Options
Thanks(0)
Quote Reply
Topic: Outlook Bar not workingPosted: 04 April 2006 at 10:49am |
|
Is it possible to insert a CXTOutBarCtrl inside a Dialog Based Application? I do the following: 1.- Add a member variable in MyDialogDlg.h: CXTOutBarCtrl m_CtrlOutBar; 2.- Create de control in OnInitDialog() like this: CRect dimensions; GetClientRect(&dimensions); if (!m_CtrlOutBar.Create(WS_CHILD|WS_VISIBLE|WS_CLIPCHILDREN, dimensions, this, IDC_OUTBAR, OBS_XT_DEFAULT|OBS_XT_ANIMATION)) { TRACE0("Failed to create outlook bar."); return FALSE; } 3.- Add two folders to the Outlook Bar: (inside OnInitDialog() for example) int iFolder; iFolder = m_CtrlOutBar.AddFolder(_T("Folder 1"), 0); iFolder = m_CtrlOutBar.AddFolder(_T("Folder 2"), 1); // Set the default font used by the outlook bar.m_CtrlOutBar.SetFontX(&XTAuxData().font); // We want to receive notification messages. m_CtrlOutBar.SetOwner(this); // Select the first folder in the bar.m_CtrlOutBar.SetSelFolder(iFolder); After that I get a dialog with one Outlook Bar Control inside containing two folders, one upside called "Folder 1" and the other at the bottom of the dialog labeled "Folder 2". The problem is that those folders donīt expand when you click onto any of them. They donīt switch between each other. Does anyone know what is left? Thanks. |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 04 April 2006 at 2:16pm |
|
Hello, See our sample. You must catch OBN_XT_FOLDERCHANGE and return TRUE. Actually I recommend you CXTPTaskPanel class as much more flexible. CXTOutBarCtrl is quite obsolete. |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
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 |