분류 전체보기

    GetWindowText - 특정 Window의 제목 문자열 확인

    GetWindowText함수는 지정한 Window의 제목을 반환하는 함수입니다. Declare Function GetWindowText Lib "user32" Alias "GetWindowTextA" (ByVal hwnd As Integer, ByVal lpString As String, ByVal cch As Integer) As Integer ▶VB.NET 선언 [DllImport("user32")] public static extern int GetWindowText(int hwnd, StringBuilder lpString, int cch); ▶C# 선언 GetWindowText함수의 첫번째 인수는 제목을 확인하고자 하는 Window의 Handle을 기술하고 두번째 인수에서 실제 제목을 저장할 변..

    ShowWindow - Window Vision설정및 상태조정

    ShowWindow함수는 특정 Window를 숨기거나 보이게 하고 최소화, 최대화등의 상태를 변경하도록 하는 함수입니다. Declare Function ShowWindow Lib "user32" Alias "ShowWindow" (ByVal hwnd As Integer, ByVal nCmdShow As Integer) As Integer ▶VB.NET 선언 [DllImport("user32")] public static extern int ShowWindow(int hwnd, int nCmdShow); ▶C# 선언 ShowWindow함수의 첫번째 인수는 대상이 될 Window의 Handle을 지정하고 두번째 인수는 해당 Window를 어떠한 형태로 보이거나 숨길것인지를 지정하도록 합니다. 두번째 인수에서..

    GetParent - 자식 Window에 대한 부모 Window찾기

    GetParent함수는 지정된 자식 Window에서 부모 Window의 Handle을 찾아 반환합니다. Declare Function GetParent Lib "user32" Alias "GetParent" (ByVal hwnd As Integer) As Integer ▶VB.NET 선언 [DllImport("user32")] public static extern int GetParent(int hwnd); ▶C# 선언 해당 함수의 인수로는 부모 Window의 Handle을 찾을 자식 Window Handle을 지정합니다. GetParent(handle) ▶VB.NET 호출 GetParent(handle); ▶C# 호출

    GetDiskFreeSpace - 지정한 Disk의 용량확인

    GetDiskFreeSpace함수는 원하는 Disk의 총용량과 사용량을 구하는 함수입니다. Declare Function GetDiskFreeSpace Lib "kernel32" Alias "GetDiskFreeSpaceA" (ByVal lpRootPathName As String, ByRef lpSectorsPerCluster As Integer, ByRef lpBytesPerSector As Integer, ByRef lpNumberOfFreeClusters As Integer, ByRef lpTotalNumberOfClusters As Integer) As Integer ▶VB.NET 선언 [DllImport("kernel32")] public static extern int GetDiskFreeS..

    MoveWindow - 지정한 Window의 위치및 크기 변환

    MoveWindow함수는 지정한 Window를 특정위치로 이동시킴과 동시에 크기를 조정하는 함수입니다. Declare Function MoveWindow Lib "user32" Alias "MoveWindow" (ByVal hwnd As Integer, ByVal x As Integer, ByVal y As Integer, ByVal nWidth As Integer, ByVal nHeight As Integer, ByVal bRepaint As Boolean) As Integer ▶VB.NET 선언 [DllImport("user32")] public static extern int MoveWindow(int hwnd, int x, int y, int nWidth, int nHeight, bool bRep..

    [HTML5/CSS3] HTML5의 활용

    [HTML5/CSS3] HTML5의 활용

    HTML5는 단순히 웹페이지의 작성을 넘어서 스마트폰에서의 앱이나 일반 PC에서의 데스크탑 애플리케이션을 개발하는데도 활용되고 있습니다. 물론 HTML5로 작성된 웹 페이지를 애플리케이션으로 전환하기 위해 몇몇 도구를 사용할 수 있는데 여기서는 2개정도를 간단히 알아보고자 합니다. 우선 PC용 애플리케이션의 변환을 위한 '일렉트론(Electron)'이라는 것이 있습니다. PC용 애플리케이션을 만드는데 사용되는 오픈소스프레임워크로, 2013년 GitHub가 아톰이라는 편집기를 개발하기 위해 만들었습니다. 마이크로소프트의 스카이프나 비주얼 스튜디오 코드라는 편집기 또한 일렉트론을 통해 개발되었습니다. PC용 애플리케이션 말고 모바일용 앱을 위한 것으로는 '리엑트 네이티브(React Native)'라는 것이 ..

    SetForegroundWindow - 작업 Window설정

    SetForegroundWindow함수는 지정한 Window를 최상위로 끌어올려 Window작업을 Foreground로 전환합니다. Declare Function SetForegroundWindow Lib "user32" Alias "SetForegroundWindow" (ByVal hwnd As Integer) As Integer - VB.NET 선언 [DllImport("user32")] public static extern int SetForegroundWindow(int hwnd); - C# 선언 SetForegroundWindow함수는 작업을 전환하고자 하는 Window의 Handle을 인수로 전달하여 호출합니다. SetForegroundWindow(Handle) - VB.NET 호출 SetFo..

    DrawEdge - 테두리 그리기

    DrawEdge은 Window에 4각형 모양의 테두리를 그리는 함수 입니다. Declare Function DrawEdge Lib "user32" Alias "DrawEdge" (ByVal hdc As Integer, ByRef qrc As RECT, ByVal edge As Integer, ByVal grfFlags As Integer) As Integer - VB.NET 선언 [DllImport("user32")] public static extern int DrawEdge(int hdc, ref RECT qrc, int edge, int grfFlags); - C# 선언 DrawEdge의 첫번째 인수는 테두리를 그릴 Window창이나 화면의 Device Context를 기술합니다. [Windows ..