+ wxString sError;
+
+ //
+ // Remove the high order byte -- it is useless
+ //
+ vError &= 0x0000ffff;
+ switch(vError)
+ {
+ case PMERR_INVALID_HWND:
+ sError = wxT("Invalid window handle specified");
+ break;
+
+ case PMERR_INVALID_FLAG:
+ sError = wxT("Invalid flag bit set");
+ break;
+
+ case PMERR_NO_MSG_QUEUE:
+ sError = wxT("No message queue available");
+ break;
+
+ case PMERR_INVALID_PARM:
+ sError = wxT("Parameter contained invalid data");
+ break;
+
+ case PMERR_INVALID_PARAMETERS:
+ sError = wxT("Parameter value is out of range");
+ break;
+
+ case PMERR_PARAMETER_OUT_OF_RANGE:
+ sError = wxT("Parameter value is out of range");
+ break;
+
+ case PMERR_INVALID_INTEGER_ATOM:
+ sError = wxT("Not a valid atom");
+ break;
+
+ case PMERR_INVALID_HATOMTBL:
+ sError = wxT("Atom table handle is invalid");
+ break;
+
+ case PMERR_INVALID_ATOM_NAME:
+ sError = wxT("Not a valid atom name");
+ break;
+
+ case PMERR_ATOM_NAME_NOT_FOUND:
+ sError = wxT("Valid name format, but cannot find name in atom table");
+ break;
+
+ case PMERR_INV_HPS:
+ sError = wxT("PMERR_INV_HPS");
+ break;
+
+ case PMERR_PS_BUSY:
+ sError = wxT("PMERR_PS_BUSY");
+ break;
+
+ case PMERR_INV_PRIMITIVE_TYPE:
+ sError = wxT("PMERR_INV_PRIMITIVE_TYPE");
+ break;
+
+ case PMERR_UNSUPPORTED_ATTR:
+ sError = wxT("PMERR_UNSUPPORTED_ATTR");
+ break;
+
+ case PMERR_INV_COLOR_ATTR:
+ sError = wxT("PMERR_INV_COLOR_ATTR");
+ break;
+
+ case PMERR_INV_BACKGROUND_COL_ATTR:
+ sError = wxT("PMERR_INV_BACKGROUND_COL_ATTR");
+ break;
+
+ case PMERR_INV_MIX_ATTR:
+ sError = wxT("PMERR_INV_MIX_ATTR");
+ break;
+
+ case PMERR_INV_LINE_WIDTH_ATTR:
+ sError = wxT("PMERR_INV_LINE_WIDTH_ATTR");
+ break;
+
+ case PMERR_INV_GEOM_LINE_WIDTH_ATTR:
+ sError = wxT("PMERR_INV_GEOM_LINE_WIDTH_ATTR");
+ break;
+
+ case PMERR_INV_LINE_TYPE_ATTR:
+ sError = wxT("PMERR_INV_LINE_TYPE_ATTR");
+ break;
+
+ case PMERR_INV_LINE_END_ATTR:
+ sError = wxT("PMERR_INV_LINE_END_ATTR");
+ break;
+
+ case PMERR_INV_LINE_JOIN_ATTR:
+ sError = wxT("PMERR_INV_LINE_JOIN_ATTR");
+ break;
+
+ case PMERR_INV_CHAR_SET_ATTR:
+ sError = wxT("PMERR_INV_CHAR_SET_ATTR");
+ break;
+
+ case PMERR_INV_CHAR_MODE_ATTR:
+ sError = wxT("PMERR_INV_CHAR_MODE_ATTR");
+ break;
+
+ case PMERR_INV_CHAR_DIRECTION_ATTR:
+ sError = wxT("PMERR_INV_CHAR_DIRECTION_ATTR");
+ break;
+
+ case PMERR_INV_CHAR_SHEAR_ATTR:
+ sError = wxT("PMERR_INV_CHAR_SHEAR_ATTR");
+ break;
+
+ case PMERR_INV_CHAR_ANGLE_ATTR:
+ sError = wxT("PMERR_INV_CHAR_ANGLE_ATTR");
+ break;
+
+ case PMERR_INV_MARKER_SET_ATTR:
+ sError = wxT("PMERR_INV_MARKER_SET_ATTR");
+ break;
+
+ case PMERR_INV_MARKER_SYMBOL_ATTR:
+ sError = wxT("PMERR_INV_MARKER_SYMBOL_ATTR");
+ break;
+
+ case PMERR_INV_PATTERN_SET_ATTR:
+ sError = wxT("PMERR_INV_PATTERN_SET_ATTR");
+ break;
+
+ case PMERR_INV_PATTERN_ATTR:
+ sError = wxT("PMERR_INV_PATTERN_ATTR");
+ break;