Adding Outlookbar to Dialog
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=11504
Printed Date: 15 September 2025 at 4:06am Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com
Topic: Adding Outlookbar to Dialog
Posted By: venkyhyd
Subject: Adding Outlookbar to Dialog
Date 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
|
Replies:
Posted By: venkyhyd
Date Posted: 22 July 2008 at 4:26am
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....
|
Posted By: mgampi
Date 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
|
Posted By: venkyhyd
Date 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
|
Posted By: mgampi
Date 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
|
Posted By: venkyhyd
Date 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
|
Posted By: mgampi
Date Posted: 23 July 2008 at 5:29am
Hi;
Perhaps this helps: http://www.codeproject.com/KB/splitter/simpledlgsplitter.aspx - 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
|
Posted By: mgampi
Date 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
|
Posted By: venkyhyd
Date Posted: 23 July 2008 at 6:29am
Hey
Thanks for the links and startup points ..
|
|