Re: Whither GUI conventions?
"Giovanni Dicanio" <giovanni.dicanio@invalid.com> wrote in message
news:uQsykQrTIHA.4880@TK2MSFTNGP03.phx.gbl...
A very good addition to MFC could be an XML based description of the GUI,
like WPF does for managed code.
Something like:
<window title="..." ...other attributes>
<toolbar name="..." other attributes... >
<buttton name="..." bitmap="..." ...>
<button>
<buttton name="..." bitmap="..." ...>
<button>
</toolbar>
<menu>
...
</menu>
</window>
Then the XML GUI description could be parsed and rendered also using some
form of 3D accelerated graphics (DirectX or OpenGL based), with special
effects, fading, rotations, etc. So MFC programmers could have both
options of continue using MFC for "classical style" GUIs, or develop some
attractive "deluxe" GUIs. This would very much contribute to help MFC to
*not* "jump the shark" ;)
It sure would, and I wish MS had done that in the first place instead of
forcing us to managed code to take advantage of these great things. But
they didn't, and I don't think they are going to reinvent all that they did
in .NET just to have a native solution. The advantages of native code are
going away with the increasing power of multicore PC's, cheaper 3D display
cards, lots of memory, and lots of download bandwidth to install the .NET
framework. By the time they would invent a native substitute, it would be
obsolete. That's why I think MFC is about to jump the shark. :-( MFC will
be alive and well in 2008, but 2008 will be the year that the Titanic hit
the iceberg (just the Titanic took a long time to sink after that).
IMHO, WPF is the first killer "app" for .NET. It is the first .NET
innovation that lets you do totally new and wonderful things with your apps
that are not feasible in MFC or any other tool. Whereas previous .NET
things like WinForms and the rest of the .NET framework offered very nice
things for the developer but did not offer the end user any advantage. So
WPF is going to force a lot of developers to .NET. Although WPF has been
around for a year, not much has happened, but that's about to change. With
VS2008 and Expression Blend/Designer, all the tools are in place now.
These new-style GUIs could also be hosted a "classical" CDialog or
CView-derived classes.
I've seen articles about hosting a WPF window within a MFC window but
haven't worried about how to do that yet. Interop is certainly possible.
-- David