Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - MultiSDI version of RibbonSample (source included)
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

MultiSDI version of RibbonSample (source included)

 Post Reply Post Reply
Author
Message
guru_florida View Drop Down
Senior Member
Senior Member
Avatar

Joined: 18 September 2009
Status: Offline
Points: 105
Post Options Post Options   Thanks (0) Thanks(0)   Quote guru_florida Quote  Post ReplyReply Direct Link To This Post Topic: MultiSDI version of RibbonSample (source included)
    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
Back to Top
gpsunjp View Drop Down
Newbie
Newbie


Joined: 07 April 2005
Location: Benin
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote gpsunjp Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.031 seconds.