Annotation of pmsdk/samples/petzold/chap02/welc.c, revision 1.1.1.1

1.1       root        1: /*----------------------------------------------------------
                      2:    WELC.C -- A Program that Creates a Standard Frame Window
                      3:   ----------------------------------------------------------*/
                      4: 
                      5: #include <os2.h>
                      6: #include <stddef.h>
                      7: 
                      8: int main (void)
                      9:      {
                     10:      HAB   hab ;
                     11:      HMQ   hmq ;
                     12:      HWND  hwndFrame ;
                     13:      ULONG flFrameFlags = FCF_STANDARD & ~FCF_MENU ;
                     14:      ULONG flFrameStyle = WS_VISIBLE ;
                     15: 
                     16:      hab = WinInitialize (0) ;
                     17:      hmq = WinCreateMsgQueue (hab, 0) ;
                     18: 
                     19:      hwndFrame = WinCreateStdWindow (
                     20:                     HWND_DESKTOP,       /* Parent window handle            */
                     21:                     flFrameStyle,       /* Style of frame window           */
                     22:                    &flFrameFlags,      /* Pointer to control data         */
                     23:                     NULL,               /* Client window class name        */
                     24:                     "WELC Program",     /* Title bar text                  */
                     25:                     0L,                 /* Style of client window          */
                     26:                     NULL,               /* Module handle for resources     */
                     27:                     0,                  /* ID of resources                 */
                     28:                     NULL) ;             /* Pointer to client window handle */
                     29: 
                     30:      WinDestroyWindow (hwndFrame) ;
                     31:      WinDestroyMsgQueue (hmq) ;
                     32:      WinTerminate (hab) ;
                     33: 
                     34:      return 0 ;
                     35:      }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.