CLibraryList* CLibraryMetaPanel::GetViewSelection() const { if ( ! m_hWnd ) return NULL; CLibraryFrame* pFrame = (CLibraryFrame*)GetOwner(); if ( ! pFrame ) return NULL; ASSERT_KINDOF(CLibraryFrame, pFrame); return pFrame->GetViewSelection(); }