Показать сообщение отдельно
Старый 02.05.2009, 14:06   #1  
Blog bot is offline
Blog bot
Участник
 
25,643 / 848 (80) +++++++
Регистрация: 28.10.2006
DeniZone: Show current configuration in title bar of windows
Источник: http://denizone.blogspot.com/2009/01...title-bar.html
==============

This code snippet shows the current configuration of the AX client you have opened. Really helpful if you have several different AX clients opened at the same time.

X++:
void workspaceWindowCreated(int _hWnd)
{
   SqlSystem       sqlSystem = new SqlSystem();
   LoginProperty   loginProperty = sqlSystem.createLoginProperty();
   ;

   // Put workspace window specific initialization here.

   // Show application details in title bar
   if (loginProperty)
   {
       WinAPI::setWindowText(_hWnd, strFmt("%1 - %2@%3 (%4)", WinAPI::getWindowText(_hWnd), loginProperty.getDatabase(), loginProperty.getServer(), this.currentAOLayer()));
   }
}

Источник: http://denizone.blogspot.com/2009/01...title-bar.html
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.