on changing the language the text of the filter isn't updated with the new string. the new language string only appears by clicking into the filter field.
the following changes will fix the problem.
void CSharedFilesWnd::Localize() { sharedfilesctrl.Localize(); m_ctlSharedDirTree.Localize(); m_ctlFilter.ShowColumnText(true); // JvA - Update FilterText on Language change fix sharedfilesctrl.SetDirectoryFilter(NULL,true); ...
EditDelayed.h
public: ... // when not using pColumnHeader this text will be shown when the control is empty and has no focus void SetAlternateText(const CString& rstrText) { m_strAlternateText = rstrText; } void ShowColumnText(bool bShow); // JvA - Update FilterText on Language change fix ... protected: ... void DoDelayedEvalute(bool bForce = false); void SetEditRect(bool bUpdateResetButtonPos, bool bUpdateColumnButton = false); // void ShowColumnText(bool bShow); // JvA - Update FilterText on Language change fix ...
thats it.
thanks for your attention.
JvA
edit: after a quick correspondence with stulle and some more testing i've shrinked the code and added the fix for the searchresultsfilter too.
this is the fix for the searchresultswnd:
void CSearchResultsWnd::Localize() { searchlistctrl.Localize(); m_ctlFilter.ShowColumnText(true); // JvA - Update FilterText on Language change fix UpdateCatTabs(); ...
i think this is much better.
JvA
This post has been edited by JvA: 11 September 2008 - 08:21 AM