Solved

WTL: Using Splitter Windows

Posted on 2001-08-30
7
392 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
Comment Utility
> 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
Comment Utility
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
Comment Utility
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
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 
LVL 2

Expert Comment

by:BogdyPtr
Comment Utility
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
Comment Utility
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
Comment Utility
Cool.. Glad you got your problem solved.

-=- James.
0
 
LVL 7

Expert Comment

by:jimwasson
Comment Utility
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
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…

772 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

10 Experts available now in Live!

Get 1:1 Help Now