Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. :struct child_window
  2. {
  3.         dword window_loop_pointer;
  4.         dword id;
  5.         char stak[4096];
  6.         void create();
  7.         bool thread_exists();
  8. };
  9.  
  10. :void child_window::create()
  11. {
  12.         id = CreateThread(window_loop_pointer, #stak+4092);
  13. }
  14.  
  15. :bool child_window::thread_exists()
  16. {
  17.         dword proc_slot = GetProcessSlot(id);
  18.         if (proc_slot) {
  19.                 ActivateWindow(proc_slot);
  20.                 return true;
  21.         }
  22.         return false;
  23. }