<?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 : WM_COMMAND for custom CXTButton...</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : WM_COMMAND for custom CXTButton...]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 10 Jun 2026 08:11:56 +0000</pubDate>
  <lastBuildDate>Tue, 28 Nov 2006 03:42:04 +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=5625</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[WM_COMMAND for custom CXTButton... : I have a CXTButton object in a...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5625&amp;PID=17692&amp;title=wm-command-for-custom-cxtbutton#17692</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2126">bschaer</a><br /><strong>Subject:</strong> 5625<br /><strong>Posted:</strong> 28 November 2006 at 3:42am<br /><br /><P>I have a CXTButton object in a toolbar along with other objects all connected via CreateControlCustom.&nbsp; All of the windows controls (CComboBox, CEdit, etc) that I have placed in the toolbar send their notifications properly to the dialog&nbsp;with the exception of CXTButton (WM_COMMAND or BN_CLICKED).&nbsp; The <FONT size=1>ON_UPDATE_COMMAND_UI processing DOES work properly for all controls including the CXTButton.&nbsp; Can you shed any light on this?&nbsp; I used CXTButton instead of CXTPButtonControl so that I could apply a specific theme to the button and do things like: <FONT size=1></P><P>m_btnBuy.GetTheme()-&gt;SetAlternateColors(RGB(50,50,255), RGB(160,160,255), RGB(0,0,180), RGB(255,255,255));</P><P></FONT>.</P><DIV></FONT></DIV><DIV><FONT size=1><P></FONT><FONT color=#0000ff size=1></P><DIV><FONT color=#0000ff size=1><P>int</FONT><FONT size=1><FONT color=#000000> CTabPageMontage::OnCreateControl(LPCREATECONTROLSTRUCT lpCreateControl)</P><DIV></FONT>{</DIV></FONT></DIV><DIV>if</FONT><FONT size=1> (lpCreateControl-&gt;nID == IDC_BUTTON_MONTAGE_BUY) </DIV><P>{</P><P></FONT><FONT color=#0000ff size=1>if</FONT><FONT size=1> (!m_btnBuy.Create(</FONT><FONT color=#800000 size=1>"Buy"</FONT><FONT size=1>, BS_PUSHBUTTON | BS_NOTIFY | WS_TABSTOP | WS_CHILD | WS_VISIBLE, CRect(0, 0, 80, 24), </FONT><FONT color=#0000ff size=1>this</FONT><FONT size=1>, IDC_BUTTON_MONTAGE_BUY))</P><P></FONT><FONT color=#0000ff size=1>return</FONT><FONT size=1> FALSE;</P><P>m_btnBuy.SetFont(GetFont());</P><P>m_btnBuy.SetXButtonStyle(BS_XT_SEMIFLAT);</P><P>m_btnBuy.SetTheme(</FONT><FONT color=#0000ff size=1>new</FONT><FONT size=1> CXTButtonTheme);</P><P>(lpCreateControl-&gt;pControl = CXTPControlCustom::CreateControlCustom(&amp;m_btnBuy))-&gt;SetFlags(xtpFlagManualUpdate);</P><P></FONT><FONT color=#0000ff size=1>return</FONT><FONT size=1> TRUE;</P><P>}</P><DIV></DIV>}</FONT></DIV>]]>
   </description>
   <pubDate>Tue, 28 Nov 2006 03:42:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5625&amp;PID=17692&amp;title=wm-command-for-custom-cxtbutton#17692</guid>
  </item> 
 </channel>
</rss>