Print Page | Close Window

Outlook Bar not working

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=3940
Printed Date: 10 November 2025 at 7:47am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Outlook Bar not working
Posted By: VAGB
Subject: Outlook Bar not working
Date Posted: 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.




Replies:
Posted By: Oleg
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net