现在的位置: 首页 > 综合 > 正文

CE编程的一些技巧性

2013年08月13日 ⁄ 综合 ⁄ 共 319字 ⁄ 字号 评论关闭

1
#if defined(WIN32_PLATFORM_PSPC)
 // If Pocket PC, allow only one instance of the application.
 HWND hWnd = FindWindow (szAppName, NULL);
 if (hWnd) {
  SetForegroundWindow ((HWND)(((DWORD)hWnd) | 0x01));   
  return 0;
 }
#endif

2
如果,你想在程序里直接调用系统提供的“软键盘”,。可以这样做。

*************************************
#include  "Sipapi.h"

//打开键盘
SipShowIM(SIPF_ON);

就可以了。

抱歉!评论已关闭.