Solved

WTL: Using Splitter Windows

Posted on 2001-08-30
7
420 Views
Last Modified: 2013-11-25
Has anybody a short example on using STL splitter windows? I don't get it working, and don't want to play around forever...

I want to create an SDI application with a vertical splitter, a listview ctrl in both panes.

TIA
Peter
0
Comment
Question by:peterchen092700
7 Comments
 
LVL 4

Expert Comment

by:jtwine100697
ID: 6442312
> Has anybody a short example on using STL splitter windows?

Are you talking about using "WTL" (Windows Template Library), Atilla (MFC-like framework built with ATL), or straight ATL on your own?  (You say WTL in the subject, but STL in the question text).

In either case, why not use MFC for this, because it already has the support...?

[And be careful of the "size of MFC applications .vs. ATL applications" argument you may encounter: once you get around to writing a full blown ATL application that has similar functionality as an MFC app, the MFC app may be smaller at that point.]

-=- James.
0
 
LVL 7

Accepted Solution

by:
jimwasson earned 50 total points
ID: 6442316
Richard Grimes has a WTL architecture article at iDevResource.com:

 http://www.idevresource.com/com/library/articles/wtlarch.asp

It includes an SDI splitter window sample.
0
 
LVL 4

Expert Comment

by:jtwine100697
ID: 6442401
If you are talking about ATL, there may be some help at: http://www.codeproject.com/atl/atlsplitter.asp

For Attila, I think there is something in the Attila archive, you can get that from: http://www.sellsbrothers.com/attila/

-=- James.
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
LVL 2

Expert Comment

by:BogdyPtr
ID: 6442565
If you want a mfc example of a split view sdi create a new sdi and in step 5 of 6 of app wizard select project style == window explorer and then you have your example.
0
 
LVL 7

Author Comment

by:peterchen092700
ID: 6442574
jimwatson: thanks - I got it working!

I had some problems with my implementation (creating the panes in a CSplitterWindow dereived class, the Message Map was missing CHAIN_MSG_MAP, and the OnCreate Handler needs a bHandled=false).


jtwine:
yeeks, WTL, of course (damn new keyboard, or was it a freudian?

>> why not use MFC for this
* A MFC app (statically linked) starts around 360K, an WTL app at 32K. It's just a small tool. And as I'm always impressed with the small-yet-funky Windows apps, size does matter.
* I like WTL
* I don't like MFC
* I want to have fun (well, the geeky kind ;)
* I code ATL (including UI) most of the day. I know I could benefit this could benefit a lotfrom WTL - and I want to use this small project for learning.

Cheers
Peter
0
 
LVL 4

Expert Comment

by:jtwine100697
ID: 6442858
Cool.. Glad you got your problem solved.

-=- James.
0
 
LVL 7

Expert Comment

by:jimwasson
ID: 6442952
Peter -- that's great.  Yes, the wizard is a bit remiss.  I had similar problems with an MDI splitter.  Basically the same problem, plus it forgets to derive the view class from CSplitterWindowImpl<> rather than CWindowImpl<>.  Guess the MS folks didn't care much for splitters.
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Problem to packaging 1 87
isEverywhere  challenge 19 74
ClickOnce Install - Shortcut Question 3 88
What the difference between blend and Visual Studio 3 98
For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now