CSplitterWindowImpl derives from CWindowImpl and CSplitterImpl, but doesn't have much code. CSplitterImpl has almost all of the implementation for a splitter, and many methods are overridable so you can provide custom drawing of the split bar or other effects. ClassesĬSplitterImpl is a template class that takes two template parameters, a window interface class name and a boolean that indicates the splitter orientation: true for vertical, false for horizontal. The classes and their basic methods are explained below. There are three classes: CSplitterImpl, CSplitterWindowImpl, and CSplitterWindowT. The header file atlsplit.h contains all of the WTL splitter window classes. This article's focus is the splitter window, not the clipboard. If you're not familiar with that program, please check out the article now, as I will be duplicating the functionality of ClipSpy here without providing in-depth explanations of how it works. The sample project for this part will be a rewrite of ClipSpy, using WTL of course instead of MFC. While WTL's splitter implementation does have fewer features than MFC's, it is far easier to use and extend. In Part VII, I will discuss the WTL splitter window, which is much less complicated than MFC's. MFC has a complex and powerful splitter window class, however it is somewhat difficult to learn how to use, and coupled to the doc/view framework. Splitter windows have been a popular UI element since Explorer debuted in Windows 95, with its two-pane view of the file system. Using a pane container in a splitter window.It lacks menus or score results window.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |