refactoring: rename SendMessage --> SendDlgMessage
bugfix: TGlobalFunctions::GetCurrentDirectory: use LENOF
refactoring: replace GetCurrentDirectory --> GetCurrDirectory