Print Page | Close Window

Ribbon in MDI app not derived from CMDiframeWnd

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=7905
Printed Date: 03 March 2025 at 5:57am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Ribbon in MDI app not derived from CMDiframeWnd
Posted By: mrmathis
Subject: Ribbon in MDI app not derived from CMDiframeWnd
Date Posted: 30 August 2007 at 6:25pm
My application is MDI but not derived from CMDIFrameWnd.  I'd like to get the minimize/restore/close buttons in my ribbon.  From browsing CXTPMenuBar::RefreshMenu and related functions, it appears that a good bit of code (SyncActiveMdiChild, m_bMdiApp, GetActiveMdiChildWnd, etc) depends on CMDIFrameWnd subclassing.  Is there any way to get the system buttons without such subclassing?

I'm running Codejock 10, but eagerly awaiting 11.4. 

--Mike



-------------
--Mike



Replies:
Posted By: Oleg
Date Posted: 03 September 2007 at 5:46am
Hi,
 
Unfortunatelly according MFC architecture it can work only with CMDIFrameWnd deriver window. Why you can't derive from CMDIFrameWnd?


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net