#pragma implementation "webkit.h"
#endif
-#if wxUSE_WEBKIT
-
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
#include "wx/wx.h"
#endif
+#if wxUSE_WEBKIT
+
#ifdef __WXCOCOA__
#include "wx/cocoa/autorelease.h"
#else
SetInitialFrameRect(pos,sizeInstance);
#else
m_macIsUserPane = false;
+ m_peer = new wxMacControl();
wxControl::Create(parent, m_windowID, pos, size, style , validator , name);
WebInitForCarbon();
- HIWebViewCreate( (HIViewRef*) &m_macControl );
+ HIWebViewCreate( m_peer->GetControlRefAddr() );
- m_webView = (WebView*) HIWebViewGetWebView( (HIViewRef) m_macControl );
+ m_webView = (WebView*) HIWebViewGetWebView( m_peer->GetControlRef() );
MacPostControlCreate(pos, size);
- HIViewSetVisible( (HIViewRef) m_macControl, true );
+ HIViewSetVisible( m_peer->GetControlRef(), true );
[m_webView setHidden:false];
#endif
}
void wxWebKitCtrl::MacVisibilityChanged(){
- bool isHidden = !IsControlVisible( (HIViewRef)m_macControl);
+ bool isHidden = !IsControlVisible( m_peer->GetControlRef());
[m_webView setHidden:isHidden];
}
}
@end
-#endif //wxUSE_WEBKIT
\ No newline at end of file
+#endif //wxUSE_WEBKIT