| 199 | } |
| 200 | |
| 201 | void InterProcessCommunicator::sendInsertText(const QString & text) |
| 202 | { |
| 203 | HWND hWnd = InterProcessCommunicatorPrivate::findMessageWindow(); |
| 204 | if (hWnd == NULL) { |
| 205 | return; |
| 206 | } |
| 207 | |
| 208 | QByteArray ba = text.toUtf8(); |
| 209 | COPYDATASTRUCT cds; |
| 210 | cds.dwData = TW_INSERT_TEXT_MSG; |
| 211 | cds.cbData = ba.length(); |
| 212 | cds.lpData = ba.data(); |
| 213 | SendMessageA(hWnd, WM_COPYDATA, 0, reinterpret_cast<LPARAM>(&cds)); |
| 214 | } |
| 215 | |
| 216 | } // namespace Tw |
no test coverage detected