Solved

WTL: Using Splitter Windows

Posted on 2001-08-30
7
409 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How To Display a Conditional Image in a Microsoft Access Report 23 89
DB Mail Export to Excel some row wrap to new row 30 109
isEverywhere  challenge 19 72
x-bar in Google Sheets 2 27
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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…

863 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

22 Experts available now in Live!

Get 1:1 Help Now