Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Outlook Bar not working
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Outlook Bar not working

 Post Reply Post Reply
Author
Message
VAGB View Drop Down
Newbie
Newbie


Joined: 23 November 2004
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote VAGB Quote  Post ReplyReply Direct Link To This Post Topic: Outlook Bar not working
    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.

Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.078 seconds.