//////////////////////// CSpitterPanel //////////////////////////////////////////////////////////////////////////////////////////////////////////////
| 2491 | ///////////////////////////// CSpitterPanel |
| 2492 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
| 2493 | CSpitterPanel::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 | } |
| 2515 | CSpitterPanel::CSpitterPanel(SplitterOrientation type) : CPanel() |
| 2516 | { |
| 2517 | m_OrienType = type; |
nothing calls this directly
no test coverage detected