Changeset 387 for trunk


Ignore:
Timestamp:
Apr 14, 2010, 5:10:48 PM (11 years ago)
Author:
dmik
Message:

Added SBM_SETSPLITTERSIZE and SBM_GETSPLITTERSIZE to WM_ER_SPLITTER class.

Location:
trunk/Lucide/gui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Lucide/gui/pmsplitter.cpp

    r367 r387  
    170170            return (MRESULT)(TRUE);
    171171
     172        case SBM_SETSPLITTERSIZE:
     173            sws->splitterWidth = SHORT1FROMMP( mp1 );
     174            if ( sws->splitterWidth < 0 )
     175                sws->splitterWidth = SPLITTER_WIDTH;
     176            setWindSize( hwnd, sws );
     177            return (MRESULT)(TRUE);
     178
     179        case SBM_GETSPLITTERSIZE:
     180            return MRFROMSHORT( sws->splitterWidth );
     181
    172182        case WM_DESTROY:
    173183            delete sws;
  • trunk/Lucide/gui/tb_spl.h

    r367 r387  
    5858// SHORT size;
    5959// (BOOL)WinSendMsg( hwnd, SBM_SETFIXEDSIZE, MPFROMSHORT( size ), MPVOID );
     60
     61// SetSplitterSize - Set the width of the splitter bar in pixels
     62//                   (-1 resets to the default)
     63#define SBM_SETSPLITTERSIZE (WM_USER+6)
     64// SHORT splitterSize;
     65// (BOOL)WinSendMsg( hwnd, SBM_SETSPLITTERSIZE,
     66//                   MPFROMSHORT( splitterSize ), MPVOID );
     67
     68// GetSplitterSize - Get the width of the splitter bar in pixels
     69#define SBM_GETSPLITTERSIZE (WM_USER+7)
     70// (SHORT)WinSendMsg( hwnd, SBM_GETSPLITTERSIZE, MPVOID, MPVOID );
    6071
    6172// Control notification code, splitter pos changed
Note: See TracChangeset for help on using the changeset viewer.