adaptions to m_peer methods

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28201 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor 2004-07-11 17:49:51 +00:00
parent 788e118f21
commit f8405d6e6f

View File

@ -148,11 +148,11 @@ bool wxWebKitCtrl::Create(wxWindow *parent,
m_peer = new wxMacControl();
wxControl::Create(parent, m_windowID, pos, size, style , validator , name);
WebInitForCarbon();
HIWebViewCreate( (HIViewRef*) *m_peer );
HIWebViewCreate( m_peer->GetControlRefAddr() );
m_webView = (WebView*) HIWebViewGetWebView( (HIViewRef) *m_peer );
m_webView = (WebView*) HIWebViewGetWebView( m_peer->GetControlRef() );
MacPostControlCreate(pos, size);
HIViewSetVisible( (HIViewRef) *m_peer, true );
HIViewSetVisible( m_peer->GetControlRef(), true );
[m_webView setHidden:false];
#endif
@ -294,7 +294,7 @@ void wxWebKitCtrl::OnSize(wxSizeEvent &event){
}
void wxWebKitCtrl::MacVisibilityChanged(){
bool isHidden = !IsControlVisible( (HIViewRef)*m_peer);
bool isHidden = !IsControlVisible( m_peer->GetControlRef());
[m_webView setHidden:isHidden];
}