dbowen | 4 Feb 22:50 2002

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)

ramon_casellas | 5 Feb 09:27 2002
Picon
Picon

Re: ANN: Tabbed MDI and Tabbed Frame for WTL

--- In wtl@..., <dbowen <at> e...> wrote:
> I've uploaded to the Files 

Thank you.
No comments (yet!)

Regards,
R.

wtl | 5 Feb 09:41 2002
Picon

New file uploaded to wtl


Hello,

This email message is a notification to let you know that
a file has been uploaded to the Files area of the wtl 
group.

File : /gridsample.zip 
Uploaded by : gistek2000 <gistek@...> 
Description : A wtl grid (also uploaded on code project) 

You can access this file at the URL

http://groups.yahoo.com/group/wtl/files/gridsample.zip 

To learn more about file sharing for your group, please visit

http://help.yahoo.com/help/us/groups/files

Regards,

gistek2000 <gistek@...>

robert_caldecott | 7 Feb 13:16 2002

New version of WTL?

Does anyone know when the next version of WTL is expected to be 
ready (v7?). Any clues on what goodies we can expect?

Bernhard Doebler | 7 Feb 14:17 2002
Picon

Re: New version of WTL?

What are you missing in the curren release?

Regards
Bernhard

----- Original Message ----- 
From: "robert_caldecott" <robert.caldecott@...>
To: <wtl@...>
Sent: Thursday, February 07, 2002 1:16 PM
Subject: [wtl] New version of WTL?

> Does anyone know when the next version of WTL is expected to be 
> ready (v7?). Any clues on what goodies we can expect?
> 

ChainsaW | 7 Feb 14:22 2002
Picon

Re: New version of WTL?

Hello,

"The next version of WTL will have support for Windows XP, Common Controls
v6 and Themes, as well as support for ATL 7" - said Nenad Stefanovic in his
message from 12/15/2001.

Best regards,

ChainsaW

Frankinet Noël | 7 Feb 17:00 2002
Picon

Owner draw

Hello,
I try to figure out the owner draw mechanism.
I have an owner draw list box and I handle drawing message in the parent
window like good old win32, but I know that I could use the COwnerDraw
template, However, when I do like this
class CLogger : public CWindowImpl< CLogger,CListBox> ,
public COwnerDraw< CLogger >
{
public :
DECLARE_WND_CLASS_EX("CLogger",CS_DBLCLKS,NULL)

BEGIN_MSG_MAP(CLogger)
MESSAGE_HANDLER(WM_LBUTTONDBLCLK,OnDblClick)
CHAIN_MSG_MAP_ALT(COwnerDraw<CLogger>, 1)

DEFAULT_REFLECTION_HANDLER()

END_MSG_MAP()

void DeleteItem(LPDELETEITEMSTRUCT lpdis)
{

}

void MeasureItem(LPMEASUREITEMSTRUCT lpMeasureItemStruct)
{

}
void DrawItem(LPDRAWITEMSTRUCT lpdis)
{
(Continue reading)

Bjoern Graf | 7 Feb 17:22 2002
Picon
Picon

RE: Owner draw

Hi,

Add REFLECT_NOTIFICATIONS() to the message map of the parent window and
it should work - at least I hope so :)

Bjørn.

Frankinet Noël | 7 Feb 17:29 2002
Picon

Re: Owner draw

Hello Bjoern,
I've already done that, to no available :-<
Noel

Bjoern Graf wrote:
> 
> Hi,
> 
> Add REFLECT_NOTIFICATIONS() to the message map of the parent window and
> it should work - at least I hope so :)
> 
> Bjørn.
> 
> 
> To unsubscribe from this group, send an email to:
> wtl-unsubscribe@...
> 
> 
> 
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/

--

-- 
GISTEK software
Gis consultant.
gistek@...
www.gistek.net

Bjoern Graf | 7 Feb 17:53 2002
Picon
Picon

RE: Owner draw

Hi again,

Just reread your code and noticed that you do not subclass the control.
Replace the window class declaration

DECLARE_WND_CLASS_EX("CLogger",CS_DBLCLKS,NULL)

with

DECLARE_WND_SUPERCLASS(NULL, CListBox::GetWndClassName())

And it should work - at least it does for me :)

Bjørn.


Gmane