Показать сообщение отдельно
Старый 12.01.2008, 12:31   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
Ruslan Goncharov: How to get the screenshots of all open windows in AX
Источник: 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
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.