96 |
LONG styles; |
LONG styles; |
97 |
int state; |
int state; |
98 |
HWND parent; |
HWND parent; |
99 |
|
DWORD pid; |
100 |
|
int flags; |
101 |
|
|
102 |
styles = GetWindowLong(hwnd, GWL_STYLE); |
styles = GetWindowLong(hwnd, GWL_STYLE); |
103 |
|
|
109 |
else |
else |
110 |
parent = NULL; |
parent = NULL; |
111 |
|
|
112 |
vchannel_write("CREATE", "0x%p,0x%p,0x%x", hwnd, parent, 0); |
GetWindowThreadProcessId(hwnd, &pid); |
113 |
|
|
114 |
|
flags = 0; |
115 |
|
if (styles & DS_MODALFRAME) |
116 |
|
flags |= SEAMLESS_CREATE_MODAL; |
117 |
|
|
118 |
|
vchannel_write("CREATE", "0x%08lx,0x%08lx,0x%08lx,0x%08x", (long) hwnd, (long) pid, |
119 |
|
(long) parent, flags); |
120 |
|
|
121 |
if (!GetWindowRect(hwnd, &rect)) |
if (!GetWindowRect(hwnd, &rect)) |
122 |
{ |
{ |