MCPcopy Create free account
hub / github.com/acl-dev/acl / CSpitterPanel

Method CSpitterPanel

app/net_tools/ui/WndResizer.cpp:2502–2523  ·  view source on GitHub ↗

//////////////////////// CSpitterPanel //////////////////////////////////////////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

2500///////////////////////////// CSpitterPanel
2501///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2502CSpitterPanel::CSpitterPanel(const CRect * prc, SplitterOrientation type) : CPanel(prc)
2503{
2504 m_OrienType = type;
2505 m_pGrippePanel = NULL;
2506
2507 if (m_pGrippePanel == NULL)
2508 {
2509 m_pGrippePanel = new CSplitterGripperPanel(type);
2510 if (m_OrienType == SPLIT_CONTAINER_H )
2511 {
2512 m_pGrippePanel->SetRect(0, 0, 3, 12);
2513 }
2514 else
2515 {
2516 m_pGrippePanel->SetRect(0, 0, 12, 3);
2517 }
2518 m_pGrippePanel->SetAnchor ( ANCHOR_HORIZONTALLY_CENTERED | ANCHOR_VERTICALLY_CENTERED );
2519 m_pGrippePanel->SetMinSize(CSize(2,2));
2520 BOOL bOk = AddChild(m_pGrippePanel);
2521 ASSERT( bOk);
2522 }
2523}
2524CSpitterPanel::CSpitterPanel(SplitterOrientation type) : CPanel()
2525{
2526 m_OrienType = type;

Callers

nothing calls this directly

Calls 2

SetAnchorMethod · 0.45
SetMinSizeMethod · 0.45

Tested by

no test coverage detected