if (!stricmp(PropertyName, "disabled"))
if (!XP_STRCASECMP(PropertyName, "disabled"))
Bool LAPIElementGetNumProperty( 	MWContext*		FrameID,	LO_Element*		ElementID,	char*			PropertyName,	int32*			lpPropVal			){	lo_ProbeState* ps = GetProbe(FrameID);	if (ps == NULL)	{	/* invalid frame id */		LAPI_LastError = LAPI_E_INVALIDFRAME;		return FALSE;	}	/* TODO Add bullet type */		if (!stricmp(PropertyName, "type"))	{		*lpPropVal = GetElementLAPIType(ElementID);		return TRUE;	}	else if (!stricmp(PropertyName, "xpos"))	{		*lpPropVal = (ElementID->lo_any).x + (ElementID->lo_any).x_offset;		return TRUE;	}	else if (!stricmp(PropertyName, "ypos"))	{		*lpPropVal = (ElementID->lo_any).y + (ElementID->lo_any).y_offset;		return TRUE;	}	else if (!stricmp(PropertyName, "width"))	{		*lpPropVal = (ElementID->lo_any).width;		return TRUE;	}	else if (!stricmp(PropertyName, "height"))	{		*lpPropVal = (ElementID->lo_any).height;		return TRUE;	}	if (ElementID->type == LO_FORM_ELE)	{		switch (((ElementID->lo_form).element_data)->type)		{		case FORM_TYPE_TEXT:		case FORM_TYPE_PASSWORD:		case FORM_TYPE_READONLY:			if (!stricmp(PropertyName, "disabled"))			{				*lpPropVal = (((ElementID->lo_form).element_data)->ele_text).disabled;				return TRUE;			}			else if (!stricmp(PropertyName, "readonly"))			{				*lpPropVal = (((ElementID->lo_form).element_data)->ele_text).read_only;				return TRUE;			}			else if (!stricmp(PropertyName, "size"))			{				*lpPropVal = (((ElementID->lo_form).element_data)->ele_text).size;				return TRUE;			}			else if (!stricmp(PropertyName, "maxsize"))			{				*lpPropVal = (((ElementID->lo_form).element_data)->ele_text).max_size;				return TRUE;			}			break;		case FORM_TYPE_SUBMIT:		case FORM_TYPE_RESET:		case FORM_TYPE_BUTTON:			if (!stricmp(PropertyName, "disabled"))			{				*lpPropVal = (((ElementID->lo_form).element_data)->ele_minimal).disabled;				return TRUE;			}			break;		case FORM_TYPE_RADIO:		case FORM_TYPE_CHECKBOX:			if (!stricmp(PropertyName, "disabled"))			{				*lpPropVal = (((ElementID->lo_form).element_data)->ele_toggle).disabled;				return TRUE;			}			else if (!stricmp(PropertyName, "toggled"))			{				*lpPropVal = (((ElementID->lo_form).element_data)->ele_toggle).toggled;				return TRUE;			}			else if (!stricmp(PropertyName, "default_toggle"))			{				*lpPropVal = (((ElementID->lo_form).element_data)->ele_toggle).default_toggle;				return TRUE;			}			break;		case FORM_TYPE_SELECT_ONE:		case FORM_TYPE_SELECT_MULT:			if (!stricmp(PropertyName, "disabled"))			{				*lpPropVal = (((ElementID->lo_form).element_data)->ele_select).disabled;				return TRUE;			}			else if (!stricmp(PropertyName, "multiple"))			{				*lpPropVal = (((ElementID->lo_form).element_data)->ele_select).multiple;				return TRUE;			}			else if (!stricmp(PropertyName, "multiple"))			{				*lpPropVal = (((ElementID->lo_form).element_data)->ele_select).multiple;				return TRUE;			}			else if (!stricmp(PropertyName, "option_cnt"))			{				*lpPropVal = (((ElementID->lo_form).element_data)->ele_select).option_cnt;				return TRUE;			}			else if (!stricmp(PropertyName, "options"))			{	/* actually returns a pointer to the option list */				*lpPropVal = (int32)((((ElementID->lo_form).element_data)->ele_select).options);				return TRUE;			}		case FORM_TYPE_TEXTAREA:			if (!stricmp(PropertyName, "disabled"))			{				*lpPropVal = (((ElementID->lo_form).element_data)->ele_textarea).disabled;				return TRUE;			}			else if (!stricmp(PropertyName, "readonly"))			{				*lpPropVal = (((ElementID->lo_form).element_data)->ele_textarea).read_only;				return TRUE;			}			else if (!stricmp(PropertyName, "rows"))			{				*lpPropVal = (((ElementID->lo_form).element_data)->ele_textarea).rows;				return TRUE;			}			else if (!stricmp(PropertyName, "cols"))			{				*lpPropVal = (((ElementID->lo_form).element_data)->ele_textarea).cols;				return TRUE;			}		case FORM_TYPE_IMAGE: /* TODO - what data structure?*/			break;				case FORM_TYPE_HIDDEN:		case FORM_TYPE_JOT:		case FORM_TYPE_ISINDEX:		case FORM_TYPE_KEYGEN:		case FORM_TYPE_OBJECT:			break;		}	}	LAPI_LastError = LAPI_E_INVALIDPROP;	return FALSE;}