MozCreateWindow(moz);  moz->MyBrowser->WebNavigation = do_QueryInterface(moz->MyBrowser->WebBrowser);     moz->MyBrowser->mSessionHistory = do_CreateInstance(NS_SHISTORY_CONTRACTID); moz->MyBrowser->WebNavigation->SetSessionHistory( moz->MyBrowser->mSessionHistory );
static void mozilla_defaults( PtWidget_t *widget ){	PtMozillaWidget_t *moz = (PtMozillaWidget_t *) widget;	PtBasicWidget_t *basic = (PtBasicWidget_t *) widget;	PtContainerWidget_t *cntr = (PtContainerWidget_t*) widget;	moz->MyBrowser = new BrowserAccess();	MozCreateWindow(moz);	// get a hold of the navigation class	moz->MyBrowser->WebNavigation = do_QueryInterface(moz->MyBrowser->WebBrowser);	// Create our session history object and tell the navigation object	// to use it.  We need to do this before we create the web browser	// window.	moz->MyBrowser->mSessionHistory = do_CreateInstance(NS_SHISTORY_CONTRACTID);	moz->MyBrowser->WebNavigation->SetSessionHistory( moz->MyBrowser->mSessionHistory );  	// widget related	basic->flags = Pt_ALL_OUTLINES | Pt_ALL_BEVELS | Pt_FLAT_FILL;	widget->resize_flags &= ~Pt_RESIZE_XY_BITS; // fixed size.	widget->anchor_flags = Pt_TOP_ANCHORED_TOP | Pt_LEFT_ANCHORED_LEFT | \			Pt_BOTTOM_ANCHORED_TOP | Pt_RIGHT_ANCHORED_LEFT | Pt_ANCHORS_INVALID;	cntr->flags |= Pt_CHILD_GETTING_FOCUS;	mozilla_set_default_pref( widget );}