2019/07

    EnableWindow - Program(Window)및 특정 Control사용가능여부설정

    Declare Function EnableWindow Lib "user32" Alias "EnableWindow" (ByVal hwnd As Integer, ByVal fEnable As Boolean) As Integer - VB.NET 선언 EnableWindow(Me.Handle, False) 'Windows Form 제어 예제 EnableWindow(Button1.Handle, False) '특정 Control 제어 예제 - VB.NET 호출 [System.Runtime.InteropServices.DllImport("user32.dll")] private static extern int EnableWindow(int hwnd, bool fEnable); - C# 선언 EnableWindow((i..

    LoadCursorFromFile - 새로운 Mouse Cursor의 Load

    LoadCursorFromFile 함수는 Computer에 저장되어 있는 Mouse Cursor File(cur, ani)을 Load하는 함수입니다. Declare Function LoadCursorFromFile Lib "user32" Alias "LoadCursorFromFileA" (ByVal lpFileName As String) As Integer - VB.NET 선언 LoadCursorFromFile(path) - VB.NET 호출 [DllImport("user32.dll")] public static extern int LoadCursorFromFile(string lpFileName); - C# 선언 LoadCursorFromFile(path); - C# 호출 LoadCursorFromFi..

    가상 Key Code표

    Code(16진수) 상수명 Key 1 VK_LBUTTON mouse 왼쪽 button 2 VK_RBUTTON mouse 오른쪽 button 3 VK_CANCEL 취소와 상동 4 VK_MBUTTON mouse 가운데 button(scroll button) 5 VK_XBUTTON1 mouse 특수기능 button1 6 VK_XBUTTON2 mouse 특수기능 button2 8 VK_BACK 삭제 button(←) 9 VK_TAB TAB 0C VK_CLEAR Clear와 상동 0D VK_RETURN ENTER 10 VK_SHIFT SHIFT 11 VK_CONTROL CTRL 12 VK_MENU ALT 13 VK_PAUSE PAUSE BREAK 14 VK_CAPITAL CAPS LOCK 15 VK_KANA IM..

    GetCursorPos - Mouse Pointer의 현재위치 반환

    GetCursorPos함수는 현재 화면상에서 Mouse Pointer의 위치를 반환합니다. Declare Function GetCursorPos Lib "user32" Alias "GetCursorPos" (ByRef lpPoint As POINTAPI) As Integer - VB.NET 선언 Public Structure POINTAPI Public x As Integer Public y As Integer End Structure Dim pntapi As POINTAPI GetCursorPos(pntapi) pntapi.x pntapi.y - VB.NET 호출 [DllImport("user32.dll")] public static extern int GetCursorPos(ref POINTAPI l..

    LoadkeyboardLayout - Keyboard 배열 가져오기

    LoadKeyboardLayout함수는 함수가 호출된 현재 Process에 인수로 지정한 Keyboard Layout을 가져올 수 있도록 합니다. Declare Function LoadKeyboardLayout Lib "user32" Alias "LoadKeyboardLayoutA" (ByVal pwszKLID As String, ByVal flags As Integer) As Integer ▶VB.NET 선언 'flag 상수 Private Const KLF_ACTIVATE As Integer = &H1 Private Const KLF_NOTELLSHELL As Integer = &H80 Private Const KLF_REORDER As Integer = &H8 Private Const KLF_REPL..

    GetKeyboardLayoutName - Keyboard Layout 이름 반환

    GetKeyboardLayout 함수는 현재 함수가 실행되고 있거나 인수로 전달된 Thread에서 사용되고 있는 Keyboard Layout의 이름을 반환하지만 GetKeyboardLayoutName함수는 System에 기본적으로 설정되어 있는 Layout의 이름을 반환합니다. Declare Function GetKeyboardLayoutName Lib "user32" Alias "GetKeyboardLayoutNameA" (ByVal pwszKLID As String) As Integer VB.NET 선언 Dim kbln As String = Space(8) GetKeyboardLayoutName(kbln) VB.NET 호출 [System.Runtime.InteropServices.DllImport("..

    [HTML5/CSS3] 인터넷과 웹 그리고 웹 브라우저

    [HTML5/CSS3] 인터넷과 웹 그리고 웹 브라우저

    1. 인터넷 ​ 우선 인터넷은 전세계를 연결하는 국제통신망이며 웹은 그 통신망에서 돌아가는 하나의 서비스에 불과합니다. 인터넷과 웹을 혼동해서는 안됩니다. ​ 인터넷은 소련에서 인공위성을 발사하게 되자 위협을 느낀 미국이 새로운 기술개발을 목표로 하는 ARPA(Advanced Reserch Projects Agency)를 세우고 ARPA가 ARPANET을 개발하면서 시작합니다. ARPANET의 목표는 서로 떨어져 있는 컴퓨터를 연결하여 적의 공격으로 인한 손실에 대비해 중요한 데이터를 전송하고 저장시키는데 있었습니다. 처음에는 미국 국방성과 일부 대학교만을 연결했지만 시간이 지나면서 서로 연결되는 범위가 넓어지고 이로 인해 ARPANET은 민간용과 군사용(MILNET)으로 나뉘어 지게 됩니다. 여기서 민..