MCPcopy Create free account
hub / github.com/ChiyukiGana/Quickinput / LockThread

Method LockThread

source/src/macro.h:175–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173{
174 inline static HANDLE thread;
175 static DWORD _stdcall LockThread(PVOID wnd)
176 {
177 while (IsWindowVisible((HWND)wnd)) {
178 RECT rect = Window::rect((HWND)wnd);
179 ClipCursor(&rect);
180 Sleep(10);
181 }
182 thread = 0;
183 return 0;
184 }
185 static void Lock(HWND wnd)
186 {
187 UnLock();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected