<?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 : CXTPC&#111;ntrolCustom within customize dialog</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : CXTPC&#111;ntrolCustom within customize dialog]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 20 Apr 2026 18:32:39 +0000</pubDate>
  <lastBuildDate>Wed, 02 Feb 2005 02:42:20 +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=1701</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[CXTPC&#111;ntrolCustom within customize dialog : Hello Arc42! It was just reserch...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1701&amp;PID=4945&amp;title=cxtpcontrolcustom-within-customize-dialog#4945</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=941">Green</a><br /><strong>Subject:</strong> 1701<br /><strong>Posted:</strong> 02 February 2005 at 2:42am<br /><br /><P>Hello Arc42! It was just reserch how it is easy to build-in this library into our product. We decide to purchase&nbsp;library at last. But&nbsp;project will start little bit&nbsp;later. So, if any issues appear I will post them here.</P>]]>
   </description>
   <pubDate>Wed, 02 Feb 2005 02:42:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1701&amp;PID=4945&amp;title=cxtpcontrolcustom-within-customize-dialog#4945</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPC&#111;ntrolCustom within customize dialog :  Green: please post here to let...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1701&amp;PID=4931&amp;title=cxtpcontrolcustom-within-customize-dialog#4931</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=203">Ark42</a><br /><strong>Subject:</strong> 1701<br /><strong>Posted:</strong> 01 February 2005 at 11:53am<br /><br /><br>Green: please post here to let me know if you improve upon this in anyway. I use a lot of slider bars in my toolbars for some reason. Itwould be good to know if there are any significant bugs with thismethod of deriving from CXTPControlCustom.<br><br>]]>
   </description>
   <pubDate>Tue, 01 Feb 2005 11:53:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1701&amp;PID=4931&amp;title=cxtpcontrolcustom-within-customize-dialog#4931</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPC&#111;ntrolCustom within customize dialog : BTW,why does CXTPControlCustom::GetType()...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1701&amp;PID=4919&amp;title=cxtpcontrolcustom-within-customize-dialog#4919</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=941">Green</a><br /><strong>Subject:</strong> 1701<br /><strong>Posted:</strong> 01 February 2005 at 5:07am<br /><br /><P>BTW,&nbsp;why does CXTPControlCustom::GetType() return xtpControlButton instead xtpControlCustom? In CommonControls sample add following line:</P><P>int CMainFrame::OnCreateControl(LPCREATECONTROLSTRUCT lpCreateControl)<BR>{<BR>&nbsp;&nbsp;&nbsp;&nbsp;.........<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;CXTPControlCustom* pControlAnimation =  CXTPControlCustom::CreateControlCustom(&amp;m_wndAnimCntrl); &nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp; <FONT color=#ff0000>XTPControlType type = pControlAnimation-&gt;GetType();<BR><BR><FONT color=#000000>&nbsp;&nbsp;&nbsp;&nbsp;.........<BR></FONT></FONT><FONT color=#ff0000><FONT color=#000000>}</FONT><BR><BR><FONT color=#000000>The result will be xtpControlButton. Is it a bug?&nbsp;(Or I don't understand something <IMG src="http://forum.codejock.com/smileys/smiley2.gif" border="0">)</FONT></P></FONT>]]>
   </description>
   <pubDate>Tue, 01 Feb 2005 05:07:14 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1701&amp;PID=4919&amp;title=cxtpcontrolcustom-within-customize-dialog#4919</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPC&#111;ntrolCustom within customize dialog : Hello guys! Thank you for response.To...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1701&amp;PID=4918&amp;title=cxtpcontrolcustom-within-customize-dialog#4918</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=941">Green</a><br /><strong>Subject:</strong> 1701<br /><strong>Posted:</strong> 01 February 2005 at 3:56am<br /><br /><P>Hello guys! Thank you for response.<BR><BR>To Oleg: You are right&nbsp;example is&nbsp;quite ugly.&nbsp;You can use another instance of control&nbsp;for the customize dialog and result will be the same (I<FONT face=Arial size=2>t is possible to&nbsp;insert control into menu only. And it can't be removed from menu in the customize mode.</FONT>) Ark42's sample makes it more&nbsp;clear how to&nbsp;resolve problem. </P>]]>
   </description>
   <pubDate>Tue, 01 Feb 2005 03:56:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1701&amp;PID=4918&amp;title=cxtpcontrolcustom-within-customize-dialog#4918</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPC&#111;ntrolCustom within customize dialog :  Here is a start, which I use,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1701&amp;PID=4911&amp;title=cxtpcontrolcustom-within-customize-dialog#4911</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=203">Ark42</a><br /><strong>Subject:</strong> 1701<br /><strong>Posted:</strong> 31 January 2005 at 11:58am<br /><br /><br>Here is a start, which I use, and is fully customizable and more or less seems to work the way it should:<br><br>.h file:<br><br> ////////////////////////////////////////////////////////// ///////////////////<br>// CXTPSliderCtrl<br><br>class CXTPSliderCtrl : public CSliderCtrl<br>{<br>&nbsp;&nbsp;&nbsp; DECLARE_DYNAMIC(CXTPSliderCtrl)<br>protected:<br>&nbsp;&nbsp;&nbsp; afx_msg BOOL OnEraseBkgnd(CDC* pDC) { return FALSE; }<br>&nbsp;&nbsp;&nbsp; afx_msg void OnPaint(void);<br>&nbsp;&nbsp;&nbsp; DECLARE_MESSAGE_MAP()<br>};<br><br> ////////////////////////////////////////////////////////// ///////////////////<br>// CXTPControlSlider<br><br>class CXTPControlSlider : public CXTPControlCustom<br>{<br>&nbsp;&nbsp;&nbsp; DECLARE_XTP_CONTROL(CXTPControlSlider)<br><br>public:<br>&nbsp;&nbsp;&nbsp; CXTPControlSlider();<br>&nbsp;&nbsp;&nbsp; virtual void OnCalcDynamicSize(DWORD dwMode);<br>&nbsp;&nbsp;&nbsp; virtual void Copy(CXTPControl* pControl, BOOL bRecursive = FALSE);<br>&nbsp;&nbsp;&nbsp; virtual BOOLIsCustomizeDragOverAvail(CXTPCommandBar* pCommandBar, CPoint /*point*/,DROPEFFECT&amp; dropEffect);<br>&nbsp;&nbsp;&nbsp; int OnHookMessage(HWND hWnd, UINT nMessage, WPARAM&amp; wParam, LPARAM&amp; lParam, LRESULT&amp; lResult);<br>&nbsp;&nbsp;&nbsp; CXTPSliderCtrl *GetSliderCtrl(void) { return &amp;m_wndSlider; }<br><br>protected:<br>&nbsp;&nbsp;&nbsp; CWnd m_wndHookParent;<br>&nbsp;&nbsp;&nbsp; CXTPSliderCtrl m_wndSlider;<br>};<br><br><br><br>.cpp file:<br><br> ////////////////////////////////////////////////////////// ///////////////////<br>// CXTPSliderCtrl<br><br>IMPLEMENT_DYNAMIC(CXTPSliderCtrl, CSliderCtrl)<br><br>BEGIN_MESSAGE_MAP(CXTPSliderCtrl, CSliderCtrl)<br>&nbsp;&nbsp;&nbsp; ON_WM_ERASEBKGND()<br>&nbsp;&nbsp;&nbsp; ON_WM_PAINT()<br>END_MESSAGE_MAP()<br><br>void CXTPSliderCtrl::OnPaint(void)<br>{<br>&nbsp;&nbsp;&nbsp; PAINTSTRUCT ps;<br>&nbsp;&nbsp;&nbsp; CDC *pDC = BeginPaint(&amp;ps);<br><br>&nbsp;&nbsp;&nbsp; CRect rect;<br>&nbsp;&nbsp;&nbsp; GetClientRect(&amp;rect);<br>&nbsp;&nbsp;&nbsp; CXTMemDC *memDC = new CXTMemDC(pDC, rect);<br><br>&nbsp;&nbsp;&nbsp; DefWindowProc(WM_PAINT, (WPARAM)memDC-&gt;m_hDC, 0);<br><br>&nbsp;&nbsp;&nbsp; CXTPPaintManager *pPaintMgr  =static_cast&lt;CXTPMDIFrameWnd*&gt;(AfxGetMainWnd())-&g t;GetCommandBars()-&gt;GetPaintManager(); <br><br>&nbsp;&nbsp;&nbsp; if( GetStyle() &amp; WS_DISABLED ) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; COLORREF clr = pPaintMgr-&gt;GetXtremeColor(XPCOLOR_TOOLBAR_FACE);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; for( int y = rect.top; y &lt; rect.bottom; y++ ) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; for( int x = rect.left; x &lt; rect.right; x++ ) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if( (x &amp; 1) == (y &amp; 1) ) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; memDC-&gt;SetPixel(x, y, clr);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;  memDC-&gt;Draw3dRect(&amp;rect,pPaintMgr-&gt;GetXtremeColo r(COLOR_BTNSHADOW),pPaintMgr-&gt;GetXtremeColor(COLOR_BTNH IGHLIGHT));<br><br>&nbsp;&nbsp;&nbsp; delete memDC;<br><br>&nbsp;&nbsp;&nbsp; EndPaint(&amp;ps);<br>}<br><br> ////////////////////////////////////////////////////////// ///////////////////<br>// CXTPControlSlider<br><br>#define SLIDER_WIDTH&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 400<br>#define SLIDER_HEIGHT&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 30<br>#define SLIDER_HEIGHTROT&nbsp;&nbsp;&nbsp; 34<br><br>IMPLEMENT_XTP_CONTROL(CXTPControlSlider, CXTPControlCustom)<br><br>CXTPControlSlider::CXTPControlSlider() : CXTPControlCustom()<br>{<br>&nbsp;&nbsp;&nbsp; m_dwFlags = 0; //remove nomovable flag<br><br>&nbsp;&nbsp;&nbsp; m_wndHookParent.Create(_T("STATIC"), "", WS_CHILD, CRect(0, 0, 0, 0), AfxGetMainWnd(), 0);<br><br>&nbsp;&nbsp;&nbsp; m_wndSlider.Create(TBS_HORZ | WS_CHILD, CRect(0, 0, SLIDER_WIDTH, SLIDER_HEIGHT), &amp;m_wndHookParent, 0);<br>&nbsp;&nbsp;&nbsp; SetControl(&amp;m_wndSlider);<br>&nbsp;&nbsp;&nbsp; XTPHookManager()-&gt;SetHook(m_wndHookParent.GetSafeHwnd(), this);<br>}<br><br>void CXTPControlSlider::OnCalcDynamicSize(DWORD dwMode)<br>{<br>&nbsp;&nbsp;&nbsp; if( dwMode &amp; LM_VERTDOCK ) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_wndSlider.SetWindowPos(NULL, 0,0, SLIDER_HEIGHTROT, SLIDER_WIDTH, SWP_NOMOVE | SWP_NOZORDER |SWP_NOACTIVATE);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_wndSlider.ModifyStyle(TBS_HORZ, TBS_VERT|TBS_LEFT);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_szControl = CSize(SLIDER_HEIGHTROT, SLIDER_WIDTH);<br>&nbsp;&nbsp;&nbsp; } else {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_wndSlider.SetWindowPos(NULL, 0,0, SLIDER_WIDTH, SLIDER_HEIGHT, SWP_NOMOVE | SWP_NOZORDER |SWP_NOACTIVATE);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_wndSlider.ModifyStyle(TBS_VERT|TBS_LEFT, TBS_HORZ);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_szControl = CSize(SLIDER_WIDTH, SLIDER_HEIGHT);<br>&nbsp;&nbsp;&nbsp; }<br>}<br><br>void CXTPControlSlider::Copy(CXTPControl* pControl, BOOL bRecursive)<br>{<br>&nbsp;&nbsp;&nbsp; ASSERT(DYNAMIC_DOWNCAST(CXTPControlSlider, pControl));<br><br>&nbsp;&nbsp;&nbsp; //avoid CXTPControlCustom copying m_pControlWnd<br>&nbsp;&nbsp;&nbsp; CXTPControl::Copy(pControl, bRecursive);<br>}<br><br>BOOL CXTPControlSlider::IsCustomizeDragOverAvail(CXTPCommandBar* pCommandBar, CPoint /*point*/, DROPEFFECT&amp; dropEffect) <br>{<br>&nbsp;&nbsp;&nbsp; return TRUE;<br>}<br><br>int CXTPControlSlider::OnHookMessage(HWND hWnd, UINT nMessage, WPARAM&amp; wParam, LPARAM&amp; lParam, LRESULT&amp; lResult)<br>{<br>&nbsp;&nbsp;&nbsp; switch( nMessage ) {<br>&nbsp;&nbsp;&nbsp; case WM_LBUTTONDOWN:<br>&nbsp;&nbsp;&nbsp; case WM_LBUTTONUP:<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if( !IsCustomizeMode() ) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return FALSE;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; case WM_RBUTTONDOWN:<br>&nbsp;&nbsp;&nbsp; case WM_RBUTTONUP: {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CPoint point(lParam);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; MapWindowPoints(hWnd, m_pParent-&gt;GetSafeHwnd(), &amp;point, 1);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; GetParent()-&gt;SendMessage(nMessage, wParam, MAKELPARAM(point.x, point.y));<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return TRUE;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; break; }<br>&nbsp;&nbsp;&nbsp; case WM_MOUSEMOVE: {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CPoint point(lParam);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; MapWindowPoints(hWnd, m_pParent-&gt;GetSafeHwnd(), &amp;point, 1);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; GetParent()-&gt;SendMessage(nMessage, wParam, MAKELPARAM(point.x, point.y));<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return FALSE;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; break; }<br>&nbsp;&nbsp;&nbsp; case WM_HSCROLL:<br>&nbsp;&nbsp;&nbsp; case WM_VSCROLL: {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if( (HWND)lParam == m_wndSlider.GetSafeHwnd() ) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; OnExecute();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return TRUE;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; break; }<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; return FALSE;<br>}<br><br><br>]]>
   </description>
   <pubDate>Mon, 31 Jan 2005 11:58:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1701&amp;PID=4911&amp;title=cxtpcontrolcustom-within-customize-dialog#4911</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPC&#111;ntrolCustom within customize dialog : Green, how do you see it? Imagine...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1701&amp;PID=4901&amp;title=cxtpcontrolcustom-within-customize-dialog#4901</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 1701<br /><strong>Posted:</strong> 31 January 2005 at 5:41am<br /><br /><P><SPAN =bold>Green, how do you see it?</SPAN></P><P><SPAN =bold>Imagine you already have&nbsp;&nbsp;<FONT face="Courier New" size=1>m_wndSlider in toolbar and used drag another from</FONT></SPAN></P><P><SPAN =bold><FONT face="Courier New" size=1>customize dialog, so it must be second&nbsp;<FONT face=Tahoma size=2>&nbsp;</FONT><FONT face="Courier New" size=1>m_wndSlider with same handle?</FONT></FONT></SPAN></P>]]>
   </description>
   <pubDate>Mon, 31 Jan 2005 05:41:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1701&amp;PID=4901&amp;title=cxtpcontrolcustom-within-customize-dialog#4901</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPC&#111;ntrolCustom within customize dialog : &amp;gt;&amp;gt; 1) command in the Slider...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1701&amp;PID=4833&amp;title=cxtpcontrolcustom-within-customize-dialog#4833</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=941">Green</a><br /><strong>Subject:</strong> 1701<br /><strong>Posted:</strong> 26 January 2005 at 1:11am<br /><br /><P dir=ltr style="MARGIN-RIGHT: 0px"><FONT face="Arial, Helvetica, sans-serif" size=2>&gt;&gt; 1) command in the Slider category is shown as some unknown icon<BR>It's not unknown icon, but icon from toolbar sure <IMG src="http://forum.codejock.com/smileys/smiley9.gif" border="0"><BR><BR>The 1-st method became partly successful. I add:<BR></FONT><BR><FONT size=1><FONT face="Courier New, Courier, mono">int CMainFrame::OnCreateControl(LPCREATECONTROLSTRUCT lpCreateControl)<BR>{<BR>&nbsp;&nbsp;&nbsp; if (lpCreateControl-&gt;nID == IDC_SLIDER)<BR>&nbsp;&nbsp;&nbsp; {&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT color=#ff0000>if (m_wndSlider.m_hWnd == 0)</FONT><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; if (!m_wndSlider.Create(TBS_HORZ | WS_CHILD | WS_VISIBLE,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CRect(0, 0, 200, 16), this, IDC_SLIDER))<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return FALSE;<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; }&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ........<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ........<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ........<BR>&nbsp;&nbsp;&nbsp; }<BR>}<BR></FONT></FONT><FONT face="Times New Roman, Times, serif" size=2><FONT face="Courier New, Courier, mono" size=1><BR></FONT></FONT><FONT face="Courier New, Courier, mono" size=1><FONT face=Arial size=2>But it is possible to&nbsp;insert control into menu only. And it can't be removed from menu in the customize mode.<BR>Can anybody help?</FONT></FONT><FONT face="Courier New, Courier, mono" size=1><BR><BR></FONT><FONT face="Courier New, Courier, mono" size=1><BR><BR></FONT><BR><BR></P>]]>
   </description>
   <pubDate>Wed, 26 Jan 2005 01:11:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1701&amp;PID=4833&amp;title=cxtpcontrolcustom-within-customize-dialog#4833</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPC&#111;ntrolCustom within customize dialog : Hi! Is there any way to add CXTPControlCustom...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1701&amp;PID=4831&amp;title=cxtpcontrolcustom-within-customize-dialog#4831</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=941">Green</a><br /><strong>Subject:</strong> 1701<br /><strong>Posted:</strong> 25 January 2005 at 11:35am<br /><br /><P>Hi! Is there any way to add CXTPControlCustom into the customize dialog? I try to do this using CommonControls sample but attempt was unsuccessful:</P><P>1. I try to add Slider control using toolbar as category:<BR><BR>CXTPCustomizeSheet dlg(pCommandBars);<BR>CXTPCustomizeOptionsPage pageOptions(&amp;dlg);<BR>pPageCommands-&gt;AddToolbarCategory(_T("Slider"), IDR_SLIDERBAR);<BR><BR>Result: A dozen of assert occurs within MFC interior when customize dialog is called.</P><P>2. I try to add Slider control manually:<BR><BR>&nbsp;&nbsp;&nbsp; CXTPControls* pOther = pPageCommands-&gt;InsertCategory(_T("Slider"));<BR>&nbsp;&nbsp;&nbsp; CXTPControlCustom* pControlSlider =&nbsp;&nbsp; CXTPControlCustom::CreateControlCustom(&amp;m_wndSlider);<BR>&nbsp;&nbsp;&nbsp; pOther-&gt;Add(pControlSlider, IDC_SLIDER);<BR><BR>Result: Customize dialog is shown successfully, but: <BR>1) command in the Slider category is shown as some unknown icon<BR>2)&nbsp;it is impossible&nbsp;add this command anywhere except menu<BR>3) Access Violation error occurs, after you finish drag from customize dialog into menu.</P><P>With best&nbsp; regards, <BR>Green</P>]]>
   </description>
   <pubDate>Tue, 25 Jan 2005 11:35:14 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1701&amp;PID=4831&amp;title=cxtpcontrolcustom-within-customize-dialog#4831</guid>
  </item> 
 </channel>
</rss>