487 delete[] m_touchKbrdExeFilePath;
488 m_touchKbrdExeFilePath = NULL;
489 }
490
491 if (commonFilesDirPath != NULL) {
492 delete[] commonFilesDirPath;
493 }
494 }
495
496 if (tabTipFilePath != NULL) {
497 delete[] tabTipFilePath;
498 }
499 if (hTabTipCoKey != NULL) {
500 ::RegCloseKey(hTabTipCoKey);
501 }
502 }
503
504 HWND AwtToolkit::GetTouchKeyboardWindow() {
505 const TCHAR wndClassName[] = _T("IPTip_Main_Window");
506 HWND hwnd = ::FindWindow(wndClassName, NULL);
507 if ((hwnd != NULL) && ::IsWindow(hwnd) && ::IsWindowEnabled(hwnd) &&
508 ::IsWindowVisible(hwnd)) {
509 return hwnd;
510 }
511 return NULL;
512 }
513
514
515 struct ToolkitThreadProc_Data {
516 bool result;
517 HANDLE hCompleted;
518
519 jobject thread;
520 jobject threadGroup;
521 };
522
523 void ToolkitThreadProc(void *param)
524 {
525 ToolkitThreadProc_Data *data = (ToolkitThreadProc_Data *)param;
526
527 bool bNotified = false;
528
|
487 delete[] m_touchKbrdExeFilePath;
488 m_touchKbrdExeFilePath = NULL;
489 }
490
491 if (commonFilesDirPath != NULL) {
492 delete[] commonFilesDirPath;
493 }
494 }
495
496 if (tabTipFilePath != NULL) {
497 delete[] tabTipFilePath;
498 }
499 if (hTabTipCoKey != NULL) {
500 ::RegCloseKey(hTabTipCoKey);
501 }
502 }
503
504 HWND AwtToolkit::GetTouchKeyboardWindow() {
505 const TCHAR wndClassName[] = _T("IPTip_Main_Window");
506 HWND hwnd = ::FindWindow(wndClassName, NULL);
507 if ((hwnd != NULL) && ::IsWindow(hwnd) && ::IsWindowEnabled(hwnd)) {
508 return hwnd;
509 }
510 return NULL;
511 }
512
513
514 struct ToolkitThreadProc_Data {
515 bool result;
516 HANDLE hCompleted;
517
518 jobject thread;
519 jobject threadGroup;
520 };
521
522 void ToolkitThreadProc(void *param)
523 {
524 ToolkitThreadProc_Data *data = (ToolkitThreadProc_Data *)param;
525
526 bool bNotified = false;
527
|