Операционная система Microsoft Windows 3.1 для программиста -том 1


Приложение DCAPS - часть 3


fputs("-------------------------------\n", out); PrintH(RASTERCAPS,"RASTERCAPS "); fputs("-------------------------------\n", out); PrintFlag(RASTERCAPS, RC_BANDING, "RC_BANDING "); PrintFlag(RASTERCAPS, RC_BIGFONT, "RC_BIGFONT "); PrintFlag(RASTERCAPS, RC_BITBLT, "RC_BITBLT "); PrintFlag(RASTERCAPS, RC_BITMAP64, "RC_BITMAP64 "); PrintFlag(RASTERCAPS, RC_DEVBITS, "RC_DEVBITS "); PrintFlag(RASTERCAPS, RC_DI_BITMAP, "RC_DI_BITMAP "); PrintFlag(RASTERCAPS, RC_DIBTODEV, "RC_DIBTODEV "); PrintFlag(RASTERCAPS, RC_FLOODFILL, "RC_FLOODFILL "); PrintFlag(RASTERCAPS, RC_GDI20_OUTPUT,"RC_GDI20_OUTPUT "); PrintFlag(RASTERCAPS, RC_GDI20_STATE, "RC_GDI20_STATE "); PrintFlag(RASTERCAPS, RC_NONE, "RC_NONE "); PrintFlag(RASTERCAPS, RC_OP_DX_OUTPUT,"RC_PO_DX_OUTPUT "); PrintFlag(RASTERCAPS, RC_PALETTE, "RC_PALETTE "); PrintFlag(RASTERCAPS, RC_SAVEBITMAP, "RC_SAVEBITMAP "); PrintFlag(RASTERCAPS, RC_SCALING, "RC_SCALING "); PrintFlag(RASTERCAPS, RC_STRETCHBLT, "RC_STRETCHBLT "); PrintFlag(RASTERCAPS, RC_STRETCHDIB, "RC_STRETCHDIB ");

fputs("-------------------------------\n", out); PrintH(TECHNOLOGY,"TECHNOLOGY"); fputs("-------------------------------\n", out);

strcpy(buf, "Технология: ");

i = GetDeviceCaps(hdc, TECHNOLOGY); switch (i) { case DT_CHARSTREAM: strcat(buf, "DT_CHARSTREAM"); break; case DT_DISPFILE: strcat(buf, "DT_DISPFILE"); break; case DT_METAFILE: strcat(buf, "DT_METAFILE"); break; case DT_PLOTTER: strcat(buf, "DT_PLOTTER"); break; case DT_RASDISPLAY: strcat(buf, "DT_RASDISPLAY"); break; case DT_RASPRINTER: strcat(buf, "DT_RASPRINTER"); break; case DT_RASCAMERA: strcat(buf, "DT_RASCAMERA"); break; default: strcat(buf, "Неизвестная технология"); break; } strcat(buf, "\n"); fputs(buf, out);




Начало  Назад  Вперед



Книжный магазин