![]() |
MultiSDI version of RibbonSample (source included) |
Post Reply ![]() |
Author | |
guru_florida ![]() Senior Member ![]() ![]() Joined: 18 September 2009 Status: Offline Points: 105 |
![]() ![]() ![]() ![]() ![]() 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:
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.
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 |
|
![]() |
|
gpsunjp ![]() Newbie ![]() Joined: 07 April 2005 Location: Benin Status: Offline Points: 6 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |