<?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 : Modeless Marquee Progress Bar Using CXTPTaskBarDlg</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Controls : Modeless Marquee Progress Bar Using CXTPTaskBarDlg]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 00:56:35 +0000</pubDate>
  <lastBuildDate>Thu, 20 Aug 2009 15:54:37 +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=13519</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[Modeless Marquee Progress Bar Using CXTPTaskBarDlg : I had the same problem, I solved...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13519&amp;PID=52254&amp;title=modeless-marquee-progress-bar-using-cxtptaskbardlg#52254</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2449">lauralucas</a><br /><strong>Subject:</strong> 13519<br /><strong>Posted:</strong> 20 August 2009 at 3:54pm<br /><br />I had the same problem, I solved it with this:<br><br><font face="Courier New, Courier, mono">&nbsp;&nbsp;&nbsp; virtual void OnDialogConstructed()<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; SetMarqueeProgressBar(TRUE);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; StartProgressBarMarquee(TRUE, 10);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; GetDlgItem(IDOK)-&gt;ShowWindow(FALSE);<br>&nbsp;&nbsp;&nbsp; }<br><br><font face="Arial, Helvetica, sans-serif">This way you have a dialog with no buttons and the marquee works. <br><br></font></font>]]>
   </description>
   <pubDate>Thu, 20 Aug 2009 15:54:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13519&amp;PID=52254&amp;title=modeless-marquee-progress-bar-using-cxtptaskbardlg#52254</guid>
  </item> 
  <item>
   <title><![CDATA[Modeless Marquee Progress Bar Using CXTPTaskBarDlg : It&amp;#039;s a well-known problem....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13519&amp;PID=47121&amp;title=modeless-marquee-progress-bar-using-cxtptaskbardlg#47121</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 13519<br /><strong>Posted:</strong> 25 March 2009 at 2:50pm<br /><br /><P>It's a well-known problem. Read this:</P><DIV><a href="http://www.microsoft.com/msj/0798/c0798.aspx" target="_blank">http://www.microsoft.com/msj/0798/c0798.aspx</A></DIV>]]>
   </description>
   <pubDate>Wed, 25 Mar 2009 14:50:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13519&amp;PID=47121&amp;title=modeless-marquee-progress-bar-using-cxtptaskbardlg#47121</guid>
  </item> 
  <item>
   <title><![CDATA[Modeless Marquee Progress Bar Using CXTPTaskBarDlg : Hi again znakeeye,In my trials,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13519&amp;PID=46908&amp;title=modeless-marquee-progress-bar-using-cxtptaskbardlg#46908</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2606">Cheerios</a><br /><strong>Subject:</strong> 13519<br /><strong>Posted:</strong> 19 March 2009 at 1:52pm<br /><br />Hi again znakeeye,<br><br>In my trials, I called the DoModal method in place of the Create method.&nbsp; That got the marquee going correctly, but I wasn't able to do any processing because the dialog tied everything up at that point.&nbsp; <br><br>Could I have overridden the DoModal method in the progress bar class and performed the processing there or used some kind of callback method to access the processing code?&nbsp; I may not understand the proper way to use modal progress bars -- I couldn't find a good example that illustrated actually doing something while the modal progress bar was active.<br><br>Thanks!<br>]]>
   </description>
   <pubDate>Thu, 19 Mar 2009 13:52:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13519&amp;PID=46908&amp;title=modeless-marquee-progress-bar-using-cxtptaskbardlg#46908</guid>
  </item> 
  <item>
   <title><![CDATA[Modeless Marquee Progress Bar Using CXTPTaskBarDlg : What would be the proper way if...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13519&amp;PID=46903&amp;title=modeless-marquee-progress-bar-using-cxtptaskbardlg#46903</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 13519<br /><strong>Posted:</strong> 19 March 2009 at 12:29pm<br /><br />What would be the proper way if you want a <EM>modal</EM> CXTPTaskDialog which does <EM>not </EM>block the main thread?]]>
   </description>
   <pubDate>Thu, 19 Mar 2009 12:29:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13519&amp;PID=46903&amp;title=modeless-marquee-progress-bar-using-cxtptaskbardlg#46903</guid>
  </item> 
  <item>
   <title><![CDATA[Modeless Marquee Progress Bar Using CXTPTaskBarDlg :    Hi Oleg,I tried the AfxGetApp-&amp;gt;PumpMessage()...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13519&amp;PID=46108&amp;title=modeless-marquee-progress-bar-using-cxtptaskbardlg#46108</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2606">Cheerios</a><br /><strong>Subject:</strong> 13519<br /><strong>Posted:</strong> 02 March 2009 at 7:13am<br /><br />Hi Oleg,<br><br>I tried the AfxGetApp-&gt;PumpMessage() command, but for some reason, I still couldn't get the marquee to start up.&nbsp; It works if I make it modal, but it just won't cycle if it's in the modeless state.&nbsp; I'm sure it's something that I'm doing wrong!<img src="http://forum.codejock.com/smileys/smiley9.gif" border="0" align="absmiddle">&nbsp; <br><br>About the buttons...Is there a way to eliminate ALL buttons from the task dialog, even the default OK?&nbsp; I tried both m_arrButtons.RemoveAll() and SetCommonButtons(0,0,0,0,0,0), but neither worked.<br><br>Thanks for your help!<br><br>]]>
   </description>
   <pubDate>Mon, 02 Mar 2009 07:13:48 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13519&amp;PID=46108&amp;title=modeless-marquee-progress-bar-using-cxtptaskbardlg#46108</guid>
  </item> 
  <item>
   <title><![CDATA[Modeless Marquee Progress Bar Using CXTPTaskBarDlg : Hi,  In &amp;#034;some stuff&amp;#034;...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13519&amp;PID=46069&amp;title=modeless-marquee-progress-bar-using-cxtptaskbardlg#46069</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 13519<br /><strong>Posted:</strong> 02 March 2009 at 12:46am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>In "some stuff" block you have sometimes call AfxGetApp()-&gt;PumpMessage() to allow Windows process messages.</DIV>]]>
   </description>
   <pubDate>Mon, 02 Mar 2009 00:46:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13519&amp;PID=46069&amp;title=modeless-marquee-progress-bar-using-cxtptaskbardlg#46069</guid>
  </item> 
  <item>
   <title><![CDATA[Modeless Marquee Progress Bar Using CXTPTaskBarDlg :    Hi,I am trying to create...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13519&amp;PID=45984&amp;title=modeless-marquee-progress-bar-using-cxtptaskbardlg#45984</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2606">Cheerios</a><br /><strong>Subject:</strong> 13519<br /><strong>Posted:</strong> 27 February 2009 at 1:51pm<br /><br />Hi,<br><br>I am trying to create a modeless marquee progress bar thatwill remain up while a long process is taking place.&nbsp; I have created aderived class from the CXTPTaskBarDlg class.&nbsp; I can get the dialog tocome up with a progress bar that shows a portion of the progress bar ashaving been initially incremented, but the progress bar doesn'tcontinuously cycle like it should after that point.&nbsp; I would also liketo remove all buttons from the dialog window, since this is a modelessdialog with no cancellation options.&nbsp; If anyone has any insight intohow I can make the modeless marquee progress bar update correctly andcreate the CXTPTaskBarDlg without any buttons, I'd really appreciateit.&nbsp; <br><br>I've based my code on the VistaTaskDialog example, as well as the post &lt;<a href="http://https//forum.codejock.com/forum_posts.asp?TID=7706&amp;KW=marquee" target="_blank">https://forum.codejock.com/forum_posts.asp?TID=7706&amp;KW=marquee</a>&gt;.<br><br>Product: Xtreme Toolkit (MFC) version 13.0.0 <br>Platform: Windows Vista (64bit) - SP 1 (running CodeJock and program&nbsp; in 32bit mode)<br>Language: C++<br><br>The code I've been using is below:<br><br>//-------------------------------------------------------<br>// ProgressBarDlg.h : interface for the CProgressBarDlg class.<br>#pragma once<br><br>#include "stdafx.h"<br>#include "resource.h"<br><br>// CProgressBarDlg dialog<br>class CProgressBarDlg : public CXTPTaskDialog<br><br>public:<br>&nbsp;&nbsp;&nbsp; CProgressBarDlg(CWnd* pParent = NULL);&nbsp;&nbsp; // standard constructor<br>&nbsp;&nbsp;&nbsp; virtual ~CProgressBarDlg();<br><br>protected:<br>&nbsp;&nbsp;&nbsp; void OnDialogConstructed();<br>};<br><br>//-------------------------------------------------------<br>// ProgressBarDlg.cpp : implementation file<br>#include "stdafx.h"<br>#include "resource.h"<br>#include "ProgressBarDlg.h" <br><br>// CProgressBarDlg dialog<br>CProgressBarDlg::CProgressBarDlg(CWnd* pParent /*=NULL*/)<br>&nbsp;&nbsp;&nbsp; : CXTPTaskDialog(pParent)<br>{&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; //this-&gt;m_arrButtons.RemoveAll();&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; this-&gt;EnableCancellation(FALSE);&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; this-&gt;AddButton("Default", IDC_BUTTON1);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Don't actually want this.<br>&nbsp;&nbsp;&nbsp; m_config.dwFlags |= TDF_SHOW_PROGRESS_BAR;<br>}<br><br>CProgressBarDlg::~CProgressBarDlg()<br>{<br>}<br><br>void CProgressBarDlg::OnDialogConstructed()<br>{&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; //this-&gt;m_arrButtons.RemoveAll();&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; this-&gt;EnableButton(IDC_BUTTON1,FALSE);<br><br>&nbsp;&nbsp;&nbsp; this-&gt;SetMarqueeProgressBar(TRUE);<br>&nbsp;&nbsp;&nbsp; this-&gt;StartProgressBarMarquee(TRUE, 10);&nbsp;&nbsp;&nbsp; <br>}<br><br>//-------------------------------------------------------<br>// Code in&nbsp; program<br>CProgressBarDlg dlg(this);<br>dlg.Create(this);<br>dlg.SetWindowTitle("Reading Data...");<br><br>// ...Do some stuff<br><br>dlg.DestroyWindow();<br><br>//-------------------------------------------------------<br><br><br><br>Thanks in advance for your help!<br><br><br>]]>
   </description>
   <pubDate>Fri, 27 Feb 2009 13:51:14 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13519&amp;PID=45984&amp;title=modeless-marquee-progress-bar-using-cxtptaskbardlg#45984</guid>
  </item> 
 </channel>
</rss>