<?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 : Problem with minitoolbar Assert</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Problem with minitoolbar Assert]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 12 May 2026 22:53:07 +0000</pubDate>
  <lastBuildDate>Sun, 26 Jul 2009 18:27:08 +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=14819</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[Problem with minitoolbar Assert : Hi Oleg. NoteDashboardWidget is...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14819&amp;PID=51341&amp;title=problem-with-minitoolbar-assert#51341</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5402">Aaron Koolen</a><br /><strong>Subject:</strong> 14819<br /><strong>Posted:</strong> 26 July 2009 at 6:27pm<br /><br />Hi Oleg. NoteDashboardWidget is my CXTPCommandBarsSiteBase &lt;CWnd&gt; derived class that I use as the anchor for the command bars. Inside that I have the CRichEdit control. When I select or right click on the CRichEdit, I call TrackMiniBar. The code where the asserts are happening is this:<br /><table width="99%"><tr><td><pre class="BBcode"><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ASSERT(HWND_TOP == NULL);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// same as desktop<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (m_hWnd == HWND_BOTTOM)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ASSERT(this == &CWnd::wndBottom);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else if (m_hWnd == HWND_TOPMOST)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ASSERT(this == &CWnd::wndTopMost);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else if (m_hWnd == HWND_NOTOPMOST)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ASSERT(this == &CWnd::wndNoTopMost);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// should be a normal window<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ASSERT(::IsWindow(m_hWnd));<br /></pre></td></tr></table><br /> And this line<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ASSERT(this == &CWnd::wndNoTopMost);<br /><br />seems to be where the assert happens but my IDE isn't being too helpful and placing the breakpoint inbetween that line and the next one (ISWindow) call. I've tried copying that code into my own area before calling TrackMiniBar and nothing is asserted. So I'm obviously missing something and assume I'm not setting things up correctly for the mini toolbar. <br />What is the normal procedure for setting up and using a minitoolbar? Are there any restrictions or requirements?<br /><br />I should add that the code for the NoteDashboardWidget is in an external DLL to the main application.<br /><br />Thanks.<br />]]>
   </description>
   <pubDate>Sun, 26 Jul 2009 18:27:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14819&amp;PID=51341&amp;title=problem-with-minitoolbar-assert#51341</guid>
  </item> 
  <item>
   <title><![CDATA[Problem with minitoolbar Assert : Hi, trace shows something wrong...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14819&amp;PID=51247&amp;title=problem-with-minitoolbar-assert#51247</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 14819<br /><strong>Posted:</strong> 24 July 2009 at 4:03am<br /><br />Hi,<DIV>trace shows something wrong with NoteDashboardWidget. Is it custom control on toolbar ?</DIV>]]>
   </description>
   <pubDate>Fri, 24 Jul 2009 04:03:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14819&amp;PID=51247&amp;title=problem-with-minitoolbar-assert#51247</guid>
  </item> 
  <item>
   <title><![CDATA[Problem with minitoolbar Assert : Hi all. New to the Toolkit and...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14819&amp;PID=51236&amp;title=problem-with-minitoolbar-assert#51236</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5402">Aaron Koolen</a><br /><strong>Subject:</strong> 14819<br /><strong>Posted:</strong> 23 July 2009 at 9:22pm<br /><br />Hi all. New to the Toolkit and struggling a bit with a MinitToolbar problem.<br /><br />I have a CXTPCommandBarsSiteBase&lt;CWnd&gt; derived class and I use the CommandBars from this to host my CXTPMiniToolbar. Inside my derived class I have a CRichEdit and I pop up the MiniToolbar when the user right clicks.<br /><br />Unfortunately when I call TrackMiniBar, the application ASSERTS in wincore.cpp, line 883 while checking the window handle of the parent window. Here is the callstack.<br /><br />CWnd::AssertValid() line 883 + 67 bytes<br />AfxAssertValidObject(const CObject * 0x0537b3a8 {NoteDashboardWidget}, const char * 0x5f8d06e0 THIS_FILE, int 738) line 108<br />CCmdUI::DoUpdate(CCmdTarget * 0x0537b3a8 {NoteDashboardWidget}, int 1) line 740<br />CXTPCommandBar::OnUpdateCmdUI() line 734<br />CXTPCommandBar::OnIdleUpdateCmdUI(unsigned int 1, unsigned int 1) line 595<br />CXTPPopupBar::Popup(CXTPControlPopup * 0x00000000 {CXTPControlPopup}, int 0) line 1072 + 20 bytes<br />CXTPPopupBar::Popup(int 810, int 249, const tagRECT * 0x0012fafc {top=0 bottom=0 left=0 right=0}) line 1101 + 20 bytes<br />CXTPMiniToolBar::TrackMiniBar(unsigned int 0, int 810, int 249) line 182 + 40 bytes<br />RichStringEditView::OnLButtonUp(unsigned int 0, CPoint {x=810 y=264}) line 290 + 30 bytes<br />CWnd::OnWndMsg(unsigned int 514, unsigned int 0, long 589893, long * 0x0012fcc4) line 1964<br />CWnd::WindowProc(unsigned int 514, unsigned int 0, long 589893) line 1585 + 30 bytes<br />AfxCallWndProc(CWnd * 0x0537b480 {RichStringEditView hWnd=???}, HWND__ * 0x00260d3e, unsigned int 514, unsigned int 0, long 589893) line 215 + 26 bytes<br />AfxWndProc(HWND__ * 0x00260d3e, unsigned int 514, unsigned int 0, long 589893) line 368<br />AfxWndProcBase(HWND__ * 0x00260d3e, unsigned int 514, unsigned int 0, long 589893) line 220 + 21 bytes<br />USER32! 7e418734()<br />USER32! 7e418816()<br />USER32! 7e4189cd()<br />USER32! 7e418a10()<br />CWinThread::PumpMessage() line 846<br />CWinThread::Run() line 480 + 11 bytes<br />CWinApp::Run() line 400<br />AfxWinMain(HINSTANCE__ * 0x00400000, HINSTANCE__ * 0x00000000, unsigned short * 0x0002099e, int 1) line 49 + 11 bytes<br />wWinMain(HINSTANCE__ * 0x00400000, HINSTANCE__ * 0x00000000, unsigned short * 0x0002099e, int 1) line 30<br />wWinMainCRTStartup() line 330 + 55 bytes<br />KERNEL32! 7c817077()<br /><br />I can't for the life of me figure out what's wrong. The minitoolbar appears OK, with the controls enabled/initialised OK, but something's going screwy somewhere.<br /><br />Is this a threading issue at all, or some other thing I need to be aware of with mini toolbars? I am using the toolbar class I have elsewhere and it's working fine when it's the RichEdit is inside a CXTPFrameWnd.<br /><br />Any help appreciated.<br />Aaron]]>
   </description>
   <pubDate>Thu, 23 Jul 2009 21:22:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14819&amp;PID=51236&amp;title=problem-with-minitoolbar-assert#51236</guid>
  </item> 
 </channel>
</rss>