void CBCGPTranslateManager::SetTranslationCallback | ( | BCGP_TRANSLATE_TEXT | pfnTranslateText | ) |
Set a translation callback method.
pfnTranslateText | A pointer to the translation callback method. |
Call SetTranslationCallback method to specify the a callback used for the application resources translation. The translation callback is defined as following:
LPCTSTR __stdcall TranslateText(const CString& strOriginal, BCGPCommandControlType controlType, const CBCGPControlInfo& controlInfo, BOOL bIsMSAALabel, BOOL& bStoreTranslation)
Input parameters:
bStoreTranslation - set it to TRUE if you wish to store this translation in the translations hash table
Returns: a translated text or NULL