![]() |
Cool menus without Command Bars |
Post Reply
|
| Author | |
douglashogan
Groupie
Joined: 02 July 2003 Location: Switzerland Status: Offline Points: 62 |
Post Options
Thanks(0)
Quote Reply
Topic: Cool menus without Command BarsPosted: 04 February 2006 at 5:20am |
|
Hi I have a dialog based application based on CXTResizeDialog. I also use the taskpanel control on one side. I want to use the flat "cool" menus. Is it possible from a dialog based application? Does there have to be some connection with the command bars architecture? Regards Douglas |
|
|
Regards
Douglas Hogan |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 05 February 2006 at 4:40am |
|
Hi, Must work, try it. |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
douglashogan
Groupie
Joined: 02 July 2003 Location: Switzerland Status: Offline Points: 62 |
Post Options
Thanks(0)
Quote Reply
Posted: 05 February 2006 at 8:08am |
|
OK, so I derive from CXTPDialogBase<CXTResizDialog> instead of CXTResizeDialog. Next problem: I override the WM_CTL_COLOR message and draw the dialog background in a different color, However, the gripper on the bottom right border is painted in dialog gray. Is it possible to customize this color.
|
|
|
Regards
Douglas Hogan |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 06 February 2006 at 12:17am |
|
Unfortnutelly it is standard MS control, that don't send WM_CTL_COLOR to fill its background. Solution is 1. create dialog with xtResizeNoSizeIcon parameter 2. Manually add some custom gripper class derived from CWnd and draw it as gripper. 3. Add it: / Create the size icon if it already doesn't exist. m_scSizeIcon.Create(WS_CHILD | WS_VISIBLE | SBS_SIZEGRIP, m_scSizeIcon.SetWindowPos(&CWnd::wndTop, 0, 0, 0, 0, SetResize(IDC_SIZEICON, SZ_REPOS(1)); |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
douglashogan
Groupie
Joined: 02 July 2003 Location: Switzerland Status: Offline Points: 62 |
Post Options
Thanks(0)
Quote Reply
Posted: 18 February 2006 at 8:00am |
|
Another issue, is it possible to use the docking panes system in a dialog based application? It appears not, as InstalldockingPanes () need a CFrameWnd derived class as a parameter. Is there another way? |
|
|
Regards
Douglas Hogan |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 20 February 2006 at 10:33am |
|
yes, it is not possible.... :( You can try CFrameWnd + CFormView instead of CDialog to allow ToolBars/Docking Panes. |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
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 |