<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : CXTPRibbonTab handle WM_LBUTTONDOWN...?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : CXTPRibbonTab handle WM_LBUTTONDOWN...?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 13 Jun 2026 06:12:16 +0000</pubDate>
  <lastBuildDate>Fri, 16 Nov 2007 04:35:17 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=8659</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[CXTPRibbonTab handle WM_LBUTTONDOWN...? : I believe override CXTPRibbonBar...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8659&amp;PID=28519&amp;title=cxtpribbontab-handle-wm-lbuttondown#28519</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3288">iamthewind</a><br /><strong>Subject:</strong> 8659<br /><strong>Posted:</strong> 16 November 2007 at 4:35am<br /><br />I believe override CXTPRibbonBar but it never can catch its WM_LBUTTONDOWN message.<DIV>So I choose subclass <FONT color=#0000ff>m_pRibbonBar-&gt;m_hwnd</FONT><FONT color=#000000>, it work fine now.</FONT></DIV><DIV>just like the following code:</DIV><DIV><FONT color=#0000ff>(WNDPROC)::SetWindowLong(m_pRibbonBar-&gt;m_hWnd, GWL_WNDPROC, (DWORD)LClickWndProc);</FONT></DIV>]]>
   </description>
   <pubDate>Fri, 16 Nov 2007 04:35:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8659&amp;PID=28519&amp;title=cxtpribbontab-handle-wm-lbuttondown#28519</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPRibbonTab handle WM_LBUTTONDOWN...? : I have orerrided CXTPRibbonBar...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8659&amp;PID=28513&amp;title=cxtpribbontab-handle-wm-lbuttondown#28513</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3288">iamthewind</a><br /><strong>Subject:</strong> 8659<br /><strong>Posted:</strong> 16 November 2007 at 2:55am<br /><br /><DIV>I have orerrided CXTPRibbonBar and and catch its WM_LBUTTONDOWN message, but WM_LBUTTONDOWN&nbsp; can't deliver to my CCustomizedRibbonBar&nbsp; class. I wrote like this, please have a look.</DIV><DIV>Thanks</DIV><DIV>&nbsp;</DIV><DIV><FONT color=#0000ff>//////////////////////////////////////////////////</FONT></DIV><DIV><FONT color=#0000ff>//.h</FONT></DIV><DIV><FONT color=#0000ff>//////////////////////////////////////////////////</FONT></DIV><DIV><FONT color=#0000ff>class CCustomizedRibbonBar : public CXTPRibbonBar<BR>{<BR>&nbsp;DECLARE_MESSAGE_MAP()<BR>public:<BR>&nbsp;afx_msg void OnLButtonDown(UINT nFlags, CPoint point);<BR>};</FONT></DIV><DIV><BR><FONT color=#0000ff>//////////////////////////////////////////////////</FONT></DIV><DIV><FONT color=#0000ff>//.cpp</FONT></DIV><DIV><FONT color=#0000ff>//////////////////////////////////////////////////</FONT></DIV><DIV><FONT color=#0000ff>BEGIN_MESSAGE_MAP(CCustomizedRibbonBar, CXTPRibbonBar)<BR>&nbsp;ON_WM_LBUTTONDOWN()<BR>END_MESSAGE_MAP()</FONT></DIV><P><FONT color=#0000ff>void CCustomizedRibbonBar::OnLButtonDown(UINT nFlags, CPoint point)<BR>{<BR>&nbsp;CXTPRibbonBar::OnLButtonDown(nFlags, point);<BR>}</FONT></P><DIV><FONT color=#0000ff></FONT></DIV><DIV><FONT color=#0000ff></FONT></DIV><DIV><FONT color=#0000ff>//////////////////////////////////////////////////</FONT><DIV><FONT color=#0000ff>//Mainfrm.cpp</FONT></DIV><DIV><FONT color=#0000ff>//////////////////////////////////////////////////</FONT></DIV></DIV><DIV><FONT color=#0000ff>BOOL CMainFrame::CreateRibbonBar()<BR>{</FONT></DIV><DIV><FONT color=#0000ff>...</FONT></DIV><DIV><FONT color=#0000ff>m_pRibbonBar = (CCustomizedRibbonBar*)pCommandBars-&gt;Add(_T("TEST"), xtpBarTop, RUNTIME_CLASS(CCustomizedRibbonBar));</FONT></DIV><DIV><FONT color=#0000ff>...</FONT></DIV><DIV><FONT color=#0000ff>}</FONT></DIV>]]>
   </description>
   <pubDate>Fri, 16 Nov 2007 02:55:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8659&amp;PID=28513&amp;title=cxtpribbontab-handle-wm-lbuttondown#28513</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPRibbonTab handle WM_LBUTTONDOWN...? : Hello,  You have override CXTPRibbonBar...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8659&amp;PID=28073&amp;title=cxtpribbontab-handle-wm-lbuttondown#28073</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 8659<br /><strong>Posted:</strong> 05 November 2007 at 4:18am<br /><br />Hello,<DIV>&nbsp;</DIV><DIV>You have override CXTPRibbonBar and catch its WM_LBUTTONDOWN message.</DIV>]]>
   </description>
   <pubDate>Mon, 05 Nov 2007 04:18:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8659&amp;PID=28073&amp;title=cxtpribbontab-handle-wm-lbuttondown#28073</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPRibbonTab handle WM_LBUTTONDOWN...? : hi, I&amp;#039;m using CXTPRibbonBar,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8659&amp;PID=28068&amp;title=cxtpribbontab-handle-wm-lbuttondown#28068</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3288">iamthewind</a><br /><strong>Subject:</strong> 8659<br /><strong>Posted:</strong> 05 November 2007 at 2:48am<br /><br />hi, I'm using CXTPRibbonBar, and I want to handle WM_LBUTTONDOWN click on tab.I try to catch WM_XTP_PRETRANSLATEMOUSEMSG at MainFrm,&nbsp;but it doesn't work, I can't get any messages.<DIV>How do I handle Left mouse click on Tab?</DIV><DIV>&nbsp;</DIV><DIV>Thanks</DIV>]]>
   </description>
   <pubDate>Mon, 05 Nov 2007 02:48:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8659&amp;PID=28068&amp;title=cxtpribbontab-handle-wm-lbuttondown#28068</guid>
  </item> 
 </channel>
</rss>