Click here to Skip to main content
13,626,043 members
Click here to Skip to main content
Add your own
alternative version


122 bookmarked
Posted 27 Jan 2001

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


    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.


    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 ( - Cheers


    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


    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.

    You may also be interested in...

    Comments and Discussions

    QuestionNokia is goiong down.aren't you afraid Pin
    ldw1986hf12328-Mar-12 6:00
    memberldw1986hf12328-Mar-12 6:00 
    QuestionLayoutRolCol() Pin
    Zaihuan Yu26-Sep-08 19:53
    memberZaihuan Yu26-Sep-08 19:53 
    GeneralThanks! Great example, very useful. Pin
    yuban4-May-07 13:34
    memberyuban4-May-07 13:34 
    GeneralChane Orientation Pin
    Ashok Jaiswal7-Apr-07 5:47
    memberAshok Jaiswal7-Apr-07 5:47 
    GeneralDecorated Splitter Bar Pin
    John Simmons / outlaw programmer8-Sep-06 9:12
    memberJohn Simmons / outlaw programmer8-Sep-06 9:12 
    General&amp;#24456;&amp;#22909;&amp;#21568; Pin
    lovexinqing30-May-03 6:52
    memberlovexinqing30-May-03 6:52 
    GeneralRe: œkD™Þ Pin
    Tsinghero3-Jun-03 20:23
    memberTsinghero3-Jun-03 20:23 
    QuestionHow to change the style of the splitter between each view. Pin
    Jack_Cai24-Apr-03 16:36
    memberJack_Cai24-Apr-03 16:36 
    Generalgood Pin
    zhongl15-Jul-02 14:38
    memberzhongl15-Jul-02 14:38 
    QuestionMouse click? Pin
    mohanrajh4-May-02 17:23
    membermohanrajh4-May-02 17:23 
    Generalinside nested splitter Pin
    Justin Matthews19-Mar-02 11:29
    memberJustin Matthews19-Mar-02 11:29 
    GeneralRe: inside nested splitter Pin
    Bartosz Bien21-Jun-02 21:01
    memberBartosz Bien21-Jun-02 21:01 
    GeneralRe: inside nested splitter Pin
    willi27-Nov-02 1:50
    memberwilli27-Nov-02 1:50 
    GeneralRe: inside nested splitter Pin
    vinodkbyreddy17-Mar-04 19:54
    membervinodkbyreddy17-Mar-04 19:54 
    GeneralRe: inside nested splitter Pin
    WarChildWTS1-Sep-05 18:59
    memberWarChildWTS1-Sep-05 18:59 
    GeneralLimiting splitter bar moves Pin
    TBiker10-Dec-01 11:07
    memberTBiker10-Dec-01 11:07 
    GeneralRe: Limiting splitter bar moves Pin
    Marc Richarme12-Dec-01 4:15
    memberMarc Richarme12-Dec-01 4:15 
    GeneralRe: Limiting splitter bar moves Pin
    TBiker12-Dec-01 4:51
    memberTBiker12-Dec-01 4:51 
    GeneralRe: Limiting splitter bar moves Pin
    TBiker14-Dec-01 5:51
    memberTBiker14-Dec-01 5:51 
    GeneralRe: Limiting splitter bar moves Pin
    xiang_yan26-Dec-10 16:41
    memberxiang_yan26-Dec-10 16:41 
    GeneralCHtmlView Pin
    Peder Alm19-Jun-01 2:05
    memberPeder Alm19-Jun-01 2:05 
    GeneralRe: CHtmlView Pin
    Marc Richarme23-Aug-01 14:39
    memberMarc Richarme23-Aug-01 14:39 
    GeneralRe: CHtmlView Pin
    Anonymous11-Mar-02 19:26
    memberAnonymous11-Mar-02 19:26 
    GeneralRe: CHtmlView Pin
    ChiPlastique18-Aug-04 4:36
    memberChiPlastique18-Aug-04 4:36 
    GeneralRe: CHtmlView Pin
    xiang_yan26-Dec-10 16:14
    memberxiang_yan26-Dec-10 16:14 

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

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

    Permalink | Advertise | Privacy | Cookies | Terms of Use | Mobile
    Web04 | 2.8.180712.1 | Last Updated 31 Jan 2003
    Article Copyright 2001 by Marc Richarme
    Everything else Copyright © CodeProject, 1999-2018
    Layout: fixed | fluid