<?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 Property Sheet not working as Expected!</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Modeless Property Sheet not working as Expected!]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 20 Apr 2026 08:31:33 +0000</pubDate>
  <lastBuildDate>Wed, 29 May 2013 07:18:43 +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=21648</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 Property Sheet not working as Expected! :  While surfing on internet about...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=21648&amp;PID=71005&amp;title=modeless-property-sheet-not-working-as-expected#71005</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4824">Satyen</a><br /><strong>Subject:</strong> 21648<br /><strong>Posted:</strong> 29 May 2013 at 7:18am<br /><br />While surfing on internet about modeless propertysheet I came across this discussion. <div>&nbsp;</div><div><a href="http://msgroups.net/microsoft.public.vc.mfc/how-to-make-a-popup-window-always-&#111;n/564218" target="_blank" rel="nofollow">http://msgroups.net/microsoft.public.vc.mfc/how-to-make-a-popup-window-always-on/564218</a></div><div>&nbsp;</div><div>I think we <strong>can not</strong> make modeless property sheets to stay always on top of our application windows. It will either stay on top of all windows or it will go in background. This seems to be a limitation from Microsoft.&nbsp;I request forum members to confirm&nbsp; this. &nbsp;</div>]]>
   </description>
   <pubDate>Wed, 29 May 2013 07:18:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=21648&amp;PID=71005&amp;title=modeless-property-sheet-not-working-as-expected#71005</guid>
  </item> 
  <item>
   <title><![CDATA[Modeless Property Sheet not working as Expected! : Hi, please create a support ticket....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=21648&amp;PID=70985&amp;title=modeless-property-sheet-not-working-as-expected#70985</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1755">ABuenger</a><br /><strong>Subject:</strong> 21648<br /><strong>Posted:</strong> 24 May 2013 at 10:14am<br /><br />Hi, please create a support ticket. Thanks<br><br>]]>
   </description>
   <pubDate>Fri, 24 May 2013 10:14:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=21648&amp;PID=70985&amp;title=modeless-property-sheet-not-working-as-expected#70985</guid>
  </item> 
  <item>
   <title><![CDATA[Modeless Property Sheet not working as Expected! :    I have a desktop application....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=21648&amp;PID=70947&amp;title=modeless-property-sheet-not-working-as-expected#70947</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4824">Satyen</a><br /><strong>Subject:</strong> 21648<br /><strong>Posted:</strong> 17 May 2013 at 3:58am<br /><br /><font size="4"><font face="Times New Roman"></font></font><p style="margin: 0in 0in 0pt; mso-paginati&#111;n: widow-orphan;"><font size="4"><span style="font-size: 10pt; mso-bidi-font-family: Calibri;"><font face="Calibri"><font size="3">I have a desktop application. I want to invokea modeless dialog from my application. Thus, I created a dialog using</font> ‘</font></span><span style='color: blue; font-family: "Courier New"; mso-bidi-: MR;'>CXTPPropertySheet’</span><span style="font-size: 10pt; mso-bidi-font-family: Calibri;"><font face="Calibri">class. <font size="3">Theseare my requirements - Though my dialog is modeless I want it to be always infront. From my dialog I invoke a separate dialog. Now the new dialog should bethe active one and in front. But if I again click on my dialog it should be theactive and it should be in front. <?: prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></font></font></span></font></p><font size="4" face="Times New Roman"></font><p style="margin: 0in 0in 0pt; mso-paginati&#111;n: widow-orphan;"><span style="font-size: 10pt; mso-bidi-font-family: Calibri;"><font face="Calibri"><font size="4">This is my code – <o:p></o:p></font></font></span></p><font size="4" face="Times New Roman"></font><p style="margin: 0in 0in 0pt; mso-paginati&#111;n: widow-orphan;"><span style="font-size: 10pt; mso-bidi-font-family: Calibri;"><o:p><font size="4" face="Calibri">Class &nbsp;Declaration - </font></o:p></span></p><p style="margin: 0in 0in 0pt; mso-paginati&#111;n: widow-orphan;"><span style="font-size: 10pt; mso-bidi-font-family: Calibri;"><o:p><font face="Courier New"><font size="3"><font color="#0000ff" face="Courier New"><font color="#0000ff" face="Courier New">class </font></font><font color="#0000ff" face="Courier New"><font color="#0000ff" face="Courier New">JFEAOptimizationMainDlg</font></font><font face="Courier New"> : </font><font color="#0000ff" face="Courier New"><font color="#0000ff" face="Courier New">public</font></font><font face="Courier New"> </font></font><font color="#0000ff" face="Courier New"><font color="#0000ff" size="3" face="Courier New">CXTPPropertySheet<br></font></font><font size="3"><font face="Courier New">{<br>&nbsp;</font><font color="#a000a0" face="Courier New"><font color="#a000a0" face="Courier New">&nbsp;&nbsp;DECLARE_DYNAMIC</font></font><font face="Courier New">(</font><font color="#0000ff" face="Courier New"><font color="#0000ff" face="Courier New">JFEAOptimizationMainDlg</font></font></font><font size="3" face="Courier New">)<br></font></font></o:p></span></p><p style="margin: 0in 0in 0pt; mso-paginati&#111;n: widow-orphan;"><span style="font-size: 10pt; mso-bidi-font-family: Calibri;"><o:p><font face="Courier New"><font color="#0000ff" face="Courier New"><font color="#0000ff" size="3" face="Courier New">&nbsp;&nbsp; private:</font></font></font></o:p><font face="Courier New"><font color="#0000ff" face="Courier New"></font></font></span></p><font face="Courier New"><font color="#0000ff" size="3" face="Courier New"><p>};&nbsp;</p></font><p><font face="Courier New"><span style="font-size: 10pt; mso-bidi-font-family: Calibri;"><o:p><font size="4" face="Calibri">Class&nbsp; Constructor - </font></o:p></span></font></p><font face="Courier New"></font></font><font face="Courier New"></font><font size="4" face="Times New Roman"></font><p style="margin: 0in 0in 0pt; mso-paginati&#111;n: widow-orphan;"><font size="4"><span style='color: blue; font-family: "Courier New"; mso-bidi-: MR;'>JFEAOptimizationMainDlg</span><span style='font-family: "Courier New"; mso-bidi-: MR;'>::<span style="color: blue;">JFEAOptimizationMainDlg</span>(<span style="color: blue;">JFEACreateOptimizationCmd</span>*<span style="color: navy;">pCmd</span>, <span style="color: blue;">CWnd</span>* <span style="color: navy;">pParentWnd</span>)<o:p></o:p></span></font></p><font size="4" face="Times New Roman"></font><p style="margin: 0in 0in 0pt; mso-paginati&#111;n: widow-orphan;"><span style='font-family: "Courier New"; mso-bidi-: MR;'><font size="4">{<o:p></o:p></font></span></p><font size="4" face="Times New Roman"></font><p style="margin: 0in 0in 0pt; mso-paginati&#111;n: widow-orphan;"><span style='font-family: "Courier New"; mso-bidi-: MR;'><font size="4"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: blue;">HMODULE</span><span style="mso-tab-count: 2;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: navy;">hDCXResource</span> = <span>NULL</span>;<o:p></o:p></font></span></p><font size="4" face="Times New Roman"></font><p style="margin: 0in 0in 0pt; mso-paginati&#111;n: widow-orphan;"><span style='font-family: "Courier New"; mso-bidi-: MR;'><font size="4"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: blue;">HINSTANCE</span><span style="mso-tab-count: 2;">&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: navy;">hInstPrevious</span> = <span>NULL</span>;<o:p></o:p></font></span></p><font size="4" face="Times New Roman"></font><p style="margin: 0in 0in 0pt; mso-paginati&#111;n: widow-orphan;"><span style='font-family: "Courier New"; mso-bidi-: MR;'><font size="4"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: blue;">HWND</span><span style="mso-tab-count: 3;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: navy;">hWnd</span> = <span style="color: maro&#111;n;">GetSafeHwnd</span>();<o:p></o:p></font></span></p><font size="4" face="Times New Roman"></font><p style="margin: 0in 0in 0pt; mso-paginati&#111;n: widow-orphan;"><span style='font-family: "Courier New"; mso-bidi-: MR;'><o:p><font size="4">&nbsp;</font></o:p></span></p><font size="4" face="Times New Roman"></font><p style="margin: 0in 0in 0pt; mso-paginati&#111;n: widow-orphan;"><span style='font-family: "Courier New"; mso-bidi-: MR;'><font size="4"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: maro&#111;n;">JMGetPartDCXResourceModuleHandle</span>(<span style="color: navy;">hDCXResource</span>);<o:p></o:p></font></span></p><font size="4" face="Times New Roman"></font><p style="margin: 0in 0in 0pt; mso-paginati&#111;n: widow-orphan;"><span style='font-family: "Courier New"; mso-bidi-: MR;'><o:p><font size="4">&nbsp;</font></o:p></span></p><font size="4" face="Times New Roman"></font><p style="margin: 0in 0in 0pt; mso-paginati&#111;n: widow-orphan;"><span style='font-family: "Courier New"; mso-bidi-: MR;'><font size="4"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: blue;">if</span>( <span>NULL</span> != <span style="color: navy;">hDCXResource</span> )<o:p></o:p></font></span></p><font size="4" face="Times New Roman"></font><p style="margin: 0in 0in 0pt; mso-paginati&#111;n: widow-orphan;"><span style='font-family: "Courier New"; mso-bidi-: MR;'><font size="4"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp; </span>{<o:p></o:p></font></span></p><font size="4" face="Times New Roman"></font><p style="margin: 0in 0in 0pt; mso-paginati&#111;n: widow-orphan;"><span style='font-family: "Courier New"; mso-bidi-: MR;'><font size="4"><span style="mso-tab-count: 2;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: navy;">hInstPrevious</span> = <span style="color: maro&#111;n;">AfxGetResourceHandle</span>();<o:p></o:p></font></span></p><font size="4" face="Times New Roman"></font><p style="margin: 0in 0in 0pt; mso-paginati&#111;n: widow-orphan;"><span style='font-family: "Courier New"; mso-bidi-: MR;'><font size="4"><span style="mso-tab-count: 2;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: maro&#111;n;">AfxSetResourceHandle</span>( <span style="color: navy;">hDCXResource</span>);<o:p></o:p></font></span></p><font size="4" face="Times New Roman"></font><p style="margin: 0in 0in 0pt; mso-paginati&#111;n: widow-orphan;"><span style='font-family: "Courier New"; mso-bidi-: MR;'><font size="4"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp; </span>}<o:p></o:p></font></span></p><font size="4" face="Times New Roman"></font><p style="margin: 0in 0in 0pt; mso-paginati&#111;n: widow-orphan;"><span style='font-family: "Courier New"; mso-bidi-: MR;'><o:p><font size="4">&nbsp;</font></o:p></span></p><font size="4" face="Times New Roman"></font><p style="margin: 0in 0in 0pt; mso-paginati&#111;n: widow-orphan;"><span style='font-family: "Courier New"; mso-bidi-: MR;'><font size="4"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp; </span><o:p></o:p></font></span></p><font size="4" face="Times New Roman"></font><p style="margin: 0in 0in 0pt; mso-paginati&#111;n: widow-orphan;"><span style='font-family: "Courier New"; mso-bidi-: MR;'><font size="4"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp; </span><span style="color: blue;">CXTPPropertyPageListNavigator</span>* <span style="color: navy;">pList</span> = <span style="color: blue;">new</span></font><span style="color: blue;"><font size="4">&nbsp; </font></span></span></p><div><font size="4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<span style="color: blue;"><font face="Courier New">CXTPPropertyPageListNavigator()</font></span>;</font><span style='font-family: "Courier New"; mso-bidi-: MR;'><font size="4"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: navy;"><br>&nbsp;&nbsp;&nbsp; pList</span>-&gt;<span style="color: maro&#111;n;">SetListStyle</span>(<span>xtpListBoxOffice2007</span>);<o:p></o:p></font></span></div><font size="4" face="Times New Roman"></font><p style="margin: 0in 0in 0pt; mso-paginati&#111;n: widow-orphan;"><span style='font-family: "Courier New"; mso-bidi-: MR;'><font size="4"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: maro&#111;n;">SetNavigator</span>(<span style="color: navy;">pList</span>);<o:p></o:p></font></span></p><font size="4" face="Times New Roman"></font><p style="margin: 0in 0in 0pt; mso-paginati&#111;n: widow-orphan;"><span style='font-family: "Courier New"; mso-bidi-: MR;'><font size="4"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: navy;">m_psh</span>.<span style="color: navy;">dwFlags</span> |= <span>PSH_NOAPPLYNOW</span>;<o:p></o:p></font></span></p><font size="4" face="Times New Roman"></font><p style="margin: 0in 0in 0pt; mso-paginati&#111;n: widow-orphan;"><span style='font-family: "Courier New"; mso-bidi-: MR;'><o:p><font size="4">&nbsp;</font></o:p></span></p><font size="4" face="Times New Roman"></font><p style="margin: 0in 0in 0pt; mso-paginati&#111;n: widow-orphan;"><span style='font-family: "Courier New"; mso-bidi-: MR;'><font size="4"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: green;">// Add pages on main dialog.</span><o:p></o:p></font></span></p><font size="4" face="Times New Roman"></font><p style="margin: 0in 0in 0pt; mso-paginati&#111;n: widow-orphan;"><span style='font-family: "Courier New"; mso-bidi-: MR;'><font size="4"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: maro&#111;n;">AddPage</span>(&amp;<span style="color: navy;">m_DesOptObjectivePage</span>);<o:p></o:p></font></span></p><font size="4" face="Times New Roman"></font><p style="margin: 0in 0in 0pt; mso-paginati&#111;n: widow-orphan;"><span style='font-family: "Courier New"; mso-bidi-: MR;'><font size="4"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: maro&#111;n;">AddPage</span>(&amp;<span style="color: navy;">m_DesOptLimitsPage</span>);<o:p></o:p></font></span></p><font size="4" face="Times New Roman"></font><p style="margin: 0in 0in 0pt; mso-paginati&#111;n: widow-orphan;"><span style='font-family: "Courier New"; mso-bidi-: MR;'><font size="4"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: maro&#111;n;">AddPage</span>(&amp;<span style="color: navy;">m_DesOptVariablesPage</span>);<o:p></o:p></font></span></p><font size="4" face="Times New Roman"></font><p style="margin: 0in 0in 0pt; mso-paginati&#111;n: widow-orphan;"><span style='font-family: "Courier New"; mso-bidi-: MR;'><font size="4"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: maro&#111;n;">AddPage</span>(&amp;<span style="color: navy;">m_DesOptCtrlParamPage</span>);<o:p></o:p></font></span></p><font size="4" face="Times New Roman"></font><p style="margin: 0in 0in 0pt; mso-paginati&#111;n: widow-orphan;"><span style='font-family: "Courier New"; mso-bidi-: MR;'><font size="4"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: maro&#111;n;">AddPage</span>(&amp;<span style="color: navy;">m_DesOptConvParamPage</span>);<o:p></o:p></font></span></p><font size="4" face="Times New Roman"></font><p style="margin: 0in 0in 0pt; mso-paginati&#111;n: widow-orphan;"><span style='font-family: "Courier New"; mso-bidi-: MR;'><o:p><font size="4">&nbsp;</font></o:p></span></p><font size="4" face="Times New Roman"></font><p style="margin: 0in 0in 0pt; mso-paginati&#111;n: widow-orphan;"><span style='font-family: "Courier New"; mso-bidi-: MR;'><font size="4"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: green;">// Create the dialog and display it.</span><o:p></o:p></font></span></p><font size="4" face="Times New Roman"></font><p style="margin: 0in 0in 0pt; mso-paginati&#111;n: widow-orphan;"><font size="4"><span style='font-family: "Courier New"; mso-bidi-: MR;'><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: maro&#111;n;">Create</span>();</span><span style='font-family: "Courier New"; mso-bidi-: MR;'><o:p>&nbsp;</o:p></span></font></p><font size="4" face="Times New Roman"></font><p style="margin: 0in 0in 0pt; mso-paginati&#111;n: widow-orphan;"><span style='font-family: "Courier New"; mso-bidi-: MR;'><span style="mso-tab-count: 1;"><font size="4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></span></span></p><p style="margin: 0in 0in 0pt; mso-paginati&#111;n: widow-orphan;"><span style='color: maro&#111;n; font-family: "Courier New"; mso-bidi-: MR;'><font size="4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SetWindowPos</font></span><span style='font-family: "Courier New"; mso-bidi-: MR;'><font size="4">(</font></span></p><div><font size="4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font face="Courier New">&amp;</font><font color="#0000ff" face="Courier New"><font color="#0000ff" face="Courier New">this</font></font><font face="Courier New">-&gt;</font><font color="#000080" face="Courier New"><font color="#000080" face="Courier New">wndTopMost</font></font><font face="Courier New">,0,0,0,0,</font><font color="#a000a0" face="Courier New"><font color="#a000a0" face="Courier New">SWP_NOMOVE</font></font><font face="Courier New">|</font><font color="#a000a0" face="Courier New"><font color="#a000a0" face="Courier New">SWP_NOSIZE</font></font><font face="Courier New">);</font><font face="Courier New"></font></font></div><div><font size="4"><span style='color: maro&#111;n; font-family: "Courier New"; mso-bidi-: MR;'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font></div><div><font size="4"><span style='color: maro&#111;n; font-family: "Courier New"; mso-bidi-: MR;'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SetResizable();</span><span style='font-family: "Courier New"; mso-bidi-: MR;'><o:p></o:p></span><font face="Times New Roman"></font></font></div><p style="margin: 0in 0in 0pt; mso-paginati&#111;n: widow-orphan;"><span style='font-family: "Courier New"; mso-bidi-: MR;'><font size="4">}<o:p></o:p></font></span></p><font size="4" face="Times New Roman"></font><p style="margin: 0in 0in 0pt; mso-paginati&#111;n: widow-orphan;"><font face="Calibri"><font size="4"><span style="font-size: 10pt; mso-bidi-font-family: Calibri;"><span style="mso-spacerun: yes;">&nbsp;</span><span style="mso-spacerun: yes;">&nbsp;</span></span><span style='color: blue; font-family: "Courier New"; mso-bidi-: MR;'><o:p></o:p></span></font></font></p><font size="4" face="Times New Roman"></font><p style="margin: 5pt 0in;"><font size="3"><span style="font-size: 10pt; mso-bidi-font-family: Calibri;"><font face="Calibri"><font face="Arial, Helvetica, sans-serif">Withthis code in place, my dialog always remains on top of all windows present. E.g.If I open IE then also my dialog appears in front. If I invoke a new dialog frommy dialog then the new dialog goes behind my dialog. If I click on new dialog itdoes not come on front. This is annoying. In the </font>‘</font></span><span style='color: maro&#111;n; font-family: "Courier New"; mso-bidi-: MR;'>SetWindowPos’</span><span style="font-size: 10pt; mso-bidi-font-family: Calibri;"><font face="Arial, Helvetica, sans-serif">function Itried setting the firs parameter to </font></span><span style='color: maro&#111;n; font-family: "Courier New"; mso-bidi-: MR;'><span style="mso-spacerun: yes;"><font face="Arial, Helvetica, sans-serif">&nbsp;</font></span>‘</span><span style='color: blue; font-family: "Courier New"; mso-bidi-: MR;'>this</span><span style='font-family: "Courier New"; mso-bidi-: MR;'>-&gt;<span style="color: navy;">wndTop’ </span></span><span style="font-size: 10pt; mso-bidi-font-family: Calibri;"><font face="Arial, Helvetica, sans-serif">but then my dialog does not remain in front; and itminimizes if I click somewhere else in my application.</font></span><span style='color: navy; font-family: "Courier New"; mso-bidi-: MR;'><font face="Arial, Helvetica, sans-serif"> Please refer this image.</font></span></font></p><div><font size="3">&nbsp;&nbsp;&nbsp;&nbsp;<img src="uploads/4824/Opt_Dlg_Prob.jpg" height="650" width="1269" border="0" /></font><font size="4"><span style="font-size: 10pt; mso-bidi-font-family: Calibri;"><font face="Calibri"><font size="3"></font></font></span></font></div><div><font size="4"><span style="font-size: 10pt; mso-bidi-font-family: Calibri;"><font face="Calibri"><font size="3"><br>Ialso tried sending different parameters to</font> ‘</font></span><span style='color: maro&#111;n; font-family: "Courier New"; mso-bidi-: MR;'>Create’ </span></font><span style="font-size: 10pt; mso-bidi-font-family: Calibri;"><font face="Calibri"><font size="3">function but none helped.I found that for modeless dialogs the create method should be called like this –<o:p></o:p></font></font></span></div><font size="4" face="Times New Roman"></font><p style="margin: 5pt 0in;"><font size="4"><span style='color: maro&#111;n; font-family: "Courier New"; mso-bidi-: MR;'>Create</span><span style="font-size: 10pt; mso-bidi-font-family: Calibri;"><font face="Calibri">(</font></span><span style='color: blue; font-family: "Courier New"; mso-bidi-: MR;'>JFEAOptimizationMainDlg::<font color="#000000">IDD, NULL)</font></span><font color="#000000"><span style="font-size: 10pt; mso-bidi-font-family: Calibri;"><font face="Calibri">;</font></span><span style='color: maro&#111;n; font-family: "Courier New"; mso-bidi-: MR;'> <o:p></o:p></span></font></font></p><font size="4" face="Times New Roman"></font><p style="margin: 5pt 0in;"><font size="4"><span style="font-size: 10pt; mso-bidi-font-family: Calibri;"><font size="3" face="Calibri">Howeversince</font></span><span style='color: maro&#111;n; font-family: "Courier New"; mso-bidi-: MR;'> ‘</span><span style='color: blue; font-family: "Courier New"; mso-bidi-: MR;'>CXTPPropertySheet’ </span></font><font size="3"><font face="Arial, Helvetica, sans-serif"><span style="font-size: 10pt; mso-bidi-font-family: Calibri;">does not have a resource associated with (no template id for my dialog)it I can’t use this.</span><span style='color: blue; font-family: "Courier New"; mso-bidi-: MR;'><o:p></o:p></span></font></font></p><font size="4" face="Times New Roman"></font><p style="margin: 5pt 0in;"><span style="font-size: 10pt; mso-bidi-font-family: Calibri;"><font face="Arial, Helvetica, sans-serif"><font size="3">Pleasehelp me to figure out the problem here. How can I achieve my required behavior?Let me know whether this is a limitation of codejock. <o:p></o:p></font></font></span></p><font size="3" face="Arial, Helvetica, sans-serif"></font><p style="margin: 5pt 0in;"><span style="font-size: 10pt; mso-bidi-font-family: Calibri;"><font face="Arial, Helvetica, sans-serif"><font size="3">Ihave a urgency for this fix. <o:p></o:p></font></font></span></p><font size="4" face="Times New Roman"></font>]]>
   </description>
   <pubDate>Fri, 17 May 2013 03:58:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=21648&amp;PID=70947&amp;title=modeless-property-sheet-not-working-as-expected#70947</guid>
  </item> 
 </channel>
</rss>