Click here to Skip to main content
Click here to Skip to main content

A Flat Splitter Window

, 30 Jan 2003
Rate this:
Please Sign up or sign in to vote.
A small class that gives splitter-windows a flat look
  • Download source files - 22 Kb
  • <!-- Link to demo file download -->
  • Download demo project - 10 Kb
  • Sample Image - FlatSplitter.gif

    Introduction

    This is a small class that replaces the default MFC splitter window CSplitterWnd with a splitter that has a small (flat) border. It's a very small class (only about 10 lines of code excluding all the standard MFC stuff), but i thought this might be useful for someone.

    Basically, you would use this splitter if you want a GUI like the one in the (newest) "Start->Find->Files or Folders" window. This effect can't be achieved with the standard splitter window, because it draws a WS_EX_CLIENTEDGE-like border.

    Usage

    This is very simple to use, just do whatever you would do with a normal splitter, but replace CSplitterWnd with CFlatSplitterWnd, and don't forget to #include "FlatSplitterWnd.h".

    Update & Credits

    This latest version now supports multiple CFlatSplitterWnd's inside of each other, like the demo app shows it. All of this thanks to Kris (http://krisoftware.w.interia.pl) - Cheers

    License

    This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

    A list of licenses authors might use can be found here

    Share

    About the Author

    Marc Richarme
    Engineer Nokia
    Denmark Denmark
    My programming experience started a long time ago in
    QBasic (on a 25MHz 486).
    I'm now mainly using Java, C++, C, MFC, Perl and PHP, but have used quite a number of other languages as well for various projects.

    Comments and Discussions

     
    QuestionOnDrawSplitter unnecessary? PinmemberRon van Gelderen22-Apr-01 1:59 
    AnswerRe: OnDrawSplitter unnecessary? PinmemberMarc Richarme23-Aug-01 15:43 
    GeneralRe: OnDrawSplitter unnecessary? PinmemberKen Griggs11-Mar-02 8:11 
    GeneralRe: OnDrawSplitter unnecessary? PinmemberLim, Jongho17-Mar-02 22:50 
    QuestionWhat does FLAT mean for you? PinmemberAnonymous29-Jan-01 5:23 
    AnswerRe: What does FLAT mean for you? PinmemberDavid Wulff29-Jan-01 6:27 
    GeneralRe: What does FLAT mean for you? PinmemberAlexMarbus29-Jan-01 7:31 
    GeneralRe: What does FLAT mean for you? Pinmember*Marc Richarme*29-Jan-01 9:27 
    GeneralRe: What does FLAT mean for you? PinmemberAlexMarbus29-Jan-01 12:25 
    GeneralRe: What does FLAT mean for you? PinmemberMarc Richarme29-Jan-01 13:43 
    GeneralRe: What does FLAT mean for you? PinmemberAnonymous30-Jan-01 9:43 
    GeneralRe: What does FLAT mean for you? PinmemberMarc Richarme31-Jan-01 9:58 
    GeneralRe: What does FLAT mean for you? PinmemberAnonymous30-Jan-01 9:44 
    GeneralRe: What does FLAT mean for you? Pinmemberxufeisjtu31-Mar-04 1:27 
    GeneralRe: What does FLAT mean for you? PinmemberMarc Richarme31-Mar-04 5:13 
    AnswerRe: What does FLAT mean for you? Pinmemberyuban4-May-07 14:30 

    General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

    Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

    | Advertise | Privacy | Terms of Use | Mobile
    Web02 | 2.8.141223.1 | Last Updated 31 Jan 2003
    Article Copyright 2001 by Marc Richarme
    Everything else Copyright © CodeProject, 1999-2014
    Layout: fixed | fluid