MCPcopy Create free account
hub / github.com/CobaltFusion/DebugViewPP / OnRButtonDoubleClick

Function OnRButtonDoubleClick

Libraries/TabbingFramework/CustomTabCtrl.h:1779–1802  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1777 }
1778
1779 LRESULT OnRButtonDoubleClick(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM lParam, BOOL& /*bHandled*/)
1780 {
1781 POINT ptCursor = {GET_X_LPARAM(lParam), GET_Y_LPARAM(lParam)};
1782
1783 // Search for a tab
1784 T* pT = static_cast<T*>(this);
1785 CTCHITTESTINFO tchti = { 0 };
1786 tchti.pt = ptCursor;
1787 int nIndex = pT->HitTest(&tchti);
1788
1789 // returning TRUE tells us not to do our default handling
1790 NMCTCITEM nmh = {{ m_hWnd, this->GetDlgCtrlID(), NM_RDBLCLK }, nIndex, {ptCursor.x, ptCursor.y}};
1791 if(FALSE == ::SendMessage(GetParent(), WM_NOTIFY, nmh.hdr.idFrom, (LPARAM)&nmh))
1792 {
1793 // returning FALSE let's us do our default handling
1794 if(nIndex >= 0)
1795 {
1796 //pT->SetFocus();
1797 //pT->SetCurSel(nIndex);
1798 }
1799 }
1800
1801 return 0;
1802 }
1803
1804 LRESULT OnMButtonDown(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM lParam, BOOL& /*bHandled*/)
1805 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected