systabcontrol32

        private  void SelectTab()
        {
            IntPtr hand1 = FindWindowA(null, "EPSON R330 Series 打印首选项");
            if (hand1 != IntPtr.Zero)
            {
                IntPtr hwnd11 = FindWindowEx(hand1, 0, "SysTabControl32", null);  //
                int GW_CHILD = 5;
                int TCM_FIRST = 0x1300;
                uint TCM_SETCURSEL = Convert.ToUInt32(TCM_FIRST + 12);
                uint TCM_GETCURSEL = Convert.ToUInt32(TCM_FIRST + 11);
                UInt32 TCM_GETCURFOCUS = Convert.ToUInt32(TCM_FIRST + 47);
                UInt32 TCM_SETCURFOCUS = Convert.ToUInt32(TCM_FIRST + 48);
                int sss = SendMessage(hwnd11, TCM_SETCURFOCUS, 4, 0);
                int ssss = SendMessage(hwnd11, TCM_GETCURFOCUS, 4, 0);
                IntPtr hwnd111 = FindWindowEx(hand1, 0, null, "维护");  //
                int controlId = 0xf43;
                IntPtr EdithWnd = GetDlgItem(hwnd111, controlId);
                int re = SendMessage(EdithWnd, 0xf5, 0, 0);
            }
        }
时间: 2024-12-23 04:53:24

systabcontrol32的相关文章

MFC窗口风格 WS_style/WS_EX_style(超详细)

窗口风格(Window style) WS_BORDER   有边框窗口 WS_CAPTION   必须和WS_BORDER风格配合,但不能与WS_DLGFRAME风格一起使用.指示窗口包含标题要部分. WS_CHILD   说明窗口为子窗口,不能应用于弹出式窗口风格(WS_POPUP). WS_CHILDWINDOW   同WS_CHILD. WS_CLIPCHILDREN   绘制父窗口时,不绘制子窗口的裁剪区域.使用在建立父窗口时. WS_CLIPSIBLINGS 剪裁相关的子窗口,这意味

MFC窗口风格 WS_style/WS_EX_style

窗口风格(Window style) WS_BORDER   有边框窗口 WS_CAPTION   必须和WS_BORDER风格配合,但不能与WS_DLGFRAME风格一起使用.指示窗口包含标题要部分. WS_CHILD   说明窗口为子窗口,不能应用于弹出式窗口风格(WS_POPUP). WS_CHILDWINDOW   同WS_CHILD. WS_CLIPCHILDREN   绘制父窗口时,不绘制子窗口的裁剪区域.使用在建立父窗口时. WS_CLIPSIBLINGS 剪裁相关的子窗口,这意味