示例#1
0
 public static extern bool LPtoDP(
     IntPtr hdc,
     POINT[] lpPoints,
     int nCounts);
 public override int ShowContextMenu(int dwID, ref OpenLiveWriter.Interop.Windows.POINT ppt, object pcmdtReserved, object pdispReserved)
 {
     return(HRESULT.S_OK);
 }
示例#3
0
 public static extern int MapWindowPoints(
     IntPtr hwndFrom,  //handle to window mapping from
     IntPtr hwndTo,   //handle to window mapping to
     ref POINT lpPoints, //array of points to map
     [MarshalAs(UnmanagedType.U4)] int cPoints //size of the array
     );
示例#4
0
 public static extern bool GetWindowOrgEx(IntPtr hdc, out POINT lpPoint);
示例#5
0
 public static extern bool ScreenToClient(
     IntPtr hWnd,        // handle to window
     ref POINT lpPoint   // screen coordinates
     );
示例#6
0
 public static extern bool UpdateLayeredWindow(
     IntPtr hwnd,
     IntPtr hdcDst,
     ref POINT pptDst,
     ref SIZE psize,
     IntPtr hdcSrc,
     ref POINT pptSrc,
     uint crKey,
     ref BLENDFUNCTION pblend,
     uint dwFlags);
 public virtual int ShowHelp(IntPtr hwnd, string lpstrHelpFile, uint uCommand, uint dwData, POINT ptMouse, IntPtr pDispatchObjectHit)
 {
     // return HRESULT.S_FALSE to allow default processing
     return HRESULT.S_FALSE;
 }
 /// <summary>
 /// IHTMLPainter.HitTestPoint -- Called by MSHTML to retrieve a value that specifies
 /// whether a point is contained in a rendering behavior
 /// </summary>
 /// <param name="pt">POINT structure that specifies the point clicked relative to the
 /// top-left corner of the element to which the behavior is attached</param>
 /// <param name="pbHit">Pointer to a variable of type BOOL that receives TRUE if the
 /// point is contained in the element to which the rendering behavior is attached, or
 /// FALSE otherwise</param>
 /// <param name="plPartID">Pointer to a variable of type LONG that receives a number
 /// identifying which part of the behavior has been hit</param>
 /// <returns></returns>
 public virtual int HitTestPoint(POINT pt, ref bool pbHit, ref int plPartID)
 {
     plPartID = 0;
     pbHit = false;
     return HRESULT.S_OK;
 }
 public virtual int ShowContextMenu(int dwID, ref POINT ppt, object pcmdtReserved, object pdispReserved)
 {
     // Host did not display any UI. MSHTML will display its UI.
     return HRESULT.S_FALSE;
 }