| Last change
 on this file since 6030 was             5024, checked in by sandervl, 25 years ago | 
        
          | 
added preliminary console code
 | 
        
          | File size:
            1009 bytes | 
      
      
| Line |  | 
|---|
| 1 | #define INCL_WIN | 
|---|
| 2 | #define INCL_DOS | 
|---|
| 3 | #define INCL_VIO | 
|---|
| 4 | #define INCL_SUB | 
|---|
| 5 | #define INCL_DOSERRORS | 
|---|
| 6 | #define INCL_WINSWITCHLIST | 
|---|
| 7 | #include <os2.h> | 
|---|
| 8 |  | 
|---|
| 9 | #include <stdio.h> | 
|---|
| 10 | #include "vio32Utils.h" | 
|---|
| 11 |  | 
|---|
| 12 | void main(){ | 
|---|
| 13 | HWND hwndClient  = VIOWindowClient(); | 
|---|
| 14 | HWND hwndFrame   = VIOWindowFrame(); | 
|---|
| 15 | HWND hwndParent  = WinQueryWindow(hwndFrame,QW_PARENT); | 
|---|
| 16 | HWND hwndParent2 = WinQueryWindow(hwndParent,QW_PARENT); | 
|---|
| 17 |  | 
|---|
| 18 | printf("client = %x, frame = %x, parent = %x, parent2 = %x\n",hwndClient,hwndFrame,hwndParent,hwndParent2); | 
|---|
| 19 |  | 
|---|
| 20 | // now get the message Queue | 
|---|
| 21 | HMQ queue1 = WinQueryWindowULong(hwndClient, QWL_HMQ); | 
|---|
| 22 | // now get the message Queue | 
|---|
| 23 | HMQ queue2 = WinQueryWindowULong(hwndFrame, QWL_HMQ); | 
|---|
| 24 | // now get the message Queue | 
|---|
| 25 | HMQ queue3 = WinQueryWindowULong(hwndParent, QWL_HMQ); | 
|---|
| 26 | // now get the message Queue | 
|---|
| 27 | HMQ queue4 = WinQueryWindowULong(hwndParent2, QWL_HMQ); | 
|---|
| 28 |  | 
|---|
| 29 | printf("Q client = %x, frame = %x, parent = %x, parent2 = %x\n",queue1,queue2,queue3,queue4); | 
|---|
| 30 |  | 
|---|
| 31 | while(1) DosSleep(1000); | 
|---|
| 32 | } | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.