首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > Windows Mobile >

100分求怎么才能调用新建联系人界面

2012-01-19 
100分求如何才能调用新建联系人界面我的程序中要求添加新的联系人,所以想调用系统新建联系人界面,有熟悉的

100分求如何才能调用新建联系人界面
我的程序中要求添加新的联系人,所以想调用系统新建联系人界面,有熟悉的给点建议.

[解决办法]
HRESULT ContactsNewContact();
[解决办法]
ContactsNewContact
Windows Mobile
Windows Embedded CE -
4/9/2007

The ContactsNewContact function launches the Outlook Mobile Contacts application—directly into the Compose Form for a new Contact item.

Syntax

Copy Code
HRESULT ContactsNewContact();
Remarks

This function is one of two, that increases the Home Screen/Today Screen extensibility options available to OEMs and Mobile Operators. The other function is CalendarNewAppointment. Both functions significantly decrease the difficulty associated with creating custom Home Screen and Today Screen plug-ins that enable programmatic navigation of the Outlook Mobile, Messaging, and Phone applications.

The ContactsNewContact function allows a plug-in or application to programmatically launch the Contacts application into its Compose Form to allow users to create a new Contact item—all without having to simulate keystrokes.

This behavior is the same as if the User started entering information for a new Contact item into the Contact Compose Form, navigated away to either the Home Screen or the Today Screen, and then returned to the Contacts application.

The Compose Form is displayed as if the User tapped New (Soft Key 1) from the Contacts List View.

If the Contacts application Compose Form or another dialog box is already being displayed when ContactsNewContact is called, then that window 's contents must be saved, and the window dismissed—then ContactsNewContact is called.

Return Value

This function returns the following:

S_OK
The function completed successfully.

E_FAIL
The function call failed.

Requirements

Header appnav.h
Library aygshell.lib
Windows Mobile Pocket PC for Windows Mobile Version 5.0 and laterSmartphone for Windows Mobile Version 5.0 and later

请参阅 VS2005 中有关 POOM 的资料了解如何使用 POOM 以及这个函数。
[解决办法]
先调出联系人界面,然后发送一个新建的按键消息不行么!
自己画空间那不是一般的麻烦
[解决办法]
我问了下别人
应该用
hr = pItem-> Edit( NULL );
方法能达到你的要求!
你去msdn查下用法!
我等下也写个程序验证下
[解决办法]
AKU和sdk是分別針對不同的開發著的
應該微軟的官方有下
如果僅僅是做poom相關,裝個sdk就可以了!
ContactsNewContact這個函數用上面的頭文件申明下就可以用
[解决办法]
使用IItem::Edit,也见你的另一个帖子的回复。偶以前写过WM5下的,如需代码请说明。

热点排行