| 1719 | } |
| 1720 | |
| 1721 | LRESULT OnLButtonDoubleClick(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM lParam, BOOL& /*bHandled*/) |
| 1722 | { |
| 1723 | POINT ptCursor = {GET_X_LPARAM(lParam), GET_Y_LPARAM(lParam)}; |
| 1724 | |
| 1725 | // Search for a tab |
| 1726 | T* pT = static_cast<T*>(this); |
| 1727 | CTCHITTESTINFO tchti = { 0 }; |
| 1728 | tchti.pt = ptCursor; |
| 1729 | int nIndex = pT->HitTest(&tchti); |
| 1730 | |
| 1731 | // returning TRUE tells us not to do our default handling |
| 1732 | NMCTCITEM nmh = {{ m_hWnd, this->GetDlgCtrlID(), NM_DBLCLK }, nIndex, {ptCursor.x, ptCursor.y}}; |
| 1733 | if(FALSE == ::SendMessage(GetParent(), WM_NOTIFY, nmh.hdr.idFrom, (LPARAM)&nmh)) |
| 1734 | { |
| 1735 | // returning FALSE let's us do our default handling |
| 1736 | if(nIndex >= 0) |
| 1737 | { |
| 1738 | //pT->SetFocus(); |
| 1739 | //pT->SetCurSel(nIndex); |
| 1740 | } |
| 1741 | } |
| 1742 | |
| 1743 | return 0; |
| 1744 | } |
| 1745 | |
| 1746 | LRESULT OnRButtonDown(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM lParam, BOOL& /*bHandled*/) |
| 1747 | { |
nothing calls this directly
no outgoing calls
no test coverage detected