AXForum  
Вернуться   AXForum > Microsoft Dynamics AX > DAX Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск Все разделы прочитаны

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 14.09.2017, 13:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,459 / 846 (79) +++++++
Регистрация: 28.10.2006
sinedax: AX 2012: Forms on opening hide behind in the back - 2° part
Источник: http://sinedax.blogspot.com/2017/07/...behind-in.html
==============

Hi Guys

About this topic the Microsoft workaround in some case doesn't helped me.
So, below you can find the code that definitely fix the issue!


Modify the StartupPost method of the Application Class and add these two lines:


if (hasGUI())
Application::DisableWindowGhosting();





Lastly, created the "DisableWindowGhosting" static method like this:


client static void disableWindowGhosting()
{
DLL DLL;


DLLFunction DLLFunction;


container con = WinAPI::getVersion();


if (conpeek(con, 1) == 6) //Vista and Win7/Win2008R2 only
{
//this will disable window ghosting for this process only, for its lifespan only


DLL = new DLL("USER32");


DLLFunction = new DLLFunction(DLL,"DisableProcessWindowsGhosting");


DLLFunction.call();
}
}



That's it!




Источник: http://sinedax.blogspot.com/2017/07/...behind-in.html
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
emeadaxsupport: AX Performance Troubleshooting Checklist Part 1B [Application and AOS Configuration] Blog bot DAX Blogs 0 05.09.2014 21:11
DAX: Microsoft Dynamics AX 2012 R3 is now available! Blog bot DAX Blogs 1 02.05.2014 23:00
addicted2ax: Creating SSRS-Reports in Dynamics AX 2012 – What’s no longer possible in AX-reports (Part III) Blog bot DAX Blogs 0 20.12.2012 20:11
ax-erp: Creating SSRS-Reports in Dynamics AX 2012 – What’s no longer possible in AX-reports Blog bot DAX Blogs 0 18.07.2012 12:11
Опции темы Поиск в этой теме
Поиск в этой теме:

Расширенный поиск
Опции просмотра

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 14:53.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.