<?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 : CCustomItemIPAddress</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : CCustomItemIPAddress]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 11 Apr 2026 12:13:10 +0000</pubDate>
  <lastBuildDate>Tue, 17 Jan 2017 23:36:16 +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=23237</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[CCustomItemIPAddress : I added button into IP Address...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23237&amp;PID=75501&amp;title=ccustomitemipaddress#75501</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9027">netman2</a><br /><strong>Subject:</strong> 23237<br /><strong>Posted:</strong> 17 January 2017 at 11:36pm<br /><br />I added button into IP Address Control.<div><br></div><div>So it has a button inside IP Address Control.</div><div><br></div><div>And I tried your solution, It's a same.</div><div><br></div><div>Thanks, your reply!</div>]]>
   </description>
   <pubDate>Tue, 17 Jan 2017 23:36:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23237&amp;PID=75501&amp;title=ccustomitemipaddress#75501</guid>
  </item> 
  <item>
   <title><![CDATA[CCustomItemIPAddress : CCustomItemIPAddress control doesn&amp;#039;t...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23237&amp;PID=75481&amp;title=ccustomitemipaddress#75481</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8730">olebed</a><br /><strong>Subject:</strong> 23237<br /><strong>Posted:</strong> 12 January 2017 at 9:47am<br /><br /><span style="line-height: 16.8px;">CCustomItemIPAddress control &nbsp;doesn't have inplace buttons.</span><br><br><span style="line-height: 16.8px;">Your code need to be&nbsp;</span>improved<span style="line-height: 16.8px;">&nbsp;<table width="99%"><tr><td><pre class="BBcode"></span>LRESULT CPropertyGridDlg::OnGridNotify(WPARAM wParam, LPARAM lParam)<div>{</div><div>&nbsp; &nbsp; if (wParam == XTP_PGN_DBLCLICK || wParam == XTP_PGN_RCLICK || wParam == XTP_PGN_INPLACEBUTTONDOWN)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; //CXTPPropertyGridInplaceButton* button1 = DYNAMIC_DOWNCAST(CXTPPropertyGridInplaceButton, (CWnd*)lParam); &nbsp; &nbsp;//wrong cast</div><div>&nbsp; &nbsp; &nbsp; &nbsp; CXTPPropertyGridInplaceButton* button = dynamic_cast&lt;CXTPPropertyGridInplaceButton*&gt;((CWnd*)lParam);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; if (button)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CXTPPropertyGridItem* &nbsp;pGridItem = button-&gt;GetItem();</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(pGridItem)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pGridItem-&gt;Remove();</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div><br>&nbsp; &nbsp; }......<span style="line-height: 16.8px;"></pre></td></tr></table><br></span>]]>
   </description>
   <pubDate>Thu, 12 Jan 2017 09:47:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23237&amp;PID=75481&amp;title=ccustomitemipaddress#75481</guid>
  </item> 
  <item>
   <title><![CDATA[CCustomItemIPAddress : class CCustomItemIPAddress : public...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23237&amp;PID=75473&amp;title=ccustomitemipaddress#75473</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9027">netman2</a><br /><strong>Subject:</strong> 23237<br /><strong>Posted:</strong> 09 January 2017 at 6:41am<br /><br />class CCustomItemIPAddress : public CXTPPropertyGridItem<div>{</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>class CInplaceEditIPAddress : public CXTPPropertyGridInplaceEdit</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>{</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>public:</div><div><span ="Apple-tab-span" style="white-space:pre">		</span>BOOL Create(LPCTSTR /*lpszClassName*/, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT&amp; rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext)</div><div><span ="Apple-tab-span" style="white-space:pre">		</span>{</div><div><span ="Apple-tab-span" style="white-space:pre">			</span>if (!CWnd::Create(WC_IPADDRESS, lpszWindowName, dwStyle, rect, pParentWnd, nID, pContext))</div><div><span ="Apple-tab-span" style="white-space:pre">				</span>return FALSE;</div><div><br></div><div><span ="Apple-tab-span" style="white-space:pre">			</span>ModifyStyle(WS_BORDER, 0);</div><div><span ="Apple-tab-span" style="white-space:pre">			</span>ModifyStyleEx(WS_EX_CLIENTEDGE, 0, SWP_FRAMECHANGED);</div><div><span ="Apple-tab-span" style="white-space:pre">			</span>return TRUE;</div><div><span ="Apple-tab-span" style="white-space:pre">		</span>}</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>};</div><div><br></div><div>public:</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>CCustomItemIPAddress::CCustomItemIPAddress(CString strCaption)</div><div><span ="Apple-tab-span" style="white-space:pre">		</span>: CXTPPropertyGridItem(strCaption)</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>{</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>}</div><div><br></div><div>protected:</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>virtual CXTPPropertyGridInplaceEdit&amp; GetInplaceEdit()</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>{</div><div><span ="Apple-tab-span" style="white-space:pre">		</span>return m_wndEdit;</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>}</div><div><br></div><div>private:</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>CInplaceEditIPAddress m_wndEdit;</div><div><br></div><div>};</div><div><br></div><div>Now I'm using above CCustomItemIPAddress from sample code.&nbsp;</div><div><br></div><div>It was nice until I remove one of the CCustomItemIPAddress from PropertyGrid.</div><div><br></div><div>When I remove CCustomItemIPAddress from PropertyGrid, my propertygrid's font and size are changed.</div><div><br></div><div>I don't know how to handle this.&nbsp;</div><div><br></div><div>This below is my sample code.</div><div><br></div><div><div>::OnGridNotify(WPARAM wParam, LPARAM lParam)</div><div>{</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>CXTPPropertyGridInplaceButton * button = (CXTPPropertyGridInplaceButton *)lParam;</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>button-&gt;GetItem()-&gt;Remove();</div><div>}</div></div><div><br></div><div>You can test in Codejock sample code in PropertyGrid. There is CCustomItemIPAddress.</div><div><br></div><div>Please help me!</div><div><br></div>]]>
   </description>
   <pubDate>Mon, 09 Jan 2017 06:41:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23237&amp;PID=75473&amp;title=ccustomitemipaddress#75473</guid>
  </item> 
 </channel>
</rss>