如何控制Contacts
在Smartphone中,进入Contacts中后,通过上下键在点亮相应的人名后,按Action键后,就可以显示这个人的详细信息,如:电话,办公地址,手机号,E-mail地址,但是在程序中如何切换到这个界面。
For example, our application implements a contacts navigator function. If user says a name and our application recognizes the result, the program needs directly display the detail property, like that user selects Contacts in home or Programs menu, chooses the name, and presses action key. The same problem appears in Task, Calendar, Inbox, etc.
From Section 'Pocket Outlook Object Model (POOM) API' of smartphone 2002, POOM API defines all Display interface methods, but not implemented, same as smartphone 2003.
So, currently, our primary problem of UI is what's the interface that directly displays the detail information about respective item.
当前我的实现办法是,通过FindWindow查找Contacts窗口,没有Contacts,就通过CreateProcess激活,否则,BringWindowToTop,
由于它是一个ListView控件,查找每个Item,直到找到相应的Item,SendMessage个KeyDown消息,这个过程是一串KeyDown消息构成,效率太低。
而且由于Win32的管理机制,我的程序和Contacts程序不再同一个地址空间,无法获得进一步的控制,微软也不打算公布Contacts的源代码,即使OEM厂商。
所以不知道那位大虾有这方面的资讯,在此,先感谢了