mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-15 03:12:35 +03:00
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;
|
|
} |