blog for Dynamics Axapta

Hiding Content pane of AX 2009

Here i posted the code to hide the content pane of Dynamics Ax2009

The below code is to hide the content pane of Ax 2009

static void hideContentPaneWindow(Args _args)

{

     #WinApi

     HWND contentPane = WinApi::findWindowEx(WinAPI::findWindowEx(infolog.hWnd(), 0, ‘MDIClient’, ”),0,’ContentFrame’,” );

     ;

    if (contentPane)

    WinApi::ShowWindow(contentPane,#SW_HIDE); // To restore use #SW_RESTORE

}

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: