<?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 : CMainFrame not skinned</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Skin Framework : CMainFrame not skinned]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 05 Apr 2026 18:50:04 +0000</pubDate>
  <lastBuildDate>Fri, 22 Jan 2010 07:37:54 +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=16014</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[CMainFrame not skinned : The skin-engine is activated on...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16014&amp;PID=56296&amp;title=cmainframe-not-skinned#56296</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 16014<br /><strong>Posted:</strong> 22 January 2010 at 7:37am<br /><br />The skin-engine is activated on a "per-window" basis. You need to add all child-windows too. I guess you can enumerate the children of the messagebox window, but this means you've essentially implemented the same hooking functionality that Codejock already has (although this would only be for message boxes).<DIV>&nbsp;</DIV><DIV>For your own windows, a hook is not necessary. All you need is to handle CYourWnd::OnCreate(...) and add m_hWnd to the skin-manager.</DIV>]]>
   </description>
   <pubDate>Fri, 22 Jan 2010 07:37:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16014&amp;PID=56296&amp;title=cmainframe-not-skinned#56296</guid>
  </item> 
  <item>
   <title><![CDATA[CMainFrame not skinned :  Afraid the problem is thatI&amp;#039;m...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16014&amp;PID=56293&amp;title=cmainframe-not-skinned#56293</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5514">feffe</a><br /><strong>Subject:</strong> 16014<br /><strong>Posted:</strong> 22 January 2010 at 6:07am<br /><br /><DIV>&nbsp;</DIV><DIV>Afraid the problem is that&nbsp;I'm using also&nbsp;MFC Feature Pack classes.</DIV><DIV>&nbsp;</DIV><DIV>The method you've explained me in&nbsp;the previous post (with CBTProc)</DIV><DIV>could be used also for EVERY kind of window, not only message boxes?</DIV><DIV>&nbsp;</DIV><DIV>In this way, I try to avoid the call to AutoApply but I obtain the same effect.&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>EDIT: your method doesn't skin buttons of messageboxes.</DIV><DIV>Maybe missed to set an option?</DIV><DIV>&nbsp;</DIV><DIV>Thanks a lot!!</DIV>]]>
   </description>
   <pubDate>Fri, 22 Jan 2010 06:07:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16014&amp;PID=56293&amp;title=cmainframe-not-skinned#56293</guid>
  </item> 
  <item>
   <title><![CDATA[CMainFrame not skinned : I don&amp;#039;t see how a context...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16014&amp;PID=56292&amp;title=cmainframe-not-skinned#56292</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 16014<br /><strong>Posted:</strong> 22 January 2010 at 6:02am<br /><br />I don't see how a context menu could slow things down. Please post code that you run when displaying a context menu!<DIV>&nbsp;</DIV><DIV>Is it possible that one of your update-handlers goes nuts? E.g. enabling -&gt; disabling -&gt; enabling -&gt; disabling...?</DIV>]]>
   </description>
   <pubDate>Fri, 22 Jan 2010 06:02:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16014&amp;PID=56292&amp;title=cmainframe-not-skinned#56292</guid>
  </item> 
  <item>
   <title><![CDATA[CMainFrame not skinned :   Thank you very much znakeeye...  Contextmenus...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16014&amp;PID=56289&amp;title=cmainframe-not-skinned#56289</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5514">feffe</a><br /><strong>Subject:</strong> 16014<br /><strong>Posted:</strong> 22 January 2010 at 2:41am<br /><br /><DIV></DIV><DIV>&nbsp;</DIV><DIV>Thank you very much znakeeye...</DIV><DIV>&nbsp;</DIV><DIV>Contextmenus are the part of my application that really slows down...</DIV><DIV>&nbsp;</DIV><DIV>So, perhaps, can I leave the "AutoAplly" call and disactivate&nbsp;any aspect of the skin&nbsp;when I show contextmenus?</DIV><DIV>&nbsp;</DIV><DIV>Thank you</DIV>]]>
   </description>
   <pubDate>Fri, 22 Jan 2010 02:41:19 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16014&amp;PID=56289&amp;title=cmainframe-not-skinned#56289</guid>
  </item> 
  <item>
   <title><![CDATA[CMainFrame not skinned : AfxMessageBox is tricky...  HHOOK...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16014&amp;PID=56269&amp;title=cmainframe-not-skinned#56269</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 16014<br /><strong>Posted:</strong> 21 January 2010 at 10:06am<br /><br /><P>AfxMessageBox is tricky...</P><DIV>&nbsp;</DIV><DIV>HHOOK&nbsp;&nbsp;&nbsp; CYourApp::s_hMsgBoxHook = NULL;</DIV><DIV>LRESULT CALLBACK CYourApp::CBTProc(int nCode, WPARAM wParam, LPARAM lParam)<BR>{<BR>&nbsp;&nbsp;&nbsp; if (nCode &lt; 0)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return CallNextHookEx(s_hMsgBoxHook, nCode, wParam, lParam);</DIV><DIV>&nbsp;&nbsp;&nbsp; if (nCode == HCBT_CREATEWND)<BR>&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; UnhookWindowsHookEx(s_hMsgBoxHook);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; s_hMsgBoxHook = NULL;</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; XTPSkinManager()-&gt;ApplyWindow((HWND)wParam);</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return 0;<BR>&nbsp;&nbsp;&nbsp; }</DIV><DIV>&nbsp;&nbsp;&nbsp; // Call the next hook, if there is one.<BR>&nbsp;&nbsp;&nbsp; return CallNextHookEx(s_hMsgBoxHook, nCode, wParam, lParam);<BR>}</DIV><DIV>int CYourApp::DoMessageBox(LPCTSTR lpszPrompt, UINT nType, UINT nIDPrompt)<BR>{<BR>&nbsp;&nbsp;&nbsp; // Install a window hook, so we can intercept the message-box creation, and customize it.<BR>&nbsp;&nbsp;&nbsp; s_hMsgBoxHook = SetWindowsHookEx(WH_CBT, CBTProc, NULL, GetCurrentThreadId());<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; // Display a standard message box.<BR>&nbsp;&nbsp;&nbsp; int retVal = CWinApp::DoMessageBox(lpszPrompt, nType, nIDPrompt);</DIV><DIV>&nbsp;&nbsp;&nbsp; // Remove the window hook!<BR>&nbsp;&nbsp;&nbsp; if (s_hMsgBoxHook)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; UnhookWindowsHookEx(s_hMsgBoxHook);<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; return retVal;<BR>}<BR></DIV><DIV>&nbsp;</DIV><DIV>Anyway, are you absolutely sure that AutoApplyNewWindows is the culprit? If that is the case, I would really like to avoid it myself. Haven't seen problems with it so far though.</DIV>]]>
   </description>
   <pubDate>Thu, 21 Jan 2010 10:06:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16014&amp;PID=56269&amp;title=cmainframe-not-skinned#56269</guid>
  </item> 
  <item>
   <title><![CDATA[CMainFrame not skinned :   I&amp;#039;ve tried to study the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16014&amp;PID=56226&amp;title=cmainframe-not-skinned#56226</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5514">feffe</a><br /><strong>Subject:</strong> 16014<br /><strong>Posted:</strong> 20 January 2010 at 2:46am<br /><br /><DIV></DIV><DIV>&nbsp;</DIV><DIV>I've tried to study the problem...</DIV><DIV>And I've seen that the call AutoApplyNewWindow(TRUE) really slows down my program.</DIV><DIV>&nbsp;</DIV><DIV>So...</DIV><DIV>Is there a method for having skinned dialo without calling it?</DIV><DIV>My problem is especially when I need calling "afxmessagebox..."...</DIV><DIV>&nbsp;</DIV><DIV>Any suggestion?</DIV><DIV>&nbsp;</DIV><DIV>EDIT: I think I've the same problem already explained in the thread</DIV><DIV><SPAN ="lgText"><a href="http://forum.codejock.com/forum_posts.asp?TID=15346" target="_blank">http://forum.codejock.com/forum_posts.asp?TID=15346</A></SPAN></DIV><DIV><SPAN ="lgText"></SPAN>&nbsp;</DIV><DIV><SPAN ="lgText"></SPAN></DIV><DIV><SPAN ="lgText"></SPAN>&nbsp;</DIV><DIV><SPAN ="lgText"></SPAN>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 20 Jan 2010 02:46:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16014&amp;PID=56226&amp;title=cmainframe-not-skinned#56226</guid>
  </item> 
  <item>
   <title><![CDATA[CMainFrame not skinned : My idea: that&amp;#039;s impossible  Are...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16014&amp;PID=56217&amp;title=cmainframe-not-skinned#56217</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 16014<br /><strong>Posted:</strong> 19 January 2010 at 7:30am<br /><br />My idea: that's impossible<DIV>&nbsp;</DIV><DIV>Are you sure CMainFrame is the window being skinned?</DIV><DIV>Perhaps you have some MDI children that occupy the view and makes it look like the main frame is skinned?</DIV><DIV>&nbsp;</DIV><DIV>Try stepping into CXTPSkinManager::Remove and see what goes wrong...</DIV>]]>
   </description>
   <pubDate>Tue, 19 Jan 2010 07:30:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16014&amp;PID=56217&amp;title=cmainframe-not-skinned#56217</guid>
  </item> 
  <item>
   <title><![CDATA[CMainFrame not skinned :   ...Any idea?  My app is...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16014&amp;PID=56206&amp;title=cmainframe-not-skinned#56206</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5514">feffe</a><br /><strong>Subject:</strong> 16014<br /><strong>Posted:</strong> 18 January 2010 at 12:28pm<br /><br /><DIV></DIV><DIV>&nbsp;</DIV><DIV>...Any idea?</DIV><DIV>&nbsp;</DIV><DIV>My app is too slow if I have the mainframe skinned...</DIV>]]>
   </description>
   <pubDate>Mon, 18 Jan 2010 12:28:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16014&amp;PID=56206&amp;title=cmainframe-not-skinned#56206</guid>
  </item> 
  <item>
   <title><![CDATA[CMainFrame not skinned : Hi,  I&amp;#039;d like that every...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16014&amp;PID=56159&amp;title=cmainframe-not-skinned#56159</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5514">feffe</a><br /><strong>Subject:</strong> 16014<br /><strong>Posted:</strong> 15 January 2010 at 4:37am<br /><br /><DIV></DIV>Hi,<DIV>&nbsp;</DIV><DIV>I'd like that every window of my application to be skinned, but not my CMainFrame.</DIV><DIV>&nbsp;</DIV><DIV>I call XTPSkinManager()-&gt;AutoApplyNewWindows(TRUE) and XTPSkinManager()-&gt;LoadSkin(...)</DIV><DIV>in CMainFrame constructor.</DIV><DIV>&nbsp;</DIV><DIV>Then, in CMainFrame::OnCreate, I call XTPSkinManager()-&gt;Remove(m_hWnd) but it doesn't seem to work.</DIV><DIV>&nbsp;</DIV><DIV>Where am I wrong?</DIV><DIV>&nbsp;</DIV><DIV>Thanks a lot</DIV>]]>
   </description>
   <pubDate>Fri, 15 Jan 2010 04:37:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16014&amp;PID=56159&amp;title=cmainframe-not-skinned#56159</guid>
  </item> 
 </channel>
</rss>