if (NS_OK == mControlFrame->QueryInterface(kIFrameIID, (void**)&frame)) {
if (NS_OK == mControlFrame->QueryInterface(NS_GET_IID(nsIFrame), (void**)&frame)) {
nsLabelFrame::HandleEvent(nsIPresContext* aPresContext,                           nsGUIEvent* aEvent,                          nsEventStatus* aEventStatus){#if 0  NS_ENSURE_ARG_POINTER(aEventStatus);  // if we don't have a control to send the event to  // then what is the point?  if (!mControlFrame) {    return NS_OK;  }  // check to see if the label is disabled and if not,   // then check to see if the control in the label is disabled  if (nsEventStatus_eConsumeNoDefault != *aEventStatus) {     if ( nsFormFrame::GetDisabled(this) ) {      return NS_OK;    } else {      nsIFrame * frame;      if (NS_OK == mControlFrame->QueryInterface(kIFrameIID, (void**)&frame)) {        if ( nsFormFrame::GetDisabled(frame)) {          return NS_OK;        }      } else {        // if I can't get the nsIFrame something is really wrong        // so leave        return NS_OK;      }    }  }  // send the mouse click events down into the control  *aEventStatus = nsEventStatus_eIgnore;  switch (aEvent->message) {    case NS_MOUSE_LEFT_BUTTON_DOWN:{      nsIContent * content;      mControlFrame->GetFormContent(content);      if (nsnull != content) {        content->SetFocus(aPresContext);        NS_RELEASE(content);      }      mLastMouseState = eMouseDown;      *aEventStatus = nsEventStatus_eConsumeNoDefault;      } break;    case NS_MOUSE_LEFT_BUTTON_UP:	    if (eMouseDown == mLastMouseState) {        if (nsEventStatus_eConsumeNoDefault != *aEventStatus) {          mControlFrame->MouseClicked(aPresContext);        }	    } 	    mLastMouseState = eMouseUp;      *aEventStatus = nsEventStatus_eConsumeNoDefault;      break;  }#endif  return nsFrame::HandleEvent(aPresContext, aEvent, aEventStatus);}