Print Page | Close Window

MultiSDI version of RibbonSample (source included)

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=15281
Printed Date: 21 June 2025 at 12:19am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: MultiSDI version of RibbonSample (source included)
Posted By: guru_florida
Subject: MultiSDI version of RibbonSample (source included)
Date Posted: 01 October 2009 at 12:22pm
I have converted the SDI version of the RibbonBar sample to a Multithreaded Multi-SDI version. This uses multithreading to have multiple SDI windows within one process.
 
This is based on a codeguru article on MSDI:
http://www.codeguru.com/cpp/w-d/doc_view/viewmanagement/article.php/c6129/ - http://www.codeguru.com/cpp/w-d/doc_view/viewmanagement/article.php/c6129/
 
The application works great for the most part. There is some stability problem related to GDI objects --- it appears to be related to GDI to CGDIObject maps or other ptr-ptr maps. With some more help perhaps we can nail the few remaining bugs together.
 
Dowload the source code from the following link.
http://www.colinmackenzie.net/index.php?option=com_docman&task=cat_view&gid=18&Itemid=18 - http://www.colinmackenzie.net/index.php?option=com_docman&task=cat_view&gid=18&Itemid=18
 
Place the source code in the following folder and build (your path may differ depending on XTP version and install opts):
C:\program files\Codejock Software\MFC\Xtreme ToolkitPro v13.0.0\Samples\Ribbon
 
 


-------------
----
http://www.colinmackenzie.net/
Electronics, Programming, Robotics, CNC



Replies:
Posted By: gpsunjp
Date Posted: 21 February 2010 at 7:46pm
Hi,
When I added the following code to skin this MultiSDI Application, the second thread application will crash.

I will very appreciate it if you could tell me how to resolve this problem.


============================================
int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
....
#ifdef _XTP_INCLUDE_SKINFRAMEWORK
     XTPSkinManager()->LoadSkin(NULL, _T("NORMALBLACK.INI"));
#endif
}
================================================


Thanks,
G.P. Sun



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net