|
对taskbar.cpp中关于软键盘的代码进行了屏蔽,并且在explorer.cpp代码中添加如下代码:
DWORD WINAPI CreateSip(LPVOID pEvent)
{
RETAILMSG(1,(L"012536\r\n"));
HANDLE hSyncEvent = *((HANDLE *) pEvent);
CSip *pSip = NULL;
CSip *g_Sip = NULL;
HWND hwndTB = NULL;
pSip = new CSip;
if(!pSip)
{
SetEvent(hSyncEvent);
return 0;
}
g_Sip = pSip;
if(!pSip->Register(g_hInstance))
{
g_Sip = NULL;
delete pSip;
SetEvent(hSyncEvent);
return 0;
}
//RegisterSip(pSip->GetWindow());
SetEvent(hSyncEvent);
DWORD dwRet = pSip->MessageLoop();
delete pSip;
RETAILMSG(1,(L"012568\r\n"));
return dwRet;
}
hSipSyncEvent = CreateEvent(NULL, FALSE, FALSE, NULL);
if (!hSipSyncEvent)
{
goto Cleanup;
}
hThread = CreateThread(NULL, NULL, CreateSip, &hSipSyncEvent, 0, NULL);
WaitForSingleObject(hSipSyncEvent, INFINITE);
// GetExitCodeThread(); // Test for failure?
CloseHandle(hThread);
CloseHandle(hSipSyncEvent);
但是添加以上代码之后编译出来的模拟器界面上没有出现我想要的软键盘的图标,并且在我屏蔽了taskbar.cpp中的软键盘的代码之后,编译出来的模拟器界面上还存在软键盘的图标,不知道是怎么回事?还望高手赐教!
|
|