Restricting the size of a splitter pane

I find the solution about restrict the size of the pane.
    First derive class XSplitterWnd from CSplitterWnd,
    Then handle the WM_ONSIZE,call the SetColInfo() and SetRowInfo() in OnSize function.
    And handle the WM_MOUSEMOVE and WM_SETCURSOR to prevent user from changing size.

void XSplitterWnd::OnSize(UINT nType, int cx, int cy) 
{
 RECT        rect;
 int         Height;
 GetClientRect( &rect );
        
 Height = rect.bottom - rect.top - 36;
        
 if ( m_pRowInfo != NULL )
  if ( Height < 0 )
   SetRowInfo( 0, 1, 1);
  else
   SetRowInfo( 0, Height, Height );

 CSplitterWnd::OnSize(nType, cx, cy);

 // TODO: Add your message handler code here
}

void XSplitterWnd::OnMouseMove(UINT nFlags, CPoint point) 
{
 // TODO: Add your message handler code here and/or call default
       
 //CSplitterWnd::OnMouseMove(nFlags, point);
}

void XSplitterWnd::OnLButtonDown(UINT nFlags, CPoint point) 
{
 // TODO: Add your message handler code here and/or call default
        
 //CSplitterWnd::OnLButtonDown(nFlags, point);
}

BOOL XSplitterWnd::OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message) 
{
 // TODO: Add your message handler code here and/or call default
        
 //return CSplitterWnd::OnSetCursor(pWnd, nHitTest, message);
 return FALSE;
}
Any comments and suggests, please let me know.

Regards, Sesame

Date Last Updated: March 24, 1999



Comments

  • Essayer de choisir le meilleur fer plat ou le fer à défriser les cheveux peut être intimidant

    Posted by fzznpu303 on 07/16/2013 04:54am

    Collection GHD métallique est la plus récente édition limitée fer portée Tilgiengelig. La nouvelle Série Or mince élaboration d'un REACH est Lansert pour Noël 2012 dans 3 Fabelaktig couleur métallique de tricotage. Ceci Ruby Red Metallic Styler est également livré avec son propre style Svart vattert poche résistant à la chaleur Ce tige rouge droit a un double plaines spenning signifie que vous pouvez obtenir ytelse cohérente dans le monde idéal lorsque vous allez sur votre Reiser. Aussi avec une innebygd en mode veille de votre tige droite sakte flux begynne de cordes segments bas casseroles 30 minutes pour å bli Brukt - sauver vous vous inquiétez de savoir si vous avez Slatt eux! [url=http://ghdpascherferfr.blinkweb.com/]lisseur ghd styler[/url] Le redresseur a un attachement de fil en rotation et trois réglages de température différents pour les différentes caractéristiques et les types de cheveux, où la température maximale est de 230 ° convertisseur de tension globale C.Med pour 120-240V est le redresseur trop parfait pour avoir le voyage, et de le stocker en toute sécurité dans le sac résistant à la chaleur inclus dans luxe design.Elegant redresseurs Paris que vous pouvez à la fois les cheveux lisses et boucle avec. [url=http://ghdpascherfer.tripod.com/]ghd lisseur[/url] et est parfait pour le curling, le rouissage ou vagues. Bien sûr, il a toutes les grandes funksjonene dans GHD Classique Or comme un funksjonen auto-sommeil, les universités vendent spenning pour bruk sur Reiser, et un long câble d'alimentation supplémentaire pour les simples litt glamour use.Add à coiffer routine avec la collection métallique ghd.

    Reply
  • Ghd rettetang billig er likt av venninne i sommeren 2013

    Posted by carpinteyrofin on 06/14/2013 08:08am

    [url=http://www.rettetangnewsnorge.com/]ghd rettetang[/url] Selskapet har gitt ut serien av rettetang med glossy og elegant finish.The konvensjonelle GHD hår straighteners er vanligvis utgitt i matt finish og kommer i enten begrenset rosa GHD edition eller standard svart farge. For å lette mens styling, produktet har blitt designet med dreibar ledning vedlegg slik at ledningen knuten av håret verktøyet vil overnatte gratis som du stil. Jevn fordeling av trykket over håret oppnås ved den flytende plater funksjonen i tangen. [url=http://bestghdrettetangtilbud.devhub.com/] Kjøp ghd rettetang[/url] Tredje, De tilbyr også avrundet fat som kan gjøre en mye mer allsidig GHD jern enn andre typer hår stylers i markedet. Hvis du liker å endre ditt hår er ofte en klar fordel at du bruker ghd hår straighteners kan også skape bølger, hopp og loops.Endelig, må du velge en GHD jern er konstruert for bruk i eksplosjoner eller frynser. GHD IV styler Mini er perfekt for mye kortere hår. Kombiner disse glimrende funksjonene den mest omfattende rettetang, men det er enklere å bruke på mindre biter av hair.Maybe du har vet hvilke ghd rettetang [url=http://www.rettetangnewsnorge.com/]ghd rettetang[/url] De glitrende svarte platene skiller seg ut mot de rike rød, med avansert keramisk teknologi de glir jevnt gjennom håret gjør styling uanstrengt mens å gi håret den perfekte finish. Noen stil er oppnåelig fra rett og glatt til store bouncy krøller. De stilfulle utseende og strømlinjeformet GHD Rich Ruby Hair Straighteners vil gjøre styling lang og middels lengde hår hjemme til en lek – få at salongen ferdig til håret ditt når og hvor du vil.

    Reply
  • Als je van de extra bas, fijn, dat is jouw keuze

    Posted by mrswanzi on 06/05/2013 10:13pm

    [url=http://koptelefoon.qsite.dk/]Monster koptelefoon[/url] Beats By Dre is domineert de hoofdtelefoon game al een tijdje, nu lijkt het alsof ze uit breidt naar de home audio markt met de introductie van de ¡®pil. ¡°De pil is een draagbare, draadloze luidspreker met een fantastisch geluid, net als de beats koptelefoon. Het beschikt over Bluetooth-mogelijkheden voor aansluitingen van maximaal 30 meter met een apparaat. Het beschikt ook over een interne microfoon die conference calls mogelijk maken. [url=http://koptelefoon-monsterbeats.blogspot.com/]monster beats koptelefoon[/url] Wij raden je aan om bij een van de onderstaande webshops te bestellen. Bij deze shops weet je zeker dat je vertrouwd je Beats kunt kopen met een goede prijs, snelle verzending en goede garantie. Geniet volledig in stijl en draadloos van je favoriete muziek met de Beats by Dr. Dre Wireless [url=http://koptelefoon-monsterbeats.blogspot.com/]beats by dre[/url] Beleef nu echt de muziek zoals die bedoeld is met de Beats by Dr Dre Studio koptelefoon, Beats by Dr Dre Studio de hoge kwaliteit koptelefoon gemaakt door de top arties Dr Dre. Veel mensen zijn aan slecht geluids kwaliteit gewent, dat ik ook niet zo gek. Al die lage kwaliteit speakers, oordopjes en koptelefoons die je overal tegen komt¡­ mensen moesten eens weten wat ze missen¡­ Als je eenmaal aan de kwaliteit standaard van deze koptelefoon gewent bent wil je niet meer anders!

    Reply
  • the cheapest clarisonic pro with body brush sale in the ebay

    Posted by iouwanzi on 06/05/2013 10:05pm

    [url=http://www.miaclarisonicaustralia.org/]clarisonic australia[/url] Hestekræfter samt reggae hele verden har kombineret såvel som resultatet er den nye Doctor Dre laptop. Med ferier her og også Dr. Dre laptop annoncer viser konstant på tv, er alle spekulerer på, om de skal købe det faktiske H. s.. Misundelse (den bestemte specialiserede navn med den personlige computer).Over-the-ear hovedtelefoner er fantastisk for ejendom bliver opmærksomme samt vejledning i at lukke ud lyde som du sover. On-ear typer bør også være behageligt, sammen med delikat ekstra polstring og robust konstruktion. Bare om de mest væsentlige ting sammen med on-ear design er at sikre, at de er installeret til brug sammen med stikkene i dine gadgets. [url=http://www.miaclarisonicaustralia.org/clarisonic-classic]clarisonic classic[/url] Jeg har efterhånden været indehaver af dette pragteksemplar i knap ét og jeg nyder hvert et øjeblik i selskab med mine Beats. Der er ingen tvivl om, at de har taget verden med storm og de er kommet for at blive. Det kan tage lang tid at finde det rette headset, men med disse Beats by Dr. Dre Studio er jeg tydeligvis ikke gået galt i byen på noget tidspunkt. Hverken i forhold til min stationær, [url=http://www.australiaclarisonic.com/]clarisonic brush[/url] If you don’t abuse your headphones, this shouldn’t be a problem. However, it’s worth noting since the headphone line after which these are styled—the Beats by Dr. Dre—doesn’t suffer from this issue. Simply put, the comparisons of the Beats line with the Zoro are only skin deep—they don’t sound similar and they aren’t built for the same type of usage.Despite the minor distortion at top volumes and the delicate nature of the drivers, the Noontec Zoro is a pretty solid audio performer at normal listening levels. The detachable cable adds a bit of value to the purchase, even if doesn’t feature an inline remote.

    Reply
  • Sólo me preguntaba si ghd de verdad son las mejores planchas para el pelo?

    Posted by hanmeihm on 05/30/2013 08:10am

    [url=http://www.planchaspeloghdes.qsite.dk/]planchas ghd baratas[/url] cuando GHD anuncia pequea revolucin que trabaja en una sola vez en el cabello grueso y crespo, lo dice a m. [url=http://www.planchasespanaghdtop.net/plancha-pelo-ghd/]baratas ghd outlet[/url] Estas planchas rojas tienen un significado doble voltaje se puede obtener un rendimiento uniforme en todo el mundo ideal para cuando vas en sus viajes. Tambin con un sistema incorporado en el modo de suspensin tus alisadores poco a poco se empiezan a cerrar despus de 30 minutos de haber sido utilizado C que le ahorra la preocupacin de si est¢ o no les apag! [url=http://www.planchasespanaghdtop.net/plancha-pelo-ghd/]ghd baratas[/url] Su metal de Ghd variedad Scarlet sigue fabricando para volver a marcar el comienzo de la percepcin de estos veinte aos. Esta marca entra en un par de m¦todos. . . el lujoso estilo de arte deco y la idea del regalo del diseo y de color rojizo surtido del 20. Es f¢cil de duplicar esta seora de identificacin personal nmero acurrucarse utilizar este set edicin exclusiva. El juego contiene este metal, un sistema de embrague dispuesto alta temperatura, GHD Venta pelo seccionado pelculas baratos GHD Venta, secador de pelo pelo vacaciones y tambi¦n una bolsa de pl¢stico. Su Ghd Scarlet surtido de metal podra ser un regalo perfecto para casi cualquier ocasin especial.

    Reply
  • How to Restrict the splitter from being moved after a particular size

    Posted by Legacy on 11/30/2002 12:00am

    Originally posted by: Muthukumar K.

    Hi Guys,

    As a whole I have learnt a lot from codeguru. Its really a GURU (teacher in Sanskrit).

    As a need, I have to restrict the splitter from being resized after the pane of a splitter window(two panes) has reached a particular size (on either side i.e. left as well as right side).

    Could you suggest a method ? I tried using many options but it didn't work out for me.

    Bye & Thanks

    Reply
  • help! How to do??

    Posted by Legacy on 11/01/2002 12:00am

    Originally posted by: zhangsifang

    I want to do splitter windows:
    ________________________
    | | |
    | | |
    | | |
    | | |
    ________________________
    | |
    | |
    | |
    ________________________

    How to do ? email to me zhangsifang@163.net Thanks!

    Reply
  • More simple method. Just one line...

    Posted by Legacy on 10/29/2002 12:00am

    Originally posted by: JoonKyu Choi

    Use....

    m_SplitterWnd.EnableWindw(false)

    Reply
  • static splitter...need help!!!

    Posted by Legacy on 10/29/2002 12:00am

    Originally posted by: Paulo

    i need to do a static splitter with 2 view, one to draw and another with scrooll to display the images i draw in the first view...

    Reply
  • A quick way

    Posted by Legacy on 11/11/2001 12:00am

    Originally posted by: Shaun

    Just override WM_NCHITTEST message, from your derived CSplitterWnd class, then I add a member variable called m_bLock, and the following functions:

    // public

    void CSplitterWndEx::Lock( BOOL bLock )
    {
    m_bLock = bLock;
    }

    // override the WM_NCHITTEST message

    UINT CSplitterWndEx::OnNcHitTest( CPoint point )
    {
    if( m_bLock )
    return HTNOWHERE; // if locked
    return CSplitterWnd::OnNcHitTest( point );
    }

    Also remember to init m_bLock with a default from the contructor, after creating your splitter and views, call

    m_wndSplitterWnd.Lock( TRUE ); // to lock splitter

    Have fun...

    Regards

    Shaun

    Reply
  • Loading, Please Wait ...

Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • Java developers know that testing code changes can be a huge pain, and waiting for an application to redeploy after a code fix can take an eternity. Wouldn't it be great if you could see your code changes immediately, fine-tune, debug, explore and deploy code without waiting for ages? In this white paper, find out how that's possible with a Java plugin that drastically changes the way you develop, test and run Java applications. Discover the advantages of this plugin, and the changes you can expect to see …

  • A global data storage provider whose business is booming needed a best-in-class data center to serve as the backbone of its technical operations going forward—and it needed it delivered within a year.

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds