104 |
|
|
105 |
if (wp->flags & SWP_SHOWWINDOW) |
if (wp->flags & SWP_SHOWWINDOW) |
106 |
{ |
{ |
107 |
// FIXME: Now, just like create! |
char title[150]; |
108 |
debug("SWP_SHOWWINDOW for %p!", hwnd); |
int state; |
109 |
|
|
110 |
vchannel_write("CREATE,0x%p,0x%p,0x%x", hwnd, parent, 0); |
vchannel_write("CREATE,0x%p,0x%p,0x%x", hwnd, parent, 0); |
111 |
|
|
112 |
// FIXME: SETSTATE |
GetWindowText(hwnd, title, sizeof(title)); |
113 |
|
|
114 |
|
/* FIXME: Strip title of dangerous characters */ |
115 |
|
|
116 |
|
vchannel_write("TITLE,0x%x,%s,0x%x", hwnd, title, 0); |
117 |
|
|
118 |
|
if (style & WS_MAXIMIZE) |
119 |
|
state = 2; |
120 |
|
else if (style & WS_MINIMIZE) |
121 |
|
state = 1; |
122 |
|
else |
123 |
|
state = 0; |
124 |
|
|
125 |
|
vchannel_write("STATE,0x%p,0x%x,0x%x", hwnd, state, 0); |
126 |
|
|
127 |
update_position(hwnd); |
update_position(hwnd); |
128 |
|
|
129 |
|
/* FIXME: Figure out z order */ |
130 |
} |
} |
131 |
|
|
132 |
if (wp->flags & SWP_HIDEWINDOW) |
if (wp->flags & SWP_HIDEWINDOW) |