MCPcopy Create free account
hub / github.com/TeXworks/texworks / sendBringToFront

Method sendBringToFront

src/InterProcessCommunicatorWin.cpp:169–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169void InterProcessCommunicator::sendBringToFront()
170{
171 HWND hWnd = InterProcessCommunicatorPrivate::findMessageWindow();
172 if (hWnd == NULL)
173 return;
174
175 DWORD processId;
176 if (GetWindowThreadProcessId(hWnd, &processId)) {
177 AllowSetForegroundWindow(processId);
178 }
179
180 COPYDATASTRUCT cds;
181 cds.dwData = TW_BRING_TO_FRONT_MSG;
182 cds.cbData = 0;
183 cds.lpData = NULL;
184 SendMessageA(hWnd, WM_COPYDATA, 0, reinterpret_cast<LPARAM>(&cds));
185}
186
187void InterProcessCommunicator::sendOpenFile(const QString & path, const int position)
188{

Callers 1

ensureSingleInstanceMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected