![]() |
#7 |
Участник
|
Цитата:
Сообщение от Dron AKA andy
![]() Мы на DAX2012 вот так сделали, для Win7 помогло:
Forms opening up with focus in background X++: //Add a new static, client-side method to Classes\Application, as below: 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(); } } //Add a call to this from Application.startupPost(), like this: if (hasGUI()) { Application::DisableWindowGhosting(); }
__________________
MS Dynamics AX 2009 Kernel 5.0.1600.4110 Application 5.0.1500.6491 |
|
|
Опции темы | Поиск в этой теме |
Опции просмотра | |
|