분류 전체보기

    DestroyCaret - 생성된 모든 Caret의 삭제

    DestroyCaret 함수는 생성된 모든 Caret을 삭제합니다. Declare Function DestroyCaret Lib "user32" () As Integer ▶VB.NET 선언 DestroyCaret() ▶VB.NET 호출 [DllImport("user32.dll")] public static extern int DestroyCaret(); ▶C# 선언 DestroyCaret(); ▶C# 호출 생성된 Caret의 개별적인 삭제는 불가능 합니다. DestroyCaret함수를 호출하면 모든 Caret이 영향을 받습니다.

    LoadCursor - Windows Cursor Load

    LoadCursor함수는 원하는 시스템 Mouse Cursor를 Load하여 사용하도록 설정하는 함수입니다. Declare Function LoadCursor Lib "user32" Alias "LoadCursorA" (ByVal hInstance As Integer, ByVal lpCursorName As Integer) As Integer ▶VB.NET 선언 LoadCursor(instance, cursor) ▶VB.NET 호출 [DllImport("user32.dll")] public static extern int LoadCursor(int hInstance, int lpCursorName); ▶C# 선언 LoadCursor(instance, cursor) ▶C# 호출 LoadCursor함수를 사..

    GetKeyboardLayout - Keyboard배열및 언어확인

    GetKeyboardLayout함수는 특정 Thread에서 사용중인 Keyboard의 입력언어및 배열값을 확인합니다. Declare Function GetKeyboardLayout Lib "user32" Alias "GetKeyboardLayout" (ByVal dwLayout As Integer) As Integer ▶VB.NET 선언 GetKeyboardLayout(0) ▶VB.NET 호출 [System.Runtime.InteropServices.DllImport("user32.dll")] private static extern int GetKeyboardLayout(int dwLayout); ▶C# 선언 GetKeyboardLayout(0); ▶C# 호출 GetKeyboardLayout함수는 Thr..

    GetLocaleInfo - System의 국가별지역 정보

    GetLocaleInfo함수는 현재 Windows에 설정되어 있는 국가/지역에 대한 다양한 정보를 확인할 수 있는 함수입니다. Declare Function GetLocaleInfo Lib "kernel32" Alias "GetLocaleInfoA" (ByVal Locale As Integer, ByVal LCType As Integer, ByVal lpLCDate As String, ByVal cchData As Integer) As Integer ▶VB.NET 선언 Dim sbuff As String = Space(10) GetLocaleInfo(locale, type, sbuff, data) ▶VB.NET 호출 [DllImport("kernel32.dll")] public static extern ..

    AddFontResource - Font(글꼴) 추가하기

    AddFontResource함수는 현재 System에 지정된 Font(글꼴)를 추가시키는 함수입니다. Declare Function AddFontResource Lib "gdi32" Alias "AddFontResourceA" (ByVal lpFileName As String) As Integer ▶VB.NET 선언 [DllImport("gdi32")] public static extern int AddFontResource(string lpFileName); ▶C# 선언 AddFontResource(path) ▶VB.NET 호출 AddFontResource(path); ▶C# 호출 함수의 path인수에는 추가할 Font File을 지정합니다. 예를 들어 abc.TTF(true type) 라는 글꼴 Fi..

    GetTextFace - 현재 Windows화면의 글꼴 확인

    GetTextFace함수는 현재 Windows화면의 글꼴관한 정보를 반환합니다. Declare Function GetTextFace Lib "gdi32" Alias "GetTextFaceA" (ByVal hdc As Integer, ByVal nCount As Integer, ByVal lpFacename As String) As Integer ▶VB.NET 선언 [DllImport("gdi32")] public static extern int GetTextFace(int hdc, int nCount, StringBuilder lpStr); ▶C# 선언 GetTextFace함수의 첫번째 인수로는 현재 Windows화면의 Device Context를 지정해야 합니다. [Windows API for .NET..

    MoveToEx - 특정 시작점 이동

    MoveToEx함수는 그리기 위치의 시작점을 재설정하고 기존 위치값을 획득하는 함수입니다. Declare Function MoveToEx Lib "gdi32" Alias "MoveToEx" (ByVal hdc As Integer, ByVal x As Integer, ByVal y As Integer, ByRef lpPoint As POINTAPI) As Integer ▶VB.NET 선언 [DllImport("gdi32")] public static extern int MoveToEx(int hdc, int x, int y, ref POINTAPI lpPoint); ▶C# 선언 MoveToEx함수의 첫번째 인수는 시작점을 설정할 Device Context를 지정해야 합니다. [Windows API for ..

    Rectangle - 사각형 그리기

    Rectangle함수는 지정된 Device Context에 사각형 모양의 그림을 그립니다. Declare Function Rectangle Lib "gdi32" Alias "Rectangle" (ByVal hdc As Integer, ByVal x1 As Integer, ByVal y1 As Integer, ByVal x2 As Integer, ByVal y2 As Integer) As Integer ▶VB.NET 선언 [DllImport("gdi32")] public static extern int Rectangle(int hdc, int x1, int y1, int x2, int y2); ▶C# 선언 Rectangle의 첫번째 인수는 실제 사각형이 그려질 Object의 Device Context를 기..