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

Method OnClick

Libraries/TabbingFramework/TabbedFrame.h:1070–1091  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1068 }
1069
1070 LRESULT OnClick(int /*idCtrl*/, LPNMHDR pnmh, BOOL& bHandled)
1071 {
1072 // Be sure the notification is from the tab control
1073 // (and not from a sibling like a list view control)
1074 if(pnmh && (m_TabCtrl == pnmh->hwndFrom))
1075 {
1076 // If they left click on an item, set focus on the tab view,
1077 // but only if the view was already the active tab view.
1078 NMCTCITEM* item = (NMCTCITEM*)pnmh;
1079 if(item && (item->iItem >= 0) && (item->iItem == m_TabCtrl.GetCurSel()))
1080 {
1081 TTabCtrl::TItem* pItem = m_TabCtrl.GetItem(item->iItem);
1082 if(pItem->UsingTabView())
1083 {
1084 ::SetFocus(pItem->GetTabView());
1085 }
1086 }
1087 }
1088
1089 bHandled = FALSE;
1090 return 0;
1091 }
1092
1093 LRESULT OnAcceptItemDrag(int /*idCtrl*/, LPNMHDR pnmh, BOOL& bHandled)
1094 {

Callers

nothing calls this directly

Calls 2

UsingTabViewMethod · 0.80
GetTabViewMethod · 0.80

Tested by

no test coverage detected