4 Feb 2002 22:50
ANN: Tabbed MDI and Tabbed Frame for WTL
I've uploaded to the Files section of the group an "alpha" version of some classes for doing a tabbed MDI and a tabbed frame. These are meant to looksimilar to what you get with the Visual Studio .Net IDE: the MDI tabs, the tabs used in the docking windows (with "output", "command window", etc.),and tabs that look like flat buttons for 2 views in one child frame (like editing an HTML page with the HTML/Design buttons). There's things that are missing though, like "paging" when the tabs for the MDI children don't fit the width of the display area, and multiple "MDI containers", etc. The tabs are done using the excellent "Cool Tab controls" framework from Bjarke Viksøe (http://home.worldonline.dk/~viksoe/cooltab.htm), but with anupdated version of CDotNetTabCtrl, and a new class "CDotNetButtonTabCtrl" (and with a couple of updates to the base class and one of Bjarke's other files: atlgdix.h). My update of CDotNetTabCtrl includes the updates that Pascal Binggeli made (which he called CDotNetTabCtrl2), plus more (see the history in CoolTabCtrls.h). Bjarke said he will try to incorporate my updates into his stuff, and that its OK for me to post these here. I've included the classes plus two samples using them: "SimpleTabbedMDIDemo" - Created through WTL 3.1 app wizard, choosing "MDI Application", and an "edit" window as the view window. - In CMainFrame, inherit from CTabbedMDIFrameWindowImpl instead of CMDIFrameWindowImpl (replace 3 instances of CMDIFrameWindowImpl with CTabbedMDIFrameWindowImpl) "TabDemo" - Uses the tabbed MDI just like SimpleTabbedMDIDemo - Uses a popup "tabbed frame" with CDotNetTabCtrl for showing 3 different views - Uses an MDI child "tabbed frame" with CDotNetButtonTabCtrl to view web pages, switching between "HTML" view and "Source" view I don't have a personal web site at the moment, so this stuff is only in the files section for wtl@..., and hopefully soon on Bjarke's site. The ZIP is called "TabDemo.zip" and contains the updated "CoolTabCtrls.h" and "atlgdix.h" originally from Bjarke, my(Continue reading)
RSS Feed