88 |
&& (rect.right == blocked.right) && (rect.bottom == blocked.bottom)) |
&& (rect.right == blocked.right) && (rect.bottom == blocked.bottom)) |
89 |
return; |
return; |
90 |
|
|
91 |
vchannel_write("POSITION,0x%p,%d,%d,%d,%d,0x%x", |
vchannel_write("POSITION", "0x%p,%d,%d,%d,%d,0x%x", |
92 |
hwnd, |
hwnd, |
93 |
rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top, 0); |
rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top, 0); |
94 |
} |
} |
120 |
if ((hwnd == block_hwnd) && (behind == block_behind)) |
if ((hwnd == block_hwnd) && (behind == block_behind)) |
121 |
return; |
return; |
122 |
|
|
123 |
vchannel_write("ZCHANGE,0x%p,0x%p,0x%x", hwnd, behind, 0); |
vchannel_write("ZCHANGE", "0x%p,0x%p,0x%x", hwnd, behind, 0); |
124 |
} |
} |
125 |
|
|
126 |
static LRESULT CALLBACK |
static LRESULT CALLBACK |
168 |
unsigned short title[150]; |
unsigned short title[150]; |
169 |
int state; |
int state; |
170 |
|
|
171 |
vchannel_write("CREATE,0x%p,0x%p,0x%x", hwnd, parent, 0); |
vchannel_write("CREATE", "0x%p,0x%p,0x%x", hwnd, parent, 0); |
172 |
|
|
173 |
GetWindowTextW(hwnd, title, sizeof(title) / sizeof(*title)); |
GetWindowTextW(hwnd, title, sizeof(title) / sizeof(*title)); |
174 |
|
|
175 |
vchannel_write("TITLE,0x%x,%s,0x%x", hwnd, |
vchannel_write("TITLE", "0x%x,%s,0x%x", hwnd, |
176 |
vchannel_strfilter_unicode(title), 0); |
vchannel_strfilter_unicode(title), 0); |
177 |
|
|
178 |
if (style & WS_MAXIMIZE) |
if (style & WS_MAXIMIZE) |
184 |
|
|
185 |
update_position(hwnd); |
update_position(hwnd); |
186 |
|
|
187 |
vchannel_write("STATE,0x%p,0x%x,0x%x", hwnd, state, 0); |
vchannel_write("STATE", "0x%p,0x%x,0x%x", hwnd, state, 0); |
188 |
} |
} |
189 |
|
|
190 |
if (wp->flags & SWP_HIDEWINDOW) |
if (wp->flags & SWP_HIDEWINDOW) |
191 |
vchannel_write("DESTROY,0x%p,0x%x", hwnd, 0); |
vchannel_write("DESTROY", "0x%p,0x%x", hwnd, 0); |
192 |
|
|
193 |
if (!(style & WS_VISIBLE) || (style & WS_MINIMIZE)) |
if (!(style & WS_VISIBLE) || (style & WS_MINIMIZE)) |
194 |
break; |
break; |
214 |
case WM_DESTROY: |
case WM_DESTROY: |
215 |
if (!(style & WS_VISIBLE)) |
if (!(style & WS_VISIBLE)) |
216 |
break; |
break; |
217 |
vchannel_write("DESTROY,0x%p,0x%x", hwnd, 0); |
vchannel_write("DESTROY", "0x%p,0x%x", hwnd, 0); |
218 |
break; |
break; |
219 |
|
|
220 |
default: |
default: |
283 |
/* We cannot use the string in lparam because |
/* We cannot use the string in lparam because |
284 |
we need unicode. */ |
we need unicode. */ |
285 |
GetWindowTextW(hwnd, title, sizeof(title) / sizeof(*title)); |
GetWindowTextW(hwnd, title, sizeof(title) / sizeof(*title)); |
286 |
vchannel_write("TITLE,0x%p,%s,0x%x", hwnd, |
vchannel_write("TITLE", "0x%p,%s,0x%x", hwnd, |
287 |
vchannel_strfilter_unicode(title), 0); |
vchannel_strfilter_unicode(title), 0); |
288 |
break; |
break; |
289 |
} |
} |
338 |
} |
} |
339 |
|
|
340 |
if ((blocked_hwnd != (HWND) wparam) || (blocked != state)) |
if ((blocked_hwnd != (HWND) wparam) || (blocked != state)) |
341 |
vchannel_write("STATE,0x%p,0x%x,0x%x", (HWND) wparam, state, |
vchannel_write("STATE", "0x%p,0x%x,0x%x", (HWND) wparam, |
342 |
0); |
state, 0); |
343 |
|
|
344 |
break; |
break; |
345 |
} |
} |