Writing Text, Formatted Strings, to a Dialog Window.
-
Hello, I have a application where I need to write a lot of labels and data to a window. The labels and data are located on the window using X, Y coordiates. It would be easier not to use controls I think, since labels and data need to be placed dynamically on the dialog window, and there is a lot of data. I think it would be easier to write to the window much like a dos window. Question: At this point I have created a simple dialog window, but wish to write to it as indicated above using X, Y coordiates. How do I do this? :) Jerry
-
Hello, I have a application where I need to write a lot of labels and data to a window. The labels and data are located on the window using X, Y coordiates. It would be easier not to use controls I think, since labels and data need to be placed dynamically on the dialog window, and there is a lot of data. I think it would be easier to write to the window much like a dos window. Question: At this point I have created a simple dialog window, but wish to write to it as indicated above using X, Y coordiates. How do I do this? :) Jerry
jerry1211a wrote:
How do I do this?
See here.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
-
Hello, I have a application where I need to write a lot of labels and data to a window. The labels and data are located on the window using X, Y coordiates. It would be easier not to use controls I think, since labels and data need to be placed dynamically on the dialog window, and there is a lot of data. I think it would be easier to write to the window much like a dos window. Question: At this point I have created a simple dialog window, but wish to write to it as indicated above using X, Y coordiates. How do I do this? :) Jerry
jerry1211a wrote:
I think it would be easier to write to the window much like a dos window
I don't know if that's a good idea (perhaps you can use a list view...), anyway, you have to override the
OnPaint
handler, calling theTextOut
method of the supplied device context. hope that helps... :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.