Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions
nsCheckButton.cpp File Reference
#include "nsCheckButton.h"
#include "nsToolkit.h"
#include "nsColor.h"
#include "nsGUIEvent.h"
#include "nsString.h"
#include "nsStringUtil.h"
#include <os2.h>
#include "nsILookAndFeel.h"
#include "nsWidgetsCID.h"
#include "nsIComponentManager.h"
#include "nsIDeviceContext.h"

Go to the source code of this file.

Defines

#define IDM_BUTTON   701

Functions

nsresult NS_NewCheckButton (nsICheckButton **aControl)

Define Documentation

#define IDM_BUTTON   701

Definition at line 52 of file nsCheckButton.cpp.


Function Documentation

Definition at line 56 of file nsCheckButton.cpp.

{
  NS_PRECONDITION(aControl, "null OUT ptr");
  if (nsnull == aControl) {
    return NS_ERROR_NULL_POINTER;
  }
  nsCheckButton* it = new nsCheckButton;
  if (!it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }
  NS_ADDREF(it);
  *aControl = (nsICheckButton*)it;
  return NS_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function: