home *** CD-ROM | disk | FTP | other *** search
- HDC hdc; /* device context handle */
- HPS hps; /* presentation space handle */
- SIZEL sizel /* needed to create the PS */
- = { 0, 0 };
- DEVOPENSTRUC dop /* parameters for opening the DC */
- = {0L, "DISPLAY", NULL, 0L, 0L, 0L, 0L, 0L, 0L};
-
-
- /* create a memory device context */
- hdc = DevOpenDC (hab, OD_MEMORY, "*",
- 5L, (PDEVOPENDATA)&dop, NULLHANDLE);
-
- /* create a presentation space and and */
- /* associate it with the memory device context */
- hps = GpiCreatePS (hab, hdc, &sizel,
- U_PELS | GPIT_MICRO | GPIA_ASSOC);
-
- /* now load up the bitmap */
- hbm = GpiLoadBitmap (hps, NULLHANDLE, BMP_SPLASH, 0, 0);
-
- /* be good and tidy up after ourselves */
- GpiAssociate (hps, NULLHANDLE);
- GpiDestroyPS (hps);
- DevCloseDC (hdc);
-