Exemple #1
0
        /// <summary>
        /// 设置与此控件关联的文本。
        /// </summary>
        /// <param name="hWnd">控件句柄。</param>
        /// <param name="value">与该控件关联的文本。</param>
        public static void SetText(IntPtr hWnd, string value)
        {
            if (GetIsHandleCreated(hWnd))
            {
                return;
            }

            UnsafeNativeMethods.SetWindowText(hWnd, value);
        }