|
29.12.2007, 19:50 | #1 |
Участник
|
Ruslan Goncharov: How to get list of all open windows and their names in AX
Источник: http://rusgon.blogspot.com/2007/12/h...indows-in.html
============== How to get list of all open windows and their names in AX. Just run following job. X++: static void JobAllTheWindows(Args _args) { hWnd Parent; hWnd handle; hWnd mdi; #WinApi dialog d = new Dialog(); DialogTabPage dt; str text; ; d.caption("All the windows"); d.windowType(FormWindowType::PopUp); Parent = infolog.hWnd(); mdi = WinApi::getWindow(Parent, #GW_CHILD); handle = WinApi::getWindow(mdi, #GW_CHILD); text = WinApi::getWindowText(handle); if(text) { dt = d.addTabPage(text); d.addText(text); } if(handle) { while(handle) { handle = WinApi::getWindow(handle, #GW_HWNDNEXT); text = WinApi::getWindowText(handle); if(text) { dt = d.addTabPage(text); d.addText(text); } } } d.run(); } Источник: http://rusgon.blogspot.com/2007/12/h...indows-in.html
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. |
|