Hide/destroy annoying Content Pane in AX2009

  • April 14, 2009
  • 2 Comments

Here is a small job, which hides content pane in Dynamics Ax 2009. This content pane can be useful for users, but as a developer it can be very annoying.

1
2
3
4
5
6
7
8
9
10
11
12
static void hideAnnoyingContentPane(Args _args)
{
    HWND contentPane =  WinApi::findWindowEx(
          WinAPI::findWindowEx(infolog.hWnd(), 0, 'MDIClient', ''),
          0,
          'ContentFrame',
          ''
    );
	;
    if (contentPane)
        WinApi::destroyWindow(contentPane);
}