<?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 : CXTPStatusBar indicatioproblem in modalless dialog</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : CXTPStatusBar indicatioproblem in modalless dialog]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 01 May 2026 12:56:54 +0000</pubDate>
  <lastBuildDate>Thu, 29 Mar 2007 03:49:25 +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=6745</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[CXTPStatusBar indicatioproblem in modalless dialog : Hi Mgampi;yes, you are right,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6745&amp;PID=21544&amp;title=cxtpstatusbar-indicatioproblem-in-modalless-dialog#21544</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1125">lajbr</a><br /><strong>Subject:</strong> 6745<br /><strong>Posted:</strong> 29 March 2007 at 3:49am<br /><br />Hi Mgampi;<br><br>yes, you are right, I forget at it of course. When I bind it with this message so it works fine. <br><br>I have found the solution of the minority problem with unfilled status after application startup too. It's neccessary to set the AFX_IDS_IDLEMESSAGE&nbsp; text in OnInitDialog() by: <br><br>CString csText;<br>csText.LoadString(AFX_IDS_IDLEMESSAGE);<br><br>m_wndStatusBar.SetPaneText(0, csText);<br><br>Now it works fine. <img src="http://forum.codejock.com/smileys/smiley1.gif" border="0" align="absmiddle"><br><br>Lajbr<br>]]>
   </description>
   <pubDate>Thu, 29 Mar 2007 03:49:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6745&amp;PID=21544&amp;title=cxtpstatusbar-indicatioproblem-in-modalless-dialog#21544</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPStatusBar indicatioproblem in modalless dialog : Hi Lajbr;  Did youforward the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6745&amp;PID=21542&amp;title=cxtpstatusbar-indicatioproblem-in-modalless-dialog#21542</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 6745<br /><strong>Posted:</strong> 29 March 2007 at 2:43am<br /><br />Hi Lajbr;<DIV>&nbsp;</DIV><DIV>Did you&nbsp;forward the WM_IDLEUPDATECMDUI message also to&nbsp;the integrated statusbar of your&nbsp;non modal&nbsp;dialog?</DIV><DIV>&nbsp;</DIV><DIV>m_wndStatusBar.SendMessage(WM_IDLEUPDATECMDUI);</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 29 Mar 2007 02:43:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6745&amp;PID=21542&amp;title=cxtpstatusbar-indicatioproblem-in-modalless-dialog#21542</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPStatusBar indicatioproblem in modalless dialog : Hi, your solutin seems very good,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6745&amp;PID=21519&amp;title=cxtpstatusbar-indicatioproblem-in-modalless-dialog#21519</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1125">lajbr</a><br /><strong>Subject:</strong> 6745<br /><strong>Posted:</strong> 28 March 2007 at 8:19am<br /><br />Hi, <br>your solutin seems very good, but I tried it and it doesn't work. I use this part of code in the mainframe:<br>LRESULT CMainFrame::OnIdleUpdateCmdUI(WPARAM wParam, LPARAM lParam)<br>{&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; CTestEmailDlg* ptr = NULL;<br>&nbsp;&nbsp;&nbsp; if(m_ctrlTestDlgList.size() &gt; 0)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; T_TESTDLG_LIST_ITER iter =&nbsp; m_ctrlTestDlgList.begin();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for(iter; iter != m_ctrlTestDlgList.end(); iter++)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ptr = *iter;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if(!ptr)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; continue;<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if(ptr-&gt;IsActive())<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {&nbsp;&nbsp;&nbsp;&nbsp;&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;&nbsp; ptr-&gt;SendMessage(WM_IDLEUPDATECMDUI, wParam, lParam);&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TRACE("send WM_IDLEUPDATECMDUI to the modalless dialog\n");<br>&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;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; return 0L;<br>}<br><br>and I joined this function in message map: ON_MESSAGE(WM_IDLEUPDATECMDUI, OnIdleUpdateCmdUI)<br><br>In the function I have a list of modalless dialogs, so I go throw the list and if the dialog is active then send this message to it. I see the TRACE info in output, so this functionality is successfully used, but it doesn't invoke the OnUpdateKeyIndicator() method in the dialog as you think. Isn't it connected rigth or did I make some mistake in the solution of your idea?<br><br>Thank you for help beforehand.<br><br>Lajbr<br>]]>
   </description>
   <pubDate>Wed, 28 Mar 2007 08:19:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6745&amp;PID=21519&amp;title=cxtpstatusbar-indicatioproblem-in-modalless-dialog#21519</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPStatusBar indicatioproblem in modalless dialog : Hi,  WM_KICKIDLE is sent only...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6745&amp;PID=21513&amp;title=cxtpstatusbar-indicatioproblem-in-modalless-dialog#21513</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 6745<br /><strong>Posted:</strong> 28 March 2007 at 1:02am<br /><br /><DIV>Hi,</DIV><DIV>&nbsp;</DIV><DIV>WM_KICKIDLE&nbsp; is sent only for modal dialogs.</DIV><DIV>&nbsp;</DIV><DIV>you have to catch WM_IDLEUPDATECMDUI&nbsp; in mainframe and send such message to your dialog.</DIV>]]>
   </description>
   <pubDate>Wed, 28 Mar 2007 01:02:48 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6745&amp;PID=21513&amp;title=cxtpstatusbar-indicatioproblem-in-modalless-dialog#21513</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPStatusBar indicatioproblem in modalless dialog : Hi; did you also implement a...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6745&amp;PID=21511&amp;title=cxtpstatusbar-indicatioproblem-in-modalless-dialog#21511</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 6745<br /><strong>Posted:</strong> 27 March 2007 at 6:00pm<br /><br />Hi;<DIV>did you also implement a WM_KICKIDLE message handler? You have to send a WM_IDLEUPDATECMDUI message to your statusbar within the WM_KICKIDLE message handler.</DIV><DIV>Try to search for WM_KICKIDLE in toolkit samples - I believe the DialogPanes sample shows how to implement this.</DIV>]]>
   </description>
   <pubDate>Tue, 27 Mar 2007 18:00:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6745&amp;PID=21511&amp;title=cxtpstatusbar-indicatioproblem-in-modalless-dialog#21511</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPStatusBar indicatioproblem in modalless dialog : Hi, I have problem with CXTPStatusBar...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6745&amp;PID=21509&amp;title=cxtpstatusbar-indicatioproblem-in-modalless-dialog#21509</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1125">lajbr</a><br /><strong>Subject:</strong> 6745<br /><strong>Posted:</strong> 27 March 2007 at 3:12pm<br /><br />Hi, <br>I have problem with CXTPStatusBar in my application. My application is SDI with statusbar. There is a typical content i.e. status message on the left side and status keys (NUM, CAPS, SCRL) indication on the right side. The trouble is that I need to run modalless dialogs with  statusbar and same indication too. If these dialogs were in separate (dialog based) application everything was ok. But from specific reasons I need to use this dialog directly from my application and it doesn't work. The big problem is, that status keys (NUM, CAPS, SCRL) indication doesn't work properly but status message works nearly fine (status message is successfully changing but it isn't filled when the dialog is started). I use the same code so I don't know what's wrong. My dialog is based on CXTPDialogBase&lt;CXTResizeDialog&gt;. <br><br>I have defined static UINT indicators&#091;&#093; =<br>{<br>&nbsp;&nbsp;&nbsp; ID_SEPARATOR,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // status line indicator<br>&nbsp;&nbsp;&nbsp; ID_INDICATOR_CAPS,<br>&nbsp;&nbsp;&nbsp; ID_INDICATOR_NUM,<br>&nbsp;&nbsp;&nbsp; ID_INDICATOR_SCRL,<br>};<br><br>I create statusbar in OnInitDialog() by:<br>if (!m_wndStatusBar.Create(this) || !m_wndStatusBar.SetIndicators(indicators, sizeof(indicators)/sizeof(UINT)))<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; TRACE0("Failed to create status bar\n");<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return -1;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // fail to create<br>&nbsp;&nbsp;&nbsp; }<br><br>and use m_wndStatusBar.SetPaneInfo(0, ID_SEPARATOR, SBPS_STRETCH, 100); in OnInitDialog() too.<br><br>I use the connection in messagemap:<br>ON_UPDATE_COMMAND_UI(ID_INDICATOR_CAPS, OnUpdateKeyIndicator)<br>ON_UPDATE_COMMAND_UI(ID_INDICATOR_NUM, OnUpdateKeyIndicator)<br>ON_UPDATE_COMMAND_UI(ID_INDICATOR_SCRL, OnUpdateKeyIndicator) <br><br>and the update routine:<br>void CMyDlg::OnUpdateKeyIndicator(CCmdUI* pCmdUI)<br>{<br>&nbsp;&nbsp;&nbsp; UINT nVK;<br>&nbsp;&nbsp;&nbsp; UINT flag = 0x0001;<br><br>&nbsp;&nbsp;&nbsp; switch (pCmdUI-&gt;m_nID)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; case ID_INDICATOR_CAPS:<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; nVK = VK_CAPITAL;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; break;<br><br>&nbsp;&nbsp;&nbsp; case ID_INDICATOR_NUM:<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; nVK = VK_NUMLOCK;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; break;<br><br>&nbsp;&nbsp;&nbsp; case ID_INDICATOR_SCRL:<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; nVK = VK_SCROLL;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; break;<br><br>&nbsp;&nbsp;&nbsp; default:<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; TRACE1("Warning: OnUpdateKeyIndicator - unknown indicator 0x%04X.\n",<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pCmdUI-&gt;m_nID);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pCmdUI-&gt;ContinueRouting();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return; // not for us<br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; pCmdUI-&gt;Enable(::GetKeyState(nVK) &amp; flag);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; // enable static text based on toggled key state<br>&nbsp;&nbsp;&nbsp; ASSERT(pCmdUI-&gt;m_bEnableChanged);<br>}<br><br>I don't see something missing or extraordinary but OnUpdateKeyIndicator() isn't called. I tried to off the status key indication in the main application but without effect in this dialog... Can you help me please? <br><br>Thank you beforehand for each suggestion.<br><br>Lajbr<br><br>P.S.: I don't know if it's important but I use Codejock v10.4 and VS2005.<br>  ]]>
   </description>
   <pubDate>Tue, 27 Mar 2007 15:12:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6745&amp;PID=21509&amp;title=cxtpstatusbar-indicatioproblem-in-modalless-dialog#21509</guid>
  </item> 
 </channel>
</rss>