Click here to Skip to main content
Click here to Skip to main content

The Ultimate Toolbox - Updates and User Contributions

By , 12 Feb 2013
 

Overview

Welcome to the Ultimate Toolbox Updates and Contributions page.

This page is intended to help collate and centralize user contributions as well as beta updates to the core source code for each of the Ultimate Toolbox, Ultimate Grid, and Ultimate TCP/IP libraries.

We'd like this page to become a central point for submissions of various enhancements and fixes to the Ultimate Toolbox. Those of you who have code that will help others can forward submissions to any of the co-authors of this page.

Those wishing to take a more active role can become co-authors, and help to collate and maintain the code base and user submissions.

What can I contribute?

Pretty much anything that enhances or fixes code in the Ultimate Toolbox. A simple zip of a class file can be posted here for review before inclusion into an update. All we ask is that changes are reasonably commented and documented.

Links to user submitted articles relating to the Ultimate Toolbox can be collated here as well.

We're keeping this fairly open to start - comments and suggestions, as always, most welcome.

Updates and Contributions

Ultimate Toolbox Update 01
Download: UltimateToolbox93_Src_Update01.zip (183k)
Submitted by: Various
Compiled by: Tim Deveaux
Date: April, 2008
Comments: This is the first update of the Ultimate Toolbox source files based on user submitted corrections and enhancements. Only the affected source and header files are included, along with an updated ChangeHistory.htm. NOTE: VS2008 corrections have not been addressed in this update.
Status: Beta - these files are not yet incorporated into the main Ultimate Toolbox source code download.
Ultimate Toolbox Update 02
Download: UltimateToolbox93_Src_Update02.zip (193k)
Submitted by: Various
Compiled by: Tim Deveaux
Date: July, 2008
Comments: This update incorporates VS2008 compilation changes based on user submitted corrections and enhancements. Only the affected source and header files are included, along with an updated ChangeHistory.htm. NOTES: Remaining Vista issues are not addressed in this update. Docking windows functionality may be affected by the move to MFC 8.0 compilation.
Requirements: This update assumes Update 01 has been applied.
Status: Beta - these files are not yet incorporated into the main Ultimate Toolbox source code download.
Ultimate Toolbox Update 03
Download: UltimateToolbox93_Src_Update03.zip (719k)
Submitted by:  
Compiled by: Tim Deveaux
Date: October, 2008
Comments: This update incorporates 64-bit compilation changes to the core source code based on suggested corrections and enhancements. 

The goal of this update is to allow compilation for 64-bit while retaining 32-bit compatibility with earlier (VC6, VS2003, VS2005) compilers, so that we can continue to maintain one codebase.

Only the affected source and header files are included, along with an updated ChangeHistory.htm.
 

Requirements: This update assumes Update 01 and Update 02 have been applied.
Status: Alpha - The changes in this download have not been tested on a 64-bit platform - they allow compilation in 64-bit. Compiled using the cross compiler in VS2008. They are offered here for testing. Updates to the sample projects are not included.

These files are not yet incorporated into the main Ultimate Toolbox source code download.
Ultimate Toolbox Update 04
Download: UltimateToolbox93_Src_Update04.zip - 70.34 KB
Submitted by: Anthony Wieser
Compiled by: Anthony Wieser
Date: May, 2009
Comments: This release fixes problems in UNICODE builds and fixes some strange docking behavior.

Only the affected source and header files are included, along with an updated ChangeHistory.htm.

Requirements: Assumes Updates 01, 02, and 03 have been applied.
Status: Beta - these files are not yet incorporated into the main Ultimate Toolbox source code download.  
Ultimate Toolbox Update 05 
Download: UltimateToolbox93_Src_Update05.zip - 107 KB 
Submitted by: Various 
Compiled by:  Tim Deveaux 
Date: October, 2010 
Comments: Miscellaneous fixes including changes for VS2010 compilation.

Only the affected source and header files are included, along with an updated ChangeHistory.htm.

Requirements: Assumes Updates 01, 02, 03, and 04 have been applied.
Status: Beta - these files are not yet incorporated into the main Ultimate Toolbox source code download.   

Ultimate Grid 7.3 beta
Download: UltimateGrid73_src.zip (437 KB)
Submitted by: Santiago Palacios
Compiled by: Santiago Palacios
Date: February, 2013
Comments: This new version rolls the four existing updates to UG into a new official release. Additionally, it adds VC2008, VC2010 and VC2012 projects and solutions to make it easier for developers working on those versions.
Requirements: None. This is a self-contained full release.
Status: Beta - will wait for feedback prior to promoting this as the next official release.
Ultimate Grid - OutlookStyle Demo (corrections)
Download: OutlookDemoUpdate.zip (65k)
Reported by: ehaerim
Compiled by: Tim Deveaux
Date: August, 2008
Comments: This is a update with corrections for the OutlookStyle demo contained in the samples download for the Ultimate Grid. The project uses files from the Ultimate Toolbox source, and shipped with incorrect paths to these files.
  • The projects now assume the Ultimate Toolbox directory is at the same level as the Ultimate Grid, and uses the correct relative paths.
  • The projects were previously referencing files not required for compilation, two of which are not included in the Ultimate Toolbox source download.
  • The CCellTypeOutlook class is renamed to COutlookGrid.
  • The CelltypeOutlook.cpp and .h files are replaced with OutlookGrid.cpp and .h.

The demo shows the grid set up for Outlook style message selection, with read/unread and flag bitmaps etc, and highlights the use of the CUGExpandType, CUGCTOutlookHeader, CUGCTMail, and CUGCTMailSort celltypes.

Requirements: Assumes the Ultimate Toolbox source and include files are installed along with Ultimate Grid.
Status:

Corrections to the existing demo.

Ultimate Grid Update 01
Download: UltimateGrid72_Src_Update01.zip (126k)
Submitted by: Various
Compiled by: Tim Deveaux
Date: September, 2008
Comments: This is the first update of the Ultimate Grid source files based on user submitted corrections and enhancements. Only the affected source and header files are included, along with an updated ChangeHistory.htm. 
Status: Beta - these files are not yet incorporated into the main Ultimate Grid source code download.
Ultimate Grid Update 02
Download: UltimateGrid72_Src_Update02.zip (163k)
Submitted by:  
Compiled by: Tim Deveaux
Date: November, 2008
Comments: This update incorporates 64-bit compilation changes to the Ultimate Grid core source code, celltypes, edit controls, and datasource classes based on suggested corrections. 

The goal of this update is to allow compilation for 64-bit while retaining 32-bit compatibility with earlier (VC6, VS2003, VS2005) compilers, so that we can continue to maintain one codebase.

Only the affected source and header files are included, along with an updated ChangeHistory.htm.

Requirements: Assumes Update 01 has been applied.
Status: Alpha - The changes in this download have not been tested on a 64-bit platform - they allow compilation in 64-bit. Compiled as x64 using the cross compiler in VS2008. They are offered here for testing. x64 configurations for the library builds and sample projects are not included.

These files are not yet incorporated into the main Ultimate Grid source code download.  
Ultimate Grid Update 03
Download: UltimateGrid72_Src_Update03.zip (69k)
Submitted by: Various
Compiled by: Tim Deveaux
Date: January, 2009
Comments: Changes and fixes as suggested/submitted by The Code Project community.

Only the affected source and header files are included, along with an updated ChangeHistory.htm.

Requirements: Assumes Updates 01 and 02 have been applied.
Status: Beta - these files are not yet incorporated into the main Ultimate Grid source code download.  
 
Ultimate Grid Update 04 
Download: UltimateGrid72_Src_Update04.zip (45k)
Submitted by: Tim Deveaux 
Compiled by: Tim Deveaux
Date: September, 2010 
Comments: This update implements WM_PRINT processing in the main grid windows.

Only the affected source and header files are included, along with an updated ChangeHistory.htm.

Requirements: Assumes Updates 01, 02 and 03 have been applied.
Status:

Beta - these files are not yet incorporated into the main Ultimate Grid source code download.   

Ultimate TCP/IP Update 01
Download: UltimateTCP-IP42_Src_Update01.zip (55k)
Submitted by:  
Compiled by: Tim Deveaux
Date: November, 2008
Comments: This update incorporates incorporates some minor changes based on testing in VS2008 and 64-bit. 

This update incorporates the initial changes needed for compilation in VS2008 and 64-bit while retaining 32-bit compatibility with earlier (VC6, VS2003, VS2005) compilers.

Only the affected source and header files are included, along with an updated ChangeHistory.htm. 

Status: Alpha - The changes in this download have not been tested on a 64-bit platform - they allow compilation in 64-bit. Compiled using the cross compiler in VS2008. They are offered here for testing. Updates to the sample projects are not included.

These files are not yet incorporated into the main Ultimate TCP-IP source code download.
Ultimate TCP/IP Update 02
Download: UltimateTCP-IP42_Src_Update02.zip (143k)
Submitted by: Various
Compiled by: Tim Deveaux
Date: December, 2008
Comments: This update incorporates incorporates changes and fixes as submitted/suggested by the Code Project community. 

Only the affected source and header files are included, with the exception of revisions to the secure mail client example (MailClientS). The ChangeHistory is updated.

Issues addressed include support for UTF8 based mail messages for Unicode enabled apps, and improvements for SMTPS, IMAPS, and POP3S client connections. 

Status: Beta - these files are not yet incorporated into the main Ultimate TCP-IP source code or samples downloads.
Ultimate TCP/IP Update 03
Download: UltimateTCP-IP42_Src_Update03.zip (47k)
Submitted by: Various
Compiled by: Tim Deveaux
Date: January, 2009
Comments: Two fixes suggested by mpuerto and Rob Caldecott. 

Only the affected source and header files are included. The ChangeHistory is updated.

Issues addressed include support for MIME boundary strings without quotes, and better handling of mail addresses added to the message class via multiple calls to AddHeaderField. 

Requirements: This update assumes Update 01 and Update 02 have been applied.
Status: Beta - these files are not yet incorporated into the main Ultimate TCP-IP source code download.

History

Initial CodeProject release April 2008.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

The Ultimate Toolbox
Web Developer
Canada Canada
Member
Organisation
262 members

In January 2005, David Cunningham and Chris Maunder created TheUltimateToolbox.com, a new group dedicated to the continued development, support and growth of Dundas Software’s award winning line of MFC, C++ and ActiveX control products.
 
Ultimate Grid for MFC, Ultimate Toolbox for MFC, and Ultimate TCP/IP have been stalwarts of C++/MFC development for a decade. Thousands of developers have used these products to speed their time to market, improve the quality of their finished products, and enhance the reliability and flexibility of their software.

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
QuestionUltimate Grid / Windows Mobile [Urgent]memberNonobis20 Mar '13 - 23:49 
Hi,
 
Does this control is compatible with windows mobile ((MFC apps in VS208) ?
 
Thx
GeneralMy vote of 5membermagicpapacy17 Feb '13 - 22:08 
Thanks for update this!
QuestionCOXStaticTextmemberflobadob197522 Oct '12 - 0:21 
I found that when COXStaticText was scrolling and SetBgColour was called, the scrolling text position was reset to the default which made it look jumpy. I have alternating colours on my CStaticText background so it looked a bit odd. I found that adding the following check to see if scrolling had started fixed my issue...
 
in OnPrepareBitmap...
 
if(!IsScrollingStarted())
	GetInitialDisplacement(textRect);

QuestionVS2012memberspoky15 Oct '12 - 3:12 
Hello, I was just wondering if anyone has been able to get the UTB working with VS2012 yet? I was able to compile the UG without problem but I am having some issues with the UTB and wanted to check if anyone else has fixed the problems yet before I delve in to deep.
 
Shawn
AnswerRe: VS2012memberspoky15 Oct '12 - 4:03 
Looks like VS2012 won't work with XP so I had to change the WINVER in the stdafx from 0x0501 (XP) to 0x0600 (Vista) after that UTB built with out major problems. I would still like to target XP with my application but I may need to stay away from VS2012 until they fix that issue.
 
Shawn
QuestionUG Grid Crashing with new look of InitCommonControlsExmemberrk.ramudu6 Mar '12 - 4:18 
Hi ,
 
I have used UGGrid in my application and built in both 64 as well as 32 bit . It was working fine . Now we started using new look of common controls #define _IMPROVE_LOOKANDFEEL InitCommonControlsEx then it started crashing and it seems to be a some paint issue. Got few updates from Code project could solve the paint in 64 bit but 32 bit it is still crashing . In 64 bit when we sort the list it crashes i.e CUGTopHdg::OnLButtonDown which intern points to OnDrawFocusRect of the client .
 
Is there any update for these new look of common controls and 64 bit crash .
QuestionWhen is this going into the main packagemembercccfff77727 Apr '11 - 4:44 
Hello!
I wonder when we get full packages with the patches included?
GeneralDeriving from COXEditmembermiqel9 Mar '11 - 3:49 
I derived my own class from COXEdit, everything works fine till i switch compilation to UNICODE.
Now I'm getting strange link errors:
 
ultimateUnicode error LNK2001: unresolved external symbol "public: virtual int __thiscall COXEdit::SetInputData(wchar_t const *,int)" (?SetInputData@COXEdit@@UAEHPB_WH@Z)
ultimateUnicode error LNK2001: unresolved external symbol "protected: virtual int __thiscall COXEdit::InsertAt(int,wchar_t)" (?InsertAt@COXEdit@@MAEHH_W@Z)
ultimateUnicode error LNK2001: unresolved external symbol "protected: virtual int __thiscall COXEdit::SetAt(int,wchar_t)" (?SetAt@COXEdit@@MAEHH_W@Z)
ultimateUnicode error LNK2001: unresolved external symbol "public: virtual class ATL::CStringT<wchar_t,class StrTraitMFC_DLL<wchar_t,class ATL::ChTraitsCRT<wchar_t> > > __thiscall COXEdit::GetInputData(void)const " (?GetInputData@COXEdit@@UBE?AV?$CStringT@_WV?$StrTraitMFC_DLL@_WV?$ChTraitsCRT@_W@ATL@@@@@ATL@@XZ)
 

does enyone konw why it happens?
 
myclass.h:
 
class CMEdit : public COXEdit
{
	DECLARE_DYNCREATE(CMEdit)
 
public:
	CMEdit();
	virtual ~CMEdit();
 
	inline COLORREF GetActiveFont(){return m_clrActiveFont; }
	inline COLORREF GetActiveBack(){return m_clrActiveBack; }
	inline void SetActiveFont(COLORREF clrNew){m_clrActiveFont = clrNew; }
	inline void SetActiveBack(COLORREF clrNew) {m_clrActiveBack = clrNew; }
	
	inline COLORREF GetNormalFont(){return m_clrNormalFont; }
	inline COLORREF GetNormalBack(){return m_clrNormalBack; }
	inline void SetNormalFont(COLORREF clrNew){m_clrNormalFont = clrNew; }
	inline void SetNormalBack(COLORREF clrNew) {m_clrNormalBack = clrNew; }
 
	inline COLORREF GetDisabledFont(){return m_clrDisabledFont; }
	inline COLORREF GetDisabledBack(){return m_clrDisabledBack; }
	inline void SetDisabledFont(COLORREF clrNew){m_clrDisabledFont = clrNew; }
	inline void SetDisabledBack(COLORREF clrNew) {m_clrDisabledBack = clrNew; }
 
	inline BOOL GetActiveMarking() {return m_bEnableActiveMarking;}
	inline void SetActiveMarking(BOOL bVal) {m_bEnableActiveMarking = bVal; }
	inline BOOL GetAlwaysReadOnly() {return m_bAlwaysReadOnly;}
	inline void SetAlwaysReadOnly(BOOL bVal) {m_bAlwaysReadOnly = bVal; }
	inline BOOL GetOffColors() {return m_bOffColors;}
	inline void SetOffColors(BOOL bVal) {m_bOffColors = bVal; }
 

protected:
	
	COLORREF m_clrNormalFont;	//kolor fontu 
	COLORREF m_clrNormalBack;	//kolor 

	COLORREF m_clrDisabledFont;	//kolor fontu gdy pole jest wyłączone
	COLORREF m_clrDisabledBack;	//kolor tla gdy pole jest wyłączone

	COLORREF m_clrActiveFont;
	COLORREF m_clrActiveBack;
	
	BOOL m_bEnableActiveMarking;
	BOOL m_bAlwaysReadOnly;
	BOOL m_bOffColors;			//flaga on/Off kolorowanie
public:
	afx_msg HBRUSH CtlColor(CDC* /*pDC*/, UINT /*nCtlColor*/);
	afx_msg void OnKillFocus(CWnd* pNewWnd);
	
	DECLARE_MESSAGE_MAP()
//	afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
	// dopuszcza tylko liczby
	//bool m_bNumber;

};
 
myclass.cpp:
// CMEdit

IMPLEMENT_DYNCREATE(CMEdit, COXEdit)
 
CMEdit::CMEdit():  
	m_clrNormalBack (c_clrEnabledBack), m_clrNormalFont(c_clrEnabledFont),
	m_clrActiveBack(c_clrActiveBack), m_clrActiveFont(c_clrActiveFont), 
	m_clrDisabledBack(c_clrDisabledBack), m_clrDisabledFont(c_clrDisabledFont),
	//m_clrReadOnlyBack(c_clrReadOnlyBack), m_clrReadOnlyFont(c_clrReadOnlyFont),
	m_bAlwaysReadOnly(FALSE), 	m_bEnableActiveMarking(TRUE),	m_bOffColors(FALSE)	
	
	{
	
	m_clrText = m_clrNormalFont;
	m_clrBack = m_clrNormalBack;
 
	EnableActiveAccessibility();
}
 
CMEdit::~CMEdit()
{
}
 

BEGIN_MESSAGE_MAP(CMEdit, COXEdit)
	ON_WM_CTLCOLOR_REFLECT()
	ON_WM_KILLFOCUS()
//	ON_WM_KEYDOWN()
END_MESSAGE_MAP()
 

 
// CMEdit message handlers

 
HBRUSH CMEdit::CtlColor(CDC* pDC, UINT nCtlColor)
{
	// TODO:  Change any attributes of the DC here
	UNREFERENCED_PARAMETER(nCtlColor);
 
//	COLORREF clrText = GetTextColor();
//	COLORREF clrBk = GetBkColor();
	COLORREF newTextColor;
	COLORREF newBkColor ;
 
	if(m_bOffColors)	//gdy sterowanie kolorami wyłączone
	{								//COLOR_GRAYTEXT - może to byłoby lepsze
		newTextColor = !IsWindowEnabled() ?  RGB (80, 80, 80) : GetSysColor(COLOR_WINDOWTEXT);// m_clrNormalFont; 
		newBkColor =  GetSysColor(COLOR_WINDOW);//m_clrNormalBack ; 		
		//newBkColor = !IsWindowEnabled() ?  GetSysColor(COLOR_BTNFACE) : GetSysColor(COLOR_WINDOW);//m_clrNormalBack ; 		
	}
	else
	{
		if (!IsWindowEnabled())
		{
			newTextColor = m_clrDisabledFont;
			newBkColor	 = m_clrDisabledBack;
		}
		else if(GetStyle()&ES_READONLY)
		{
			newTextColor  = m_clrReadOnlyFont;
			newBkColor	  = m_clrReadOnlyBack;
		}
		else if(this == GetFocus() && m_bEnableActiveMarking)
		{
			newTextColor = m_clrActiveFont;
			newBkColor	 = m_clrActiveBack;
		}
		else
		{
			newTextColor = m_clrNormalFont ;
			newBkColor	 = m_clrNormalBack ;
		}
 
	}	
 
	pDC->SetTextColor(newTextColor);
	pDC->SetBkColor(newBkColor);
	
	if((HFONT)m_font!=NULL)
		pDC->SelectObject(&m_font);
	
	static CBrush brush;
	if((HBRUSH)brush!=NULL)
		brush.DeleteObject();
	brush.CreateSolidBrush(newBkColor);
	
	// TODO:  Return a non-NULL brush if the parent's handler should not be called	
	return (HBRUSH)brush;
}
 

 
void CMEdit::OnKillFocus(CWnd* pNewWnd)
{
	COXEdit::OnKillFocus(pNewWnd);
	// TODO: Add your message handler code here
	RedrawWindow();	
}

GeneralRe: Deriving from COXEditmembermiqel7 Apr '12 - 12:59 
I have got some time to check some settings. Both projects (ut library and my project) have to had the same setting for /Zc:wchar_t (wchar_t Is Native Type)
QuestionTool bar position changes after lock and unlocking the systemmemberpavan.vvb5 Jul '10 - 20:45 
I am using the ultimate toolbox for my application. I have two toolbars side by side in my application.
 
keeping my application on top and if the system is locked and unlocked, the toolbars are at the same positions side by side. But if the application is minimized, and system is locked and unlocked, then the two tool bars which are side by side, become one below the other. how to fix this?
 
Thanks
pavan
AnswerRe: Tool bar position changes after lock and unlocking the systemmembersrussel19 Oct '10 - 21:49 
Never heard of this before, sorry
AnswerRe: Tool bar position changes after lock and unlocking the systemmembersrussel19 Oct '10 - 21:49 
Never heard of this before, sorry dude
GeneralUT Unicode compile errorsmemberdraeag17 Jun '10 - 20:37 
UltimateToolbox\UltimateToolbox93_samples\Ultimate Toolbox\source\OXWABook.cpp(1361) : error C2440: '=' : cannot convert from 'char [260]' to 'unsigned short *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
UltimateToolbox\UltimateToolbox93_samples\Ultimate Toolbox\source\OXWABook.cpp(1669) : error C2664: 'LDAPUrl' : cannot convert parameter 4 from 'char [260]' to 'unsigned short *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
OXWatchedDir.cpp
 
#if (defined _UNICODE) && ((defined WABIMPORTPARAM) || (_MFC_VER >= 0x0600))
char szBuffer[_MAX_PATH];
#endif // _UNICODE
 
// v9.3 - update 04 fixes for unicode builds in vc6 CHANGED _MFC_VER - AAW 2009-03-29
#if (defined _UNICODE) && ((defined WABIMPORTPARAM) || (_MFC_VER >= 0x0600))
::WideCharToMultiByte(CP_ACP, WC_SEPCHARS, m_sBookPath, m_sBookPath.GetLength(),
szBuffer, _MAX_PATH, NULL, NULL);
stWabParam.szFileName = szBuffer;
#else
stWabParam.szFileName = (TCHAR*)(LPCTSTR) m_sBookPath;
#endif
}
 

 
// v9.3 - update 04 fixes for unicode builds in vc6 CHANGED _MFC_VER - AAW 2009-03-29
#if (defined _UNICODE) && ((defined WABIMPORTPARAM) || (_MFC_VER >= 0x0600))
char szBuffer[_MAX_PATH];
::WideCharToMultiByte(CP_ACP, WC_SEPCHARS, lpszLDAPURL, -1,
szBuffer, _MAX_PATH, NULL, NULL);
hRslt = m_pIWABObject->LDAPUrl(m_pIAddrBook, m_hWnd,ulFlags,
szBuffer, &pUser);
#else
hRslt = m_pIWABObject->LDAPUrl(m_pIAddrBook, m_hWnd,ulFlags,
lpszLDAPURL, &pUser);
#endif
GeneralRe: UT Unicode compile errorsmemberdraeag17 Jun '10 - 21:30 
VC6 error
VC++2008 noerror
GeneralSMTP: no response from the server!memberahamade10 Apr '10 - 7:53 
Dear All,
 
I'm using the SMTP function to send Email (the Mail example). Unfortunately every time I get error "There was no response from the server". With the same server in Outlook I can send Emails. Can anybody help here?
 
Thanks!
 
Best Regards,
Ahamade.
GeneralOXSkins bold fontsmemberRasmus Debitsch5 Jan '10 - 5:06 
There seems to be a minor issue in the methods
   COXMiniFrameSkinXP::COXMiniFrameSkinXP(COXSkinXP* pSkinXP) and
   COXDockbarSkinXP::COXDockbarSkinXP(COXSkinXP* pSkinXP)
of OXSkins.cpp. The call
    m_fontCaption.CreatePointFont(85, _T("Tahoma BOLD"));
may fail on non-English systems. The font names are different. E.g. "Tahoma fett" on my machine. The effect is that the text is not rendered properly. Especially if the orientation of the text is vertical.
 
Replacing the line with
    LOGFONT lf;
    memset(&lf, 0, sizeof(LOGFONT));
    lf.lfHeight = 85;
    lf.lfWeight = FW_BOLD;
    strcpy_s(lf.lfFaceName, LF_FACESIZE, "Tahoma");  
 
    VERIFY(m_fontCaption.CreatePointFontIndirect(&lf, NULL));   
fixes the problem.
 

Rasmus
GeneralUT2008 - project settings not accessible under x64memberMember 22387729 Oct '09 - 4:51 
I've just installed the current releases of UT along with the 4 updates. I'm running Vista Home Premium 64 bit with VS2008. I've loaded UT2008 into VS2008 (VS2008 updates the project). When the platform is set to x64 then the project settings (i.e. click on [Project][Properties]) cannot be viewed/edited. This generates the error "The operation could not be completed. Unspecified error". However, the project settings can be viewed/edited when the platform is changed to Win32. Aside from rebuilding the entire project from scratch, does any one have any ideas or suggestions of how to correct this problem?
 
thanks,
 
Ian
GeneralRe: UT2008 - project settings not accessible under x64editorTim Deveaux29 Oct '09 - 7:22 
Yes I think something got messed up here - the UT2008.sln might still be referencing the UT.proj file.
 
Try opening the UT2008.sln file in notepad and changing the reference in the "Project" line from UT.vcproj to UT2008.vcproj.
 
Tim
GeneralRe: UT2008 - project settings not accessible under x64memberMember 22387729 Oct '09 - 7:36 
Hi Tim,
 
That did the trick. Thanks,
 
Ian
GeneralRe: UT2008 - project settings not accessible under x64editorTim Deveaux29 Oct '09 - 7:40 
Cool - filed in the update pile - thanks
 
Tim
GeneralWatch out for the ATL security update just issued by microsoftmemberWieser Software Ltd31 Jul '09 - 4:35 
If you (like I did) forget to recompile your library which is dynamically linked to MFC, you'll find you have dependencies on both the old and new assemblies, and your program will no longer load, giving an error about the "Application configuration is incorrect".
 
Anthony Wieser
Wieser Software Ltd
 
Anthony Wieser
Wieser Software Ltd

GeneralCustom Buttons on COXCoolToolBarmembercarks29 Jun '09 - 4:31 
HI All,
 
Hope Im posting this in the right place, if not, just flame me Smile | :)
 
Im using COXCoolToolBar in my COXSkinnedApp (office 2003 skin) with custom buttons (or, more specifically inserting combo boxes in various places of the COXCoolToolBars).
 
Everything works fine, it really looks quite flash!
 
Now I'm just grappling w/ one problem. Im not very good at inventing really useful icons to reflect the behavior of a button, so I rely pretty much on the text labels on the standard buttons to describe the command. (Eg if Ive got a button for the "Draw" command, Id rather have the word "Draw" on the button instead of a silly icon, that I made up myself, not being an artist it doesnt well reflect the button's behavior).
 
Now for STANDARD COXCoolToolBar buttons this is easy; its formally supported by the framework.
 
But how about the Combo Boxes that Ive inserted in the COXCoolToolBar as "custom buttons"...
 
Ive been fooling w/ 2 options here:
 
1) I can "indent" the "start point" of the buttons on the COXCoolToolBar, and, overriding "WM_PAINT" I can write by own text label in the blank space. This really looks quite nice but also is clearly only
useful to a) put a descriptive name on the bar, or b) on the first button in the bar.
 
2) Another, possibly better alternative is to use tool tips, but I have not been able to make them work for custom buttons.
 
Anyway my question(s) is(are):
 
* Can I make (easily) tooltips work for custom buttons on a COXCoolToolBar. It *appears* to me that they're not directly supported, but Im no guru!!!
 
* Any other clever ideas about how I can transmit to the user the function/meaning/use (by textual means, rather than an icon) of a custom combo inserted in a COXCoolToolBar.
 
Thanks in advance, all ideas gratefully received!!
 
Cheers
 
DaveC
GeneralProblem in COXPropertyTree and COXPropertiesWnd.membersawers24 Jun '09 - 23:56 
In COXPropertyTree class, the function m_pPropertiesWnd->FinishEditing() is called in COXPropertyTree::OnKillEditFocus(), and COXPropertyTree::PreTranslateMessage(MSG* pMsg) WM_KEYDOWN -> VK_RETURN.
The problem is that m_pPropertiesWnd->FinishEditing() will be called twice when user enter value in any editable entry in PropertiesWnd and press enter, because in
void COXPropertiesWnd::FinishEditing(BOOL bSave)
{
	if (m_hEditProp == NULL) {
		return;
	}
	if (bSave)
	{
		// Call OnPropertyValueChanged(...) and save the value
		CString strText;
		COXMaskedEdit* pMaskedEdit = DYNAMIC_DOWNCAST(COXMaskedEdit, m_pEditWnd);
		if (pMaskedEdit != NULL)
			strText = pMaskedEdit->GetText();
		else
			m_pEditWnd->GetWindowText(strText);
		
		BOOL bSaveValue = OnPropertyValueChanged(m_hEditProp,
			GetPropertyValue(m_hEditProp), strText);
		
		if (bSaveValue)
			SetPropertyValue(m_hEditProp, strText);
	}
 
	// Hide the editor
	m_pEditWnd->ShowWindow(SW_HIDE);
	m_pEditWnd = NULL;
	m_hEditProp = NULL;
 
	m_wndTree.SelectItem(NULL);
}
 
the highlighted line will trigger COXPropertyTree::OnKillEditFocus() where m_pPropertiesWnd->FinishEditing() will be called for the second time.
This wrong behavior will lead to calling the overrided function OnPropertyValueChanged twice.
 
I tried a work around to solve this by modifying COXPropertyTree::OnKillEditFocus() as the following:
 
void COXPropertyTree::OnKillEditFocus() 
{
    if (m_pPropertiesWnd && m_pPropertiesWnd->m_pEditWnd->IsWindowVisible())
	m_pPropertiesWnd->FinishEditing();
}
 
However the problem still exist with another scenario, when editing an entry and using mouse; focus on another entry.
 
I hope to get a solution for this.
 
Thanks a lot
 
Mina Saweres Yousef
Software Engineer - CITE Team
PSD (Pyramids Systems Development)
web : http://www.psd.com.eg
GeneralCrash in COXBitmapMenuOrganizer::InitmemberMaximilien9 Jun '09 - 10:13 
Howdy'
 
While upgrading our projects from VS2003 to VS2008...
 
I'm in the process of upgrading to the latest dundas toolkit code.
I've applied all the patches to our code.
 
I have a crash in COXBitmapMenuOrganizer::Init that confuse me.
 
BOOL COXBitmapMenuOrganizer::Init(UINT cx, UINT cy, UINT nCheckID, UINT nBulletID)
{
	CDC memDC;
	VERIFY(memDC.CreateCompatibleDC(NULL)); // crash here 
//....
}
 
This happens when the COXBitmapMenuOrganizer is created in the main frame class.
 
Any hints ?
 
Thanks.
 
Max.
 
This signature was proudly tested on animals.

GeneralRe: Crash in COXBitmapMenuOrganizer::IniteditorTim Deveaux9 Jun '09 - 13:10 
Hi Max
 
Not a clue on this one, but worth a shot.
 
I'm assuming you replaced your older version with v9.3 then applied the updates.
 
Are you compiling for 64 bit, and/or running on Vista? Any difference if aero on/off?
 
The skinsdemo in the samples/advanced dir might be worth testing to see if the same problem occurs - maybe break and check the call stack to see if the init arises in the same way.
 
You might or might not get something informative from a call to GetLastError when CreateCompatibleDC returns NULL.
 
Lastly it could be a resource issue, but then I think there would be other manifestations.
 
Just some thoughts - really haven't seen this one.
 
Tim

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Permalink | Advertise | Privacy | Mobile
Web03 | 2.6.130516.1 | Last Updated 13 Feb 2013
Article Copyright 2008 by The Ultimate Toolbox
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid