forked from KolibriOS/kolibrios
c2149afa96
git-svn-id: svn://kolibrios.org@7274 a494cfbc-eb01-0410-851d-a64ba20cac60
23 lines
390 B
C
23 lines
390 B
C
:struct child_window
|
|
{
|
|
dword window_loop_pointer;
|
|
dword id;
|
|
char stak[4096];
|
|
void create();
|
|
bool thread_exists();
|
|
};
|
|
|
|
:void child_window::create()
|
|
{
|
|
id = CreateThread(window_loop_pointer, #stak+4092);
|
|
}
|
|
|
|
:bool child_window::thread_exists()
|
|
{
|
|
dword proc_slot = GetProcessSlot(id);
|
|
if (proc_slot) {
|
|
ActivateWindow(proc_slot);
|
|
return true;
|
|
}
|
|
return false;
|
|
} |