<?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 : Password CXTPC&#111;ntrolEdit in Toolbar</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Password CXTPC&#111;ntrolEdit in Toolbar]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 21 Apr 2026 17:58:50 +0000</pubDate>
  <lastBuildDate>Wed, 17 Aug 2005 12:10:56 +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=2701</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[Password CXTPC&#111;ntrolEdit in Toolbar : Looks like the better way to do...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2701&amp;PID=8187&amp;title=password-cxtpcontroledit-in-toolbar#8187</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=15">spike</a><br /><strong>Subject:</strong> 2701<br /><strong>Posted:</strong> 17 August 2005 at 12:10pm<br /><br />Looks like the better way to do it to me.]]>
   </description>
   <pubDate>Wed, 17 Aug 2005 12:10:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2701&amp;PID=8187&amp;title=password-cxtpcontroledit-in-toolbar#8187</guid>
  </item> 
  <item>
   <title><![CDATA[Password CXTPC&#111;ntrolEdit in Toolbar :  For now I just have:    class...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2701&amp;PID=8065&amp;title=password-cxtpcontroledit-in-toolbar#8065</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1233">mwest</a><br /><strong>Subject:</strong> 2701<br /><strong>Posted:</strong> 08 August 2005 at 4:47pm<br /><br />For now I just have:<br><br><table width="99%"><tr><td><pre class="BBcode"><br>class CObscureEdit : public CXTPControlEdit<br>{<br>public:<br>&nbsp;&nbsp;&nbsp; DECLARE_XTP_CONTROL(CObscureEdit)<br><br>public:<br>&nbsp;&nbsp;&nbsp; virtual CXTPControlEditCtrl* CreateEditControl(){<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pEditCtrl = new CObscureEditCtrl;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return pEditCtrl;<br>&nbsp;&nbsp;&nbsp; }<br><br>protected:<br>&nbsp;&nbsp;&nbsp; CXTPControlEditCtrl* pEditCtrl;<br>};<br><br><br>class CObscureEditCtrl : public CXTPControlEditCtrl<br>{<br>// Overrides<br>public:<br>&nbsp;&nbsp;&nbsp; // ClassWizard generated virtual function overrides<br>&nbsp;&nbsp;&nbsp; //{{AFX_VIRTUAL(CObscureEditCtrl)<br>protected:<br>&nbsp;&nbsp;&nbsp; virtual BOOL PreCreateWindow(CREATESTRUCT&amp; cs){<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; cs.style |= ES_PASSWORD;&nbsp;&nbsp;&nbsp; // Make it password protected<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return CXTPControlEditCtrl::PreCreateWindow(cs);<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; //}}AFX_VIRTUAL<br>};<br></pre></td></tr></table><br><em>NOTE:&nbsp; The code was truncated and inlined.</em><br><br>It seems to work fine, but I am not sure if it is the best way to do it.<br><span style="font-size:10px"><br /><br />Edited by mwest</span>]]>
   </description>
   <pubDate>Mon, 08 Aug 2005 16:47:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2701&amp;PID=8065&amp;title=password-cxtpcontroledit-in-toolbar#8065</guid>
  </item> 
  <item>
   <title><![CDATA[Password CXTPC&#111;ntrolEdit in Toolbar : Only one way to override CXTPControlEdit class...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2701&amp;PID=8055&amp;title=password-cxtpcontroledit-in-toolbar#8055</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 2701<br /><strong>Posted:</strong> 08 August 2005 at 12:41pm<br /><br /><P>Only one way to override CXTPControlEdit</P><P>class CXTPControlPasswordEdit : public CXTPControlEdit<BR>{</P><P>DECLATE_XTP_CONROL(CXTPControlPasswordEdit )</P><FONT size=2><P>&nbsp;&nbsp; void SetRect(CRect rcControl)<BR>&nbsp; {</P><P>&nbsp;&nbsp;&nbsp;&nbsp; CXTPControlEdit::SetRect(rcControl);<BR>&nbsp;&nbsp;&nbsp;&nbsp; m_pEdit-&gt;SetPasswordChar('*');</P><P>&nbsp; }</FONT><BR>}</P><P>IMPLEMENT_XTP_CONTROL(CXTPControlPasswordEdit , CXTPControlEdit)</P><P>&nbsp;</P><P>ps. didn't tested :)</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Mon, 08 Aug 2005 12:41:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2701&amp;PID=8055&amp;title=password-cxtpcontroledit-in-toolbar#8055</guid>
  </item> 
  <item>
   <title><![CDATA[Password CXTPC&#111;ntrolEdit in Toolbar : Is there an easy way to make a...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2701&amp;PID=8053&amp;title=password-cxtpcontroledit-in-toolbar#8053</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1233">mwest</a><br /><strong>Subject:</strong> 2701<br /><strong>Posted:</strong> 08 August 2005 at 11:59am<br /><br />Is there an easy way to make a CXTPControlEdit in a toolbar a password field (one with '*')?<br><br>I tried to create the control in OnCreateControl and callSetPasswordChar, but the CEdit is not created until 'SetRect' is called(which is too late).<br><br><table width="99%"><tr><td><pre class="BBcode"><br>m_pPassword = (CXTPControlEdit*)CXTPControlEdit::CreateObject();<br><br>m_pPassword-&gt;SetWidth(150);<br>m_pPassword-&gt;SetFlags(xtpFlagManualUpdate);<br>m_pPassword-&gt;SetCaption("password");<br> m_pPassword-&gt;GetEditCtrl()-&gt;SetPasswordChar('*');&nb sp;&nbsp;  // &lt;-- Does not work!<br><br>lpCreateControl-&gt;pControl = m_pPassword;<br><br>return TRUE;<br></pre></td></tr></table><br><br>I am trying to create a simple password control without having to create a custom class.&nbsp; Thanks!<br>]]>
   </description>
   <pubDate>Mon, 08 Aug 2005 11:59:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2701&amp;PID=8053&amp;title=password-cxtpcontroledit-in-toolbar#8053</guid>
  </item> 
 </channel>
</rss>