I assume you mean Maya's Output Window that displays text strings from a plug-in.
The only way to clear the window is to create a MPxCommand plug-in and then call that command from a shelf button. Here is the code to do the clear. I'm not allowed to post my plug-ins, so maybe someone else on the board can write the plug-in and post it.
MStatus clearOutputWindow::doIt( const MArgList& args )
{
MStatus stat(MS::kSuccess);
HWND wh;
CWnd theWindow, *h ;
CEdit editCtrl;
if((wh=FindWindow( NULL, "Output Window")) ==NULL)
{
return MS::kFailure;
}
if(!theWindow.Attach(wh))
{
return MS::kFailure;
}
if((h=theWindow.GetTopWindow( ))!=NULL)
{
editCtrl.Attach(h->GetSafeHwnd());
editCtrl.SetSel(0,-1);
editCtrl.ReplaceSel("");
}
else
{
return MS::kFailure;
}
theWindow.Detach();
editCtrl.Detach();
return stat;
}
g-