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