separately from their parent shells.
MWM_DECOR_ALL
This value can be used to enable all of the window manager decorations.
All of these values are defined in <Xm/MwmUtil.h>, which must be included before any of them may be used.
The values are bitmasks, so they are meant to be ORed together. For example, if you have a customized dialog
that you do not want to have resize handles, you can turn them off as shown in the following code fragment:
Widget dialog_shell;
int decor;
XtVaGetValues (dialog_shell, XmNmwmDecorations, &decor, NULL);
decor &= ~MWM_DECOR_RESIZEH;
XtVaSetValues (dialog_shell, XmNmwmDecorations, decor, NULL);
While the programmatic interface is available to make changes in the form described above, you really don't
have to resort to this level of complexity. If you want to do something that is allowed by the Motif Style
Guide, chances are that the Motif toolkit provides a more convenient way of doing it. For example, you can
turn off the resize handles for a Motif dialog by setting the XmNnoResize resource to True, as shown in the
following code:
Widget dialog;
Arg args[5];
int n = 0;
XtSetArg (args[n], XmNnoResize, True); n++;
dialog = XmCreateFileSelectionDialog (parent, "dialog", args, n);
If Motif doesn't provide a convenience routine or a resource for doing what you want, chances are good that you
shouldn't be doing it. On the other hand, you don't have to use the convenience method; if it seems appropriate, you
can use the methods described here.
17.3.2 Window Menu Functions ...