![]() |
Adding Outlookbar to Dialog |
Post Reply
|
| Author | |
venkyhyd
Groupie
Joined: 29 June 2006 Location: India Status: Offline Points: 70 |
Post Options
Thanks(0)
Quote Reply
Topic: Adding Outlookbar to DialogPosted: 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 |
|
![]() |
|
venkyhyd
Groupie
Joined: 29 June 2006 Location: India Status: Offline Points: 70 |
Post Options
Thanks(0)
Quote Reply
Posted: 22 July 2008 at 4:26am |
Any HINTS on this.... |
|
![]() |
|
mgampi
Senior Member
Joined: 14 July 2003 Status: Offline Points: 1210 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
venkyhyd
Groupie
Joined: 29 June 2006 Location: India Status: Offline Points: 70 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
mgampi
Senior Member
Joined: 14 July 2003 Status: Offline Points: 1210 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
venkyhyd
Groupie
Joined: 29 June 2006 Location: India Status: Offline Points: 70 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
mgampi
Senior Member
Joined: 14 July 2003 Status: Offline Points: 1210 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
mgampi
Senior Member
Joined: 14 July 2003 Status: Offline Points: 1210 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
venkyhyd
Groupie
Joined: 29 June 2006 Location: India Status: Offline Points: 70 |
Post Options
Thanks(0)
Quote Reply
Posted: 23 July 2008 at 6:29am |
|
Hey
Thanks for the links and startup points ..
|
|
![]() |
|
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 |