我只需要知道一旦打开“新消息”表单的主题字段如何设置焦点..这可以实现吗?!
非常感谢您的帮助。
The Outlook API exposes methods for retrieving the current inspector, explorer or either or. I believe you'll get back a number (HWND) which is a window handle.
You can then use the Win32 API to find that window, and then find a child window
You'll need to [DllImport]
the user32.dll
I leave it up to you to implement, and if you need help there are plenty of examples out there on how do use the win32 api to perform the tasks outlined above.
宣布:
private Microsoft.Vbe.Interop.Forms.Control txtToCtrl;
初始化:
this.txtToCtrl = (Microsoft.Vbe.Interop.Forms.Control)GetFormRegionControl("_RecipientControl1");
准备就绪时:
this.txtToCtrl.SetFocus();