Click here to Skip to main content
Licence 
First Posted 27 Jan 2001
Views 246,024
Bookmarked 110 times

A Flat Splitter Window

By | 30 Jan 2003 | Article
A small class that gives splitter-windows a flat look
  • Download source files - 22 Kb
  • 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

    About the Author

    Marc Richarme

    Engineer
    Nokia
    Denmark Denmark

    Member

    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.


    Sign Up to vote   Poor Excellent
    Add a reason or comment to your vote: x
    Votes of 3 or less require a comment

    Comments and Discussions

     
    You must Sign In to use this message board. (secure sign-in)
     
    Search this forum  
     FAQ
        Noise  Layout  Per page   
      Refresh
    QuestionNokia is goiong down.aren't you afraid Pinmemberldw1986hf1236:00 28 Mar '12  
    QuestionLayoutRolCol() PinmemberZaihuan Yu19:53 26 Sep '08  
    GeneralThanks! Great example, very useful. Pinmemberyuban13:34 4 May '07  
    GeneralChane Orientation PinmemberAshok Jaiswal5:47 7 Apr '07  
    GeneralDecorated Splitter Bar PinmemberJohn Simmons / outlaw programmer9:12 8 Sep '06  
    General很好呀 Pinmemberlovexinqing6:52 30 May '03  
    GeneralRe: œkD™Þ PinmemberTsinghero20:23 3 Jun '03  
    QuestionHow to change the style of the splitter between each view. PinmemberJack_Cai16:36 24 Apr '03  
    Generalgood Pinmemberzhongl14:38 15 Jul '02  
    QuestionMouse click? Pinmembermohanrajh17:23 4 May '02  
    Generalinside nested splitter PinmemberJustin Matthews11:29 19 Mar '02  
    GeneralRe: inside nested splitter PinmemberBartosz Bien21:01 21 Jun '02  
    GeneralRe: inside nested splitter Pinmemberwilli1:50 27 Nov '02  
    GeneralRe: inside nested splitter Pinmembervinodkbyreddy19:54 17 Mar '04  
    GeneralRe: inside nested splitter PinmemberWarChildWTS18:59 1 Sep '05  
    GeneralLimiting splitter bar moves PinmemberTBiker11:07 10 Dec '01  
    GeneralRe: Limiting splitter bar moves PinmemberMarc Richarme4:15 12 Dec '01  
    GeneralRe: Limiting splitter bar moves PinmemberTBiker4:51 12 Dec '01  
    GeneralRe: Limiting splitter bar moves PinmemberTBiker5:51 14 Dec '01  
    GeneralRe: Limiting splitter bar moves Pinmemberxiang_yan16:41 26 Dec '10  
    GeneralCHtmlView PinmemberPeder Alm2:05 19 Jun '01  
    GeneralRe: CHtmlView PinmemberMarc Richarme14:39 23 Aug '01  
    GeneralRe: CHtmlView PinmemberAnonymous19:26 11 Mar '02  
    GeneralRe: CHtmlView PinmemberChiPlastique4:36 18 Aug '04  
    GeneralRe: CHtmlView Pinmemberxiang_yan16:14 26 Dec '10  

    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.

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