//////////////////////// CSpitterPanel //////////////////////////////////////////////////////////////////////////////////////////////////////////////
| 2500 | ///////////////////////////// CSpitterPanel |
| 2501 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
| 2502 | CSpitterPanel::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 | } |
| 2524 | CSpitterPanel::CSpitterPanel(SplitterOrientation type) : CPanel() |
| 2525 | { |
| 2526 | m_OrienType = type; |
nothing calls this directly
no test coverage detected