kolibrios-gitea/programs/cmm/lib/gui/child_window.h
Kirill Lipatov (Leency) c2149afa96 child window, new icon size set
git-svn-id: svn://kolibrios.org@7274 a494cfbc-eb01-0410-851d-a64ba20cac60
2018-05-07 16:17:53 +00:00

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;
}