129 references to NativeMethods
System.Web.Mobile (129)
UI\MobileControls\Design\Adapters\DesignerAdapterUtil.cs (14)
294NativeMethods.IHTMLElement2 htmlElement2Parent = null; 309(NativeMethods.IHTMLElement2) 315(NativeMethods.IHTMLElement2) 343NativeMethods.IHTMLRectCollection rectColl = null; 344NativeMethods.IHTMLRect rect = null; 348NativeMethods.IHTMLElement2 htmlElement2; 352htmlElement2 = (NativeMethods.IHTMLElement2) ((MobileControlDesigner) controlDesigner).DesignTimeElementInternal; 356htmlElement2 = (NativeMethods.IHTMLElement2) ((MobileTemplatedControlDesigner) controlDesigner).DesignTimeElementInternal; 376rect = (NativeMethods.IHTMLRect)rectColl.Item(ref obj); 381rect = (NativeMethods.IHTMLRect) rectColl.Item(ref obj); 415private static int GetLength(NativeMethods.IHTMLElement2 element) { 416NativeMethods.IHTMLRectCollection rectColl = element.GetClientRects(); 419NativeMethods.IHTMLRect rect = (NativeMethods.IHTMLRect)rectColl.Item(ref obj);
UI\MobileControls\Design\Adapters\MSHTMLHostUtil.cs (10)
25private static NativeMethods.IHTMLElement _htmlBody; 26private static NativeMethods.IHTMLElement _htmlDivOuter; 27private static NativeMethods.IHTMLElement _htmlDivInner; 43NativeMethods.IHTMLDocument2 htmlDoc2 = _tridentControl.GetDocument(); 60NativeMethods.IHTMLDocument3 htmlDoc3 = (NativeMethods.IHTMLDocument3) _tridentControl.GetDocument(); 84NativeMethods.IHTMLElement2 htmlElement2 = (NativeMethods.IHTMLElement2) _htmlDivOuter; 93NativeMethods.IHTMLElement2 htmlElement2 = (NativeMethods.IHTMLElement2) _htmlDivOuter;
UI\MobileControls\Design\MobileContainerDesigner.cs (2)
22using IHTMLElement = NativeMethods.IHTMLElement; 23using IHTMLElementCollection = NativeMethods.IHTMLElementCollection;
UI\MobileControls\Design\NativeMethods.cs (3)
2792int EnumVerbs(out NativeMethods.IEnumOLEVERB e); 2992NativeMethods.tagOLEVERB rgelt, 3006out NativeMethods.IEnumOLEVERB ppenum);
UI\MobileControls\Design\StylesEditorDialog.cs (4)
539NativeMethods.IHTMLDocument2 tridentDocument = _samplePreview.GetDocument(); 540NativeMethods.IHTMLElement documentElement = tridentDocument.GetBody(); 541NativeMethods.IHTMLBodyElement bodyElement; 543bodyElement = (NativeMethods.IHTMLBodyElement) documentElement;
UI\MobileControls\Design\Util\MSHTMLHost.cs (96)
41public NativeMethods.IHTMLDocument2 GetDocument() { 52cp.ExStyle |= NativeMethods.WS_EX_STATICEDGE; 86internal class TridentSite : NativeMethods.IOleClientSite, NativeMethods.IOleDocumentSite, NativeMethods.IOleInPlaceSite, NativeMethods.IOleInPlaceFrame, NativeMethods.IDocHostUIHandler { 89protected NativeMethods.IOleDocumentView tridentView; 90protected NativeMethods.IOleObject tridentOleObject; 91protected NativeMethods.IHTMLDocument2 tridentDocument; 106public NativeMethods.IHTMLDocument2 GetDocument() { 116NativeMethods.COMRECT r = new NativeMethods.COMRECT(); 118NativeMethods.GetClientRect(parentControl.Handle, r); 131throw new COMException(String.Empty, NativeMethods.E_NOTIMPL); 134public virtual int GetContainer(out NativeMethods.IOleContainer ppContainer) { 136return NativeMethods.E_NOINTERFACE; 152public virtual int ActivateMe(NativeMethods.IOleDocumentView pViewToActivate) { 156return NativeMethods.E_INVALIDARG; 158NativeMethods.COMRECT r = new NativeMethods.COMRECT(); 160NativeMethods.GetClientRect(parentControl.Handle, r); 163tridentView.SetInPlaceSite((NativeMethods.IOleInPlaceSite)this); 168return NativeMethods.S_OK; 180throw new COMException(String.Empty, NativeMethods.E_NOTIMPL); 184return NativeMethods.S_OK; 193public virtual void GetWindowContext(out NativeMethods.IOleInPlaceFrame ppFrame, out NativeMethods.IOleInPlaceUIWindow ppDoc, NativeMethods.COMRECT lprcPosRect, NativeMethods.COMRECT lprcClipRect, NativeMethods.tagOIFI lpFrameInfo) { 195ppFrame = (NativeMethods.IOleInPlaceFrame)this; 198NativeMethods.GetClientRect(parentControl.Handle, lprcPosRect); 199NativeMethods.GetClientRect(parentControl.Handle, lprcClipRect); 201lpFrameInfo.cb = System.Runtime.InteropServices.Marshal.SizeOf(typeof(NativeMethods.tagOIFI)); 208public virtual int Scroll(NativeMethods.tagSIZE scrollExtant) { 209return(NativeMethods.E_NOTIMPL); 221throw new COMException(SR.GetString(SR.MSHTMLHost_Not_Implemented), NativeMethods.E_NOTIMPL); 227public virtual int OnPosRectChange(NativeMethods.COMRECT lprcPosRect) { 228return NativeMethods.S_OK; 235public virtual void GetBorder(NativeMethods.COMRECT lprectBorder) { 236throw new COMException(String.Empty, NativeMethods.E_NOTIMPL); 239public virtual void RequestBorderSpace(NativeMethods.COMRECT pborderwidths) { 240throw new COMException(String.Empty, NativeMethods.E_NOTIMPL); 243public virtual void SetBorderSpace(NativeMethods.COMRECT pborderwidths) { 244throw new COMException(String.Empty, NativeMethods.E_NOTIMPL); 247public virtual void SetActiveObject(NativeMethods.IOleInPlaceActiveObject pActiveObject, string pszObjName) { 254throw new COMException(String.Empty, NativeMethods.E_NOTIMPL); 258throw new COMException(String.Empty, NativeMethods.E_NOTIMPL); 262throw new COMException(String.Empty, NativeMethods.E_NOTIMPL); 271public virtual int TranslateAccelerator(ref NativeMethods.MSG lpmsg, short wID) { 272return NativeMethods.S_FALSE; 279public virtual int ShowContextMenu(int dwID, NativeMethods.POINT pt, object pcmdtReserved, object pdispReserved) { 280return NativeMethods.S_OK; 283public virtual int GetHostInfo(NativeMethods.DOCHOSTUIINFO info) { 284info.dwDoubleClick = NativeMethods.DOCHOSTUIDBLCLICK.DEFAULT; 285info.dwFlags = NativeMethods.DOCHOSTUIFLAG.FLAT_SCROLLBAR | 286NativeMethods.DOCHOSTUIFLAG.NO3DBORDER | 287NativeMethods.DOCHOSTUIFLAG.DIALOG | 288NativeMethods.DOCHOSTUIFLAG.DISABLE_SCRIPT_INACTIVE; 290return NativeMethods.S_OK; 294return NativeMethods.S_OK; 297public virtual int ShowUI(int dwID, NativeMethods.IOleInPlaceActiveObject activeObject, NativeMethods.IOleCommandTarget commandTarget, NativeMethods.IOleInPlaceFrame frame, NativeMethods.IOleInPlaceUIWindow doc) { 298return NativeMethods.S_OK; 302return NativeMethods.S_OK; 306return NativeMethods.S_OK; 310return NativeMethods.E_NOTIMPL; 314return NativeMethods.E_NOTIMPL; 317public virtual int ResizeBorder(NativeMethods.COMRECT rect, NativeMethods.IOleInPlaceUIWindow doc, bool fFrameWindow) { 318return NativeMethods.E_NOTIMPL; 323return NativeMethods.S_OK; 326public virtual int GetDropTarget(NativeMethods.IOleDropTarget pDropTarget, out NativeMethods.IOleDropTarget ppDropTarget) { 328return NativeMethods.S_FALSE; 333return NativeMethods.S_OK; 336public virtual int TranslateAccelerator(ref NativeMethods.MSG msg, ref Guid group, int nCmdID) { 337return NativeMethods.S_OK; 342return NativeMethods.E_NOTIMPL; 345public virtual int FilterDataObject(NativeMethods.IOleDataObject pDO, out NativeMethods.IOleDataObject ppDORet) { 347return NativeMethods.S_OK; 363tridentDocument = (NativeMethods.IHTMLDocument2)new NativeMethods.HTMLDocument(); 364tridentOleObject = (NativeMethods.IOleObject)tridentDocument; 367tridentOleObject.SetClientSite((NativeMethods.IOleClientSite)this); 370NativeMethods.IPersistStreamInit psi = (NativeMethods.IPersistStreamInit)tridentDocument; 388NativeMethods.COMRECT r = new NativeMethods.COMRECT(); 390NativeMethods.GetClientRect(parentControl.Handle, r); 391tridentOleObject.DoVerb(NativeMethods.OLEIVERB_UIACTIVATE, IntPtr.Zero, (NativeMethods.IOleClientSite)this, 0, parentControl.Handle, r);