Example #1
0
        private String GetWindowText(IntPtr hWnd, int len)
        {
            STRINGBUFFER sb;

            Win32API.GetWindowText(hWnd, out sb, len);

            return(sb.szText);
        }
Example #2
0
        private String GetDlgItemText(IntPtr hWnd, int dlgId)
        {
            IntPtr       h = Win32API.GetDlgItem(hWnd, dlgId);
            STRINGBUFFER sb;

            Win32API.GetWindowText(hWnd, out sb, 100);

            return(sb.szText);
        }