728x90
반응형
728x170
using System;
using System.Drawing;
using System.Runtime.InteropServices;
#region 클라이언트 좌표에서 화면 좌표 구하기 - ClientToScreen(windowHandle, screenPoint)
/// <summary>
/// 클라이언트 좌표에서 화면 좌표 구하기
/// </summary>
/// <param name="windowHandle">윈도우 핸들</param>
/// <param name="screenPoint">화면 좌표계 포인트</param>
/// <returns>처리 결과</returns>
[DllImport("user32")]
private static extern bool ClientToScreen(IntPtr windowHandle, ref Point screenPoint);
#endregion
728x90
반응형
그리드형(광고전용)
'C# > WIN32' 카테고리의 다른 글
[C#/WIN32] GetDC API 함수 선언하기 (0) | 2022.01.16 |
---|---|
[C#/WIN32] HideCaret API 함수 선언하기 (0) | 2022.01.16 |
[C#/WIN32] SetParent API 함수 선언하기 (0) | 2021.12.31 |
[C#/WIN32] ReleaseCapture API 함수 선언하기 (0) | 2021.12.06 |
[C#/WIN32] SetCapture API 함수 선언하기 (0) | 2021.12.06 |
[C#/WIN32] ClientToScreen API 함수 선언하기 (0) | 2021.12.05 |
[C#/WIN32] DeleteDC API 함수 선언하기 (0) | 2021.12.05 |
[C#/WIN32] CreateDC API 함수 선언하기 (0) | 2021.12.05 |
[C#/WIN32] BitBlt API 함수 선언하기 (0) | 2021.12.05 |
[C#/WIN32] GetWindowDC API 함수 선언하기 (0) | 2021.10.05 |
[C#/WIN32] GetClientRect API 함수 선언하기 (0) | 2021.10.05 |
댓글을 달아 주세요