<?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 : Excepti&#111;n in LoadCommandBars</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Excepti&#111;n in LoadCommandBars]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 11 Apr 2026 12:11:31 +0000</pubDate>
  <lastBuildDate>Tue, 27 Sep 2005 09:22:32 +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=2947</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[Excepti&#111;n in LoadCommandBars : Hi. One of our customers got...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2947&amp;PID=8777&amp;title=exception-in-loadcommandbars#8777</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=479">jerry2000</a><br /><strong>Subject:</strong> 2947<br /><strong>Posted:</strong> 27 September 2005 at 9:22am<br /><br />Hi.<br>One of our customers got an exception in our application. I have analyzed the<br>problem. The exception comes in the function LoadCommandBars.<br>The user does not know what he exactly have done. But somthing like this: he<br>creates an customized toolbar, and he drags this toolbar out of the main<br>window. At the next start of the application the an exception is thrown<br>When i delete the registry settings of XTT it works again without problems.<br>Please help! <br><br>In the debug version i got an assertion (look at the arrow); pDC is zero!<br><div style="margin-left: 40px;">CSize CXTPOffice2003Theme::DrawCommandBarGripper(CDC* pDC, CXTPCommandBar*<br>pBar, BOOL bDraw)<br>{<br>if (pBar-&gt;IsDialogBar())<br>return DrawDialogBarGripper(pDC, pBar, bDraw);<br><br>CRect rc;<br>pBar-&gt;GetClientRect(&amp;rc);<br><br>if (pBar-&gt;GetPosition() == xtpBarFloating)<br>{<br>---&gt; ASSERT(pDC);<br>CXTPFontDC font(pDC, &amp;m_fontSmCaption);<br></div><br><br>The DrawCommandBarGripper was called in this function:<br><br><div style="margin-left: 40px;">CSize CXTPToolBar::CalcDockingLayout(int nLength, DWORD dwMode, int nWidth)<br>{<br>CClientDC dc(this);<br>CXTPFontDC font(&amp;dc, GetPaintManager()-&gt;GetCommandBarFont(this));<br>CXTPControlPopup* pPopupExp = NULL;<br><br>CRect rcBorder = GetPaintManager()-&gt;GetCommandBarBorders(this);<br><br>if (m_dwStyle &amp; CBRS_GRIPPER)<br>rcBorder.TopLeft() +=<br>GetPaintManager()-&gt;DrawCommandBarGripper(NULL, this, FALSE);<br></div><br>The call stack looks like this:<br><br> XTP9700Libud.dll!XTPPaintThemes::CXTPOffice2003Theme::Draw CommandBarGripper(CDC * pDC=0x00000000, CXTPCommandBar * pBar=0x020b8730, int bDraw=0x00000000) Line 436 + 0x1d C++<br>&gt; XTP9700Libud.dll!CXTPToolBar::CalcDockingLayout(int nLength=0x00000463, unsigned long dwMode=0x0000008a, int nWidth=0x00000000) Line 594 + 0x33 C++<br>&gt;  XTP9700Libud.dll!CXTPDockBar::_AdjustRow(CArray&lt;CXTPToo lBar *,CXTPToolBar *&gt; &amp; arrRow={...}, CPoint pt={...}, int nLength=0x00000463, int bHorz=0x00000002, AFX_SIZEPARENTPARAMS * lpLayout=0x0012e0f8, int &amp; nRemove=0xffffffff)&nbsp; Line 154 + 0x2b C++<br>&gt;  XTP9700Libud.dll!CXTPDockBar::AdjustRow(CArray&lt;CXTPTool Bar *,CXTPToolBar *&gt; &amp; arrRow={...}, CPoint pt={...}, int nLength=0x00000463, int bHorz=0x00000002, AFX_SIZEPARENTPARAMS * lpLayout=0x0012e0f8)&nbsp; Line 301 + 0x24 C++<br>&gt; XTP9700Libud.dll!CXTPDockBar::CalcDynamicLayout(int nLength=0x00000463, unsigned long nMode=0x0000000b, AFX_SIZEPARENTPARAMS *lpLayout=0x0012e5f0)&nbsp; Line 358 + 0x2c C++<br>&gt; XTP9700Libud.dll!CXTPDockBar::OnSizeParent(unsigned int __formal=0x00000000, long lParam=0x0012e5f0)&nbsp; Line 415 C++ &nbsp; mfc71ud.dll!CWnd::OnWndMsg(unsigned int message=0x00000361, unsigned int wParam=0x00000000, long lParam=0x0012e5f0, long * pResult=0x0012e400) Line 2013 + 0x11 C++<br>&gt; mfc71ud.dll!CWnd::WindowProc(unsigned int message=0x00000361, unsigned int wParam=0x00000000, long lParam=0x0012e5f0)&nbsp; Line 1745 + 0x1e C++<br>&gt;&nbsp; mfc71ud.dll!AfxCallWndProc(CWnd * pWnd=0x0160b0d0, HWND__ * hWnd=0x00050558, unsigned int nMsg=0x00000361, unsigned int wParam=0x00000000, long lParam=0x0012e5f0)&nbsp; Line 241 + 0x1a C++<br>&gt; mfc71ud.dll!AfxWndProc(HWND__ * hWnd=0x00050558, unsigned int nMsg=0x00000361, unsigned int wParam=0x00000000, long lParam=0x0012e5f0) Line 389 C++ <br>&gt; mfc71ud.dll!AfxWndProcBase(HWND__ * hWnd=0x00050558, unsigned int nMsg=0x00000361, unsigned int wParam=0x00000000, long lParam=0x0012e5f0) Line 209 + 0x15 C++<br>&gt; user32.dll!77d43a68() <br>&gt; user32.dll!77d43b37() <br>&gt; user32.dll!77d4546b() <br>&gt; user32.dll!77d454cc() <br>&gt;&nbsp; mfc71ud.dll!CWnd::RepositionBars(unsigned int nIDFirst=0x00000000, unsigned int nIDLast=0x0000ffff, unsigned int nIDLeftOver=0x0000e900, unsigned int nFlags=0x00000002, tagRECT * lpRectParam=0x016070a8, const tagRECT * lpRectClient=0x00000000, int bStretch=0x00000001)&nbsp; Line 2982 C++ <br>&gt; mfc71ud.dll!CFrameWnd::RecalcLayout(int bNotify=0x00000001)&nbsp; Line 2008 C++<br>&gt; mfc71ud.dll!CFrameWnd::ShowControlBar(CControlBar * pBar=0x016074e8, int bShow=0x00000000, int bDelay=0x00000000)&nbsp; Line 1256 C++ &nbsp; &gt; XTP9700Libud.dll!CXTPCommandBars::LoadDockBarsState(const unsigned short * lpszProfileName=0x0058f0fc)&nbsp; Line 734 C++<br>&gt; XTP9700Libud.dll!CXTPCommandBars::LoadBarState(const unsigned short * lpszProfileName=0x0058f0fc, int bSilent=0x00000000)&nbsp; Line 643 C++<br> &gt;&nbsp;M210.exe!CXTPFrameWndBase&lt;CFrameWnd&gt;::Lo adCommandBars(constunsigned short * lpszProfileName=0x0058f0fc, intbSilent=0x00000000)&nbsp; Line 142 + 0x19 C++<br>&gt;&nbsp; M210.exe!CMainFrame::OnCreate(tagCREATESTRUCTW *&nbsp;&nbsp; lpCreateStruct=0x0012f4b0)&nbsp; Line 365 C++ ]]>
   </description>
   <pubDate>Tue, 27 Sep 2005 09:22:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2947&amp;PID=8777&amp;title=exception-in-loadcommandbars#8777</guid>
  </item> 
 </channel>
</rss>