; Sets the coordinates for the rectangle in which the text is to be formatted. SetRect(&rect, 10,70,500,50) SetTextColor(hdc, RGB(255,0,0)) DrawText(hdc, "ñîçäàäèì äî÷åðíåå îêíî ñëàéäåðà 2", -1, &rect, DT_NOCLIP)

; Logical units are device dependent pixels, so this will create a ; handle to a logical font that is 36 pixels in height. ; The width, when set to 20, will cause the font mapper to choose a font ; which, in this case, is stretched. ; The font face name will be Times New Roman. This time nEscapement is ; at -300 tenths of a degree (-30 degrees) mov hFont, CreateFont(36,20,-300,0,FW_DONTCARE,FALSE,TRUE,FALSE,DEFAULT_CHARSET,OUT_OUTLINE_PRECIS, CLIP_DEFAULT_PRECIS,CLEARTYPE_QUALITY, VARIABLE_PITCH, "Times New Roman") SelectObject(hdc, hFont)

; Logical units are device dependent pixels, so this will create a handle ; to a logical font that is 36 pixels in height. ; The width, when set to 10, will cause the font mapper to choose a font ; which, in this case, is compressed. ; The font face name will be Arial. This time nEscapement is at 250 ; tenths of a degree (25 degrees)