BCGControlBar Pro for MFC
void CBCGPTranslateManager::SetTranslationCallback ( BCGP_TRANSLATE_TEXT  pfnTranslateText)

Set a translation callback method.

Parameters
pfnTranslateTextA 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:

  • strOriginal - original text
  • controlType - a type of the GUI control or item
  • controlInfo - a control information
  • bIsMSAALabel - If this parameter is TRUE, the MSAA name is translated
  • bStoreTranslation - set it to TRUE if you wish to store this translation in the translations hash table

    Returns: a translated text or NULL