Axaptapedia is now maintained by AgileCadence For more information please click here.

Axapta hWnd

From Axaptapedia
Revision as of 10:54, 9 January 2007 by MaxBelugin (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

It is easy to find the hWnd (Window handle) of the main Microsoft Axapta MDI parent window.

Using the pre-declared infolog instance, just call the hWnd() method, as shown in the job below. <xpp>

static void findhWnd(Args _args)
{
    int hWnd;
    ;

    hWnd = infolog.hWnd();
    info (int2str(hWnd));
}

</xpp> To get the hWnd of an individual form in Axapta, you can use the formRun.hWnd() method. From within the form, simply use element.hWnd().