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

Method CSpitterPanel

lib_acl_cpp/samples/gui_rpc/ui/WndResizer.cpp:2493–2514  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

2491///////////////////////////// CSpitterPanel
2492///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2493CSpitterPanel::CSpitterPanel(const CRect * prc, SplitterOrientation type) : CPanel(prc)
2494{
2495 m_OrienType = type;
2496 m_pGrippePanel = NULL;
2497
2498 if (m_pGrippePanel == NULL)
2499 {
2500 m_pGrippePanel = new CSplitterGripperPanel(type);
2501 if (m_OrienType == SPLIT_CONTAINER_H )
2502 {
2503 m_pGrippePanel->SetRect(0, 0, 3, 12);
2504 }
2505 else
2506 {
2507 m_pGrippePanel->SetRect(0, 0, 12, 3);
2508 }
2509 m_pGrippePanel->SetAnchor ( ANCHOR_HORIZONTALLY_CENTERED | ANCHOR_VERTICALLY_CENTERED );
2510 m_pGrippePanel->SetMinSize(CSize(2,2));
2511 BOOL bOk = AddChild(m_pGrippePanel);
2512 ASSERT( bOk);
2513 }
2514}
2515CSpitterPanel::CSpitterPanel(SplitterOrientation type) : CPanel()
2516{
2517 m_OrienType = type;

Callers

nothing calls this directly

Calls 2

SetAnchorMethod · 0.45
SetMinSizeMethod · 0.45

Tested by

no test coverage detected