Condividi tramite


CSplitterWnd::SplitRow

Indicates where a frame window splits horizontally.

virtual BOOL SplitRow(
   int cyBefore 
);

Parameters

  • cyBefore
    The position, in pixels, before which the split occurs.

Return Value

Nonzero if successful; otherwise 0.

Remarks

This member function is called when a horizontal splitter window is created. SplitRow indicates the default location where the split occurs.

SplitRow is called by the framework to implement the logic of the dynamic splitter window (that is, if the splitter window has the SPLS_DYNAMIC_SPLIT style). It can be customized, along with the virtual function CreateView, to implement more advanced dynamic splitters.

Requirements

Header: afxext.h

See Also

Reference

CSplitterWnd Class

Hierarchy Chart

CSplitterWnd::SplitColumn

CSplitterWnd::CreateView

CSplitterWnd::RecalcLayout

Other Resources

CSplitterWnd Members