高惠杰合作伙伴技術(shù)支工程師合作伙伴支持部微軟全球技術(shù)支_第1頁(yè)
高惠杰合作伙伴技術(shù)支工程師合作伙伴支持部微軟全球技術(shù)支_第2頁(yè)
高惠杰合作伙伴技術(shù)支工程師合作伙伴支持部微軟全球技術(shù)支_第3頁(yè)
高惠杰合作伙伴技術(shù)支工程師合作伙伴支持部微軟全球技術(shù)支_第4頁(yè)
已閱讀5頁(yè),還剩52頁(yè)未讀 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說(shuō)明:本文檔由用戶(hù)提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

1、高惠杰合作伙伴技術(shù)支工程師合作伙伴支持部微軟全球技術(shù)支持中心 大中華區(qū)Windows Mobile原生代碼開(kāi)發(fā)的新功能我們將會(huì)討論的新功能Softkeys - 軟鍵State and Notification Broker - 狀態(tài)提醒Sound - 聲音設(shè)置Imaging - 圖像操作POOM - Pocket Outlook 對(duì)象模型GPS 全球定位系統(tǒng)Messaging 消息應(yīng)用程序ActiveSync 同步控制Picture Picker 圖像選擇器Contact Picker 聯(lián)系人選擇器ExitWindowsEx 重新啟動(dòng)QueryPolicy 安全策略查詢(xún)GetDeviceUni

2、queID 得到設(shè)備標(biāo)識(shí)我們不會(huì)討論的新功能DirectDraw / Direct3D請(qǐng)參見(jiàn)用 DirectX 開(kāi)發(fā) Windows Mobile 游戲Windows Media Player請(qǐng)參見(jiàn)Windows CE 5.0 的多媒體技術(shù)SQL Server CE / SQL Server Mobile請(qǐng)參見(jiàn)SQL CE 的演進(jìn) - SQL Server 2005 移動(dòng)版托管應(yīng)用程序開(kāi)發(fā)請(qǐng)參見(jiàn)Windows Mobile 5.0 中新的托管代碼API以及控件 Visual Studio 2005, MFC, ATL請(qǐng)參見(jiàn)在VS .NET 2005 中移動(dòng)智能設(shè)備開(kāi)發(fā) Pocket PC So

3、ftKeys - 軟鍵SHCreateMenuBar原有的 Command BarsIDR_MYAPP_CMDBAR RCDATABEGIN IDR_MAIN_MENU, 2, I_IMAGENONE, IDM_DRAW, TBSTATE_ENABLED, TBSTYLE_BUTTON | TBSTYLE_AUTOSIZE, IDS_DRAW, 0, NOMENU, I_IMAGENONE, 0, TBSTATE_ENABLED, TBSTYLE_DROPDOWN | TBSTYLE_AUTOSIZE, IDS_MENU, 0, 0,END原有的 Command BarsIDR_MYAPP_C

4、MDBAR RCDATABEGIN IDR_MAIN_MENU, 2, I_IMAGENONE, IDM_DRAW, TBSTATE_ENABLED, TBSTYLE_BUTTON | TBSTYLE_AUTOSIZE, IDS_DRAW, 0, NOMENU, I_IMAGENONE, 0, TBSTATE_ENABLED, TBSTYLE_DROPDOWN | TBSTYLE_AUTOSIZE, IDS_MENU, 0, 0,ENDXSoftkeys 軟鍵SHCMBF_HMENUcbi.dwFlags = SHCMBF_HMENU;cbi.nToolBarId = IDM_MYMENU;S

5、HCreateMenuBar(&cbi);Visual StudioIDR_MYAPP_CMDBAR RCDATABEGIN IDR_MAIN_MENU, 2, I_IMAGENONE, IDM_DRAW, TBSTATE_ENABLED, TBSTYLE_BUTTON | TBSTYLE_AUTOSIZE, IDS_DRAW, 0, NOMENU, I_IMAGENONE, 0, TBSTATE_ENABLED, TBSTYLE_DROPDOWN | TBSTYLE_AUTOSIZE, IDS_MENU, 0, 0,ENDVisual Studio啟用/禁用軟鍵SHEnableSoftkey

6、(HWND hwndMenuBar, UINT uid, / command id or index BOOL bByIndex, BOOL bEnable);SDK中的例子: ShellApiDemoSoftKey 演示程序State And Notification Broker - 狀態(tài)提醒通過(guò)統(tǒng)一的方式來(lái)提供設(shè)備狀態(tài)的提醒功能典型的提醒功能電話未接來(lái)點(diǎn)電話狀態(tài) 來(lái)電顯示信息網(wǎng)絡(luò)連接狀況WiFi, GPRS, 調(diào)制解調(diào)器,通過(guò)桌面電腦日程表當(dāng)前的約會(huì)即將到來(lái)的約會(huì)典型的提醒功能通信提醒未閱讀的E-mail、短消息數(shù)量其他提醒顯示方向(橫向、縱向)放入同步架中可以由ISV自定義擴(kuò)展SnAp

7、i.h中的各種狀態(tài)ActiveApplicationDisplayRotationKeyboardPresentCradlePresentCameraPresentMessagingSmsUnreadMessagingMmsUnreadMessagingVoiceMailTotalUnreadMessagingVoiceMail1UnreadMessagingVoiceMail2UnreadMessagingActiveSyncEmailUnreadMessagingTotalEmailUnreadMessagingOtherEmailUnreadMessagingLastEmailAccou

8、ntNameMessagingSmsAccountNameMessagingMmsAccountNameMessagingActiveSyncAccountNameTasksActiveTasksHighPriorityTasksDueTodayTasksOverdueCalendarNextAppointmentSubjectCalendarNextAppointmentLocationCalendarNextAppointmentStartCalendarNextAppointmentEndMediaPlayerAlbumArtistMediaPlayerTrackBitrateMedia

9、PlayerTrackTitleMediaPlayerAlbumTitleMediaPlayerTrackArtistMediaPlayerTrackNumberMediaPlayerTrackGenreMediaPlayerTrackTimeElapsedPowerBatteryStrengthPowerBatteryStatePowerBatteryBackupStrengthPowerBatteryBackupStateTimeDatePhoneSignalStrengthPhoneOperatorNamePhoneTalkingCallerNamePhoneActiveCallCoun

10、tPhoneProfileNamePhoneProfilePhoneCellBroadcastCalendarNextAppointmentHasConflictOwnerNameOwnerPhoneNumberOwnerEmailOwnerNotesActiveSyncStatusPhoneMissedCallsHeadsetPresentCarKitPresentSpeakerPhoneActivePhoneMultiLinePhoneSimFullPhoneNoSimPhoneInvalidSimPhoneBlockedSimPhoneRadioOffPhoneRadioPresentP

11、honeRingerOffPhoneLine1SelectedPhoneLine2SelectedPhoneRoamingPhoneCallForwardingOnLine1PhoneMissedCallPhoneActiveDataCallPhoneCallBarringPhoneCallOnHoldPhoneConferenceCallPhoneIncomingCallPhoneCallCallingPhoneGprsCoveragePhoneNoServicePhoneSearchingForServicePhoneHomeServicePhone1xRttCoveragePhoneCa

12、llTalkingPhoneCallForwardingOnLine2CalendarNextAppointmentCalendarNextAppointmentBusyStatusCalendarNextAppointmentCategoriesCalendarAppointmentCalendarAppointmentSubjectCalendarAppointmentLocationCalendarAppointmentStartTimeCalendarAppointmentEndTimeCalendarAppointmentHasConflictCalendarAppointmentB

13、usyStatusCalendarAppointmentCategoriesCalendarHomeScreenAppointmentCalendarHomeScreenAppointmentSubjectCalendarHomeScreenAppointmentLocationCalendarHomeScreenAppointmentStartTimeCalendarHomeScreenAppointmentEndTimeCalendarHomeScreenAppointmentHasConflictCalendarHomeScreenAppointmentBusyStatusCalenda

14、rHomeScreenAppointmentCategoriesPhoneIncomingCallerNamePhoneLastIncomingCallerNamePhoneIncomingCallerNumberPhoneLastIncomingCallerNumberPhoneIncomingCallerContactPropertyNamePhoneLastIncomingCallerContactPropertyNamePhoneIncomingCallerContactPropertyIDPhoneLastIncomingCallerContactPropertyIDPhoneInc

15、omingCallerContactPhoneLastIncomingCallerContactPhoneTalkingCallerNumberPhoneTalkingCallerContactPropertyNamePhoneTalkingCallerContactPropertyIDPhoneTalkingCallerContactConnectionsCountConnectionsBluetoothCountConnectionsBluetoothDescriptionsConnectionsCellularCountConnectionsCellularDescriptionsCon

16、nectionsNetworkCountConnectionsNetworkDescriptionsConnectionsNetworkAdaptersConnectionsDesktopCountConnectionsDesktopDescriptionsConnectionsProxyCountConnectionsProxyDescriptionsConnectionsModemCountConnectionsModemDescriptionsConnectionsUnknownCountConnectionsUnknownDescriptionsConnectionsVpnCountC

17、onnectionsVpnDescriptionsCalendarEventCalendarEventSubjectCalendarEventLocationCalendarEventStartTimeCalendarEventEndTimeCalendarEventHasConflictCalendarEventBusyStatusCalendarEventCategories如何與Broker進(jìn)行交流注冊(cè)表標(biāo)準(zhǔn)的Win32 注冊(cè)表APIRegistryGetDWORD()RegistrySetDWORD()RegistrySetString()RegistryGetString()SDK中

18、的例子: SyncManagerTransient Notifications瞬時(shí)提醒僅當(dāng)應(yīng)用程序運(yùn)行時(shí)產(chǎn)生提醒提醒方式Window Message 窗口消息CE Message Queue CE消息隊(duì)列Callback 函數(shù)回調(diào)Transient Notifications瞬時(shí)提醒#include #include / 設(shè)置提醒句柄HREGNOTIFY hNotify = NULL;RegistryNotifyWindow(SN_PHONESIGNALSTRENGTH_ROOT, SN_PHONESIGNALSTRENGTH_PATH, SN_PHONESIGNALSTRENGTH_VALU

19、E, hWnd, WM_MY_WINDOW_MESSAGE, dwUserDefinedValue, NULL, &hNotify); Conditional Notifications條件提醒DWORD 條件運(yùn)算符=, !=, , =, , , =, , =, contains, starts with, ends with對(duì)于二進(jìn)制數(shù)據(jù)不提供條件提醒樣例: Signal CreateImageFromFile( Lflower.jpg, &pImage) pImage-Draw(hdc, &rc, NULL); pImage-Release(); pImgFactory-Release()

20、;SDK中的例子: Imaging圖像操作POOMPocket Outlook對(duì)象模型Custom Properties自定義屬性Bulk Properties 同時(shí)處理大量屬性NotificationsCategory listPOOM 自定義屬性static const WCHAR * rgszPropNames = LHealthInsuranceProvider, LBloodType, LBloodPressure, LAllergies;CEPROPID rgPropIDs4 = 0;polApp-GetIDsFromNames (4, rgszPropNames, PIM_CRE

21、ATE | CEVT_LPWSTR, rgPropIDs);SDK中的例子: MedicalHistoryPOOM 同時(shí)處理大量屬性CEPROPID rgPropIDs4 ;CEPROPVAL *pVals = NULL;pItem-GetProps(rgPropIDs, CEDB_ALLOWREALLOC, 4, &pVals, &cbBuffer, heap);SDK中的例子: MedicalHistoryPOOM 狀態(tài)提醒如何注冊(cè)pid = PIMPR_FOLDERNOTIFICATIONS;propval.val.ulVal = PIMFOLDERNOTIFICATION_LOCAL

22、| PIMFOLDERNOTIFICATION_REMOTE;pItemFolder-SetProps(0, 1, &propval);SDK中的例子: CalendarView如何注冊(cè)SDK中的例子: CalendarViewPOOM 狀態(tài)提醒IPOutlookApp2 *polApp;polApp-Logon(long)hWnd)LRESULT CALLBACK WndProc() switch (msg) case PIM_ITEM_CREATED_LOCAL:case PIM_ITEM_DELETED_LOCAL: case PIM_ITEM_CHANGED_LOCAL: case P

23、IM_ITEM_CREATED_REMOTE: case PIM_ITEM_DELETED_REMOTE: case PIM_ITEM_CHANGED_REMOTE:oid = wParam;olFolder = lParam;聯(lián)系人自定義屬性GPS 全球定位系統(tǒng)GpsApi.h核心函數(shù)調(diào)用:GPSOpenDevice()GPSCloseDevice()GPSGetPosition()GPSGetDeviceState()GPS 全球定位系統(tǒng)#include HANDLE h;GPS_POSITION pos;h = GPSOpenDevice (heventNewPos, heventDev

24、iceStateChange, NULL, 0);GPSGetPosition(h, &pos, 60000, 0);/ 得到 pos.dblLongitude, pos.dblLatitudeMessaging Application消息應(yīng)用程序控制用戶(hù)界面MailComposeMessageMailDisplayMessageMailSwitchToFolderMailSwitchToAccountMailSyncMessagesCeMapi.hActiveSync - 同步控制ActiveSyncStart()ActiveSyncStop()State and Notification

25、Broker: HKLMSystemStateActiveSyncSynchronizingNone = 0Synchronizing = 1Error = 2SDK中的例子: SyncManagerPicture Picker 圖像選擇器同時(shí)也支持視頻Picture Picker 圖像選擇器OPENFILENAMEEX ofnex = 0;ofnex.lStructSize = sizeof(ofnex);ofnex.ExFlags = OFN_EXFLAG_THUMBNAILVIEW; ofnex.lpstrFile = new TCHAR MAX_PATH;ofnex.nMaxFile

26、= MAX_PATH;GetOpenFileNameEx(&ofnex);SDK中的例子: AddContactPicturePicture Picker 圖像選擇器通過(guò)攝像頭拍攝通過(guò)攝像頭拍攝typedef struct DWORD cbSize; HWND hwndOwner; TCHAR szFileMAX_PATH; LPCTSTR pszInitialDir; LPCTSTR pszDefaultFileName; LPCTSTR pszTitle; CAMERACAPTURE_STILLQUALITY StillQuality; CAMERACAPTURE_VIDEOTYPES V

27、ideoTypes; DWORD nResolutionWidth; DWORD nResolutionHeight; DWORD nVideoTimeLimit; CAMERACAPTURE_MODE Mode; SHCAMERACAPTURE;HRESULT SHCameraCapture (PSHCAMERACAPTURE *pshcc);SDK Sample: CECameraContact Picker 聯(lián)系人選擇器Contact Picker 聯(lián)系人選擇器IPOutlookApp2 pApp;IItem *pItem;CHOOSECONTACT cc = 0; cc.cbSize = sizeof (cc);cc.dwFlags = CCF_CHOOSECONTACTONLY;cc.hwndOwner = NULL;ChooseContact (&cc); pA

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶(hù)所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶(hù)上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶(hù)上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶(hù)因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論