Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Adding Outlookbar to Dialog
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Adding Outlookbar to Dialog

 Post Reply Post Reply
Author
Message
venkyhyd View Drop Down
Groupie
Groupie


Joined: 29 June 2006
Location: India
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote venkyhyd Quote  Post ReplyReply Direct Link To This Post Topic: Adding Outlookbar to Dialog
    Posted: 21 July 2008 at 1:59am
Hello,

Can we add a OutLookBar to the Dialog Box? If so how can we add outlookbar to the Left or right side of the DialogBox?

thanks

Back to Top
venkyhyd View Drop Down
Groupie
Groupie


Joined: 29 June 2006
Location: India
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote venkyhyd Quote  Post ReplyReply Direct Link To This Post Posted: 22 July 2008 at 4:26am
Originally posted by venkyhyd venkyhyd wrote:

Hello,

Can we add a OutLookBar to the Dialog Box? If so how can we add outlookbar to the Left or right side of the DialogBox?

thanks



Any HINTS on this....
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1206
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Posted: 22 July 2008 at 7:47am
Hi;

Try this:
In your  CDialog derived class create a member of type outlookbar. In your dialog resource create a static control of desired size and position. Assign an unique ID (don't use IDC_STATIC) to this control (here I use IDC_MYCONTROL).
In the OnInitDialog member insert

    CRect rect;
    GetDlgItem(IDC_MYCONTROL)->GetWindowRect(&rect);
    ScreenToClient(&rect);
    GetDlgItem(IDC_MYCONTROL)->DestroyWindow();

    if (myControl_.Create(rect, this, IDC_MYCONTROL))
    {
        ...
    } else {
        ...
    }

Hope this helps...
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022
Back to Top
venkyhyd View Drop Down
Groupie
Groupie


Joined: 29 June 2006
Location: India
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote venkyhyd Quote  Post ReplyReply Direct Link To This Post Posted: 23 July 2008 at 4:53am
Thanks

i was able to do this but I was looking something similar to Splitter option where in can even resize the static control by mouse. Or whenever i resize the dialog i want this to reflect on the Outlookbar too.

thanks
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1206
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Posted: 23 July 2008 at 5:00am
Hi;

1. Try to implement a splitter into your dialog or try using non-floatable docking panes
2. You have to catch WM_SIZE in your dialog class and then resize the control or use CXTResizeDialog as base class of your dialog class.
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022
Back to Top
venkyhyd View Drop Down
Groupie
Groupie


Joined: 29 June 2006
Location: India
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote venkyhyd Quote  Post ReplyReply Direct Link To This Post Posted: 23 July 2008 at 5:17am
When i tried implementing the Splitter in the Dialog Box i was unable to show off the Splitter Window in the dialog...

thanks
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1206
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Posted: 23 July 2008 at 5:29am
Hi;

Perhaps this helps:

http://www.codeproject.com/KB/splitter/simpledlgsplitter.aspx


Another solution is to implement the splitter behaviour by yourself: Catch mouse down, mouse move and draw the visual feedback. I did this several times when a splitter control did not work.
Have to look whether I find the code
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1206
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Posted: 23 July 2008 at 5:35am
Hi;

If you want to implement it yourself search for OnInvertTracker(CRect rect) in the codejock sources (I believe its in XTPPropertyGrid.cpp). You can take this solution as a starting point for your own implementation ...
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022
Back to Top
venkyhyd View Drop Down
Groupie
Groupie


Joined: 29 June 2006
Location: India
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote venkyhyd Quote  Post ReplyReply Direct Link To This Post Posted: 23 July 2008 at 6:29am
Hey

Thanks for the links and startup points ..
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.047 seconds.