Источник:
http://rusgon.blogspot.com/2008/01/h...-all-open.html
==============
This job allows get screenshots of all currently open windows in Axapta.
It based on idea published in
How to get list of all open windows and their names in AX
static void JobAllTheWindowsScreenshots(Args _args)
{
#define.screenshotFolder('q:\capture\')
hWnd Parent;
hWnd handle;
hWnd mdi;
#WinApi
dialog d = new Dialog();
DialogTabPage dt;
str text;
// retrieves the visibility state of the specified window -->
DLL _DLL = new DLL('USER32');
DLLFunction _isWindowVisible = new DLLFunction(_DLL, 'IsWindowVisible');
// retrieves the visibility state of the specified window
_isWindowVisible.returns(ExtTypes::DWord);
_isWindowVisible.arg(ExtTypes::DWord);
// retrieves the visibility state of the specified window