News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

DrawText Newline help.

Started by Ash_, April 09, 2005, 09:37:47 AM

Previous topic - Next topic

Ash_

how do i Draw a newline when using DrawText, i have the DT_MULTILINE const applied aswell.
in C++ it's just the \n tag, but it doesent work in masm.

thanks in advance.

hitchhikr


Ash_

Quote from: hitchhikr on April 09, 2005, 09:42:21 AM

db "my ",13,10,"text",0



how do i do it if im going to be writing text to buffer's then writitng the text froma  buffer though?

thomasantony

Quote from: Ash_ on April 09, 2005, 09:45:22 AM
how do i do it if im going to be writing text to buffer's then writitng the text froma  buffer though?
Huh??  :eek
Make yourself more clear ::) . You just have to pass ADDR Youtextname to DrawText as the appropriate parameter.

YourTextname db "my text has ",13,10,"newline",0

13 and 10 are the ASCII codes of CR and LF (Carriagereturn and line feed)

Thomas :U
There are 10 types of people in the world. Those who understand binary and those who don't.


Programmer's Directory. Submit for free

hitchhikr

What restrain you to write 13 and 10 inside of that buffer ?