예제 #1
0
        /// <summary>
        /// ドロップシャドウ用のウィンドウを判定して、取り除いて返す
        /// </summary>
        /// <param name="rList">RECTのリスト</param>
        /// <returns></returns>
        private static List <API.RECT> DeleteShadowAPI_RECT(List <API.RECT> rList)
        {
            List <API.RECT> result = new();

            result.Add(rList[0]);
            API.RECT preRECT = rList[0];
            for (int i = 1; i < rList.Count; i++)
            {
                //前後のRectのleftとtopが同じならドロップシャドウと判定して
                //リストには加えない
                API.RECT imaRECT = rList[i];
                if (imaRECT.left != preRECT.left || imaRECT.top != preRECT.top)
                {
                    result.Add(rList[i]);
                }
                preRECT = imaRECT;
            }
            return(result);
        }
예제 #2
0
 private Rect MyConverterApiRectToRect(API.RECT rect)
 {
     return(new Rect(rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top));
 }