Which MFC function is used to display output?
Answers were Sorted based on User's Feedback
Answer / praveen sethiya
MFC has device context class CClientDC. It has OnDraw()
function. A statement in OnDraw functionsuch as
CClientDC dc;
dc.TextOut(0, 0, "Hellow");
sends text to the display.
Is This Answer Correct ? | 13 Yes | 3 No |
Answer / nathusingh
Answer to post# 8:
If you want to display output without the coordinates then
you can simply use AfxMessageBox() function and pass the
parameter (the one which you want to display) as CString
object.If the parameter is not CString object then typecast
it to CString with CString::Format(). I hope this will work
for your problem.
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / neeraj dhekale
textout needs x..y
cordinates. there
should be a simple
function like printf
in c lang.
does anyone knows the
equivalent funtion dor
display output?
Is This Answer Correct ? | 1 Yes | 3 No |
Answer / velmahesh
I think "MessageBox " or "AfxMessageBox" is correct..
But, "OnDraw" is Correct?....
please explain..
Is This Answer Correct ? | 1 Yes | 4 No |
Answer / manish(yugma)
MessageBox(LPCTSTR msg,LPSTR Caption,UINT icon,UINT Button);
Is This Answer Correct ? | 2 Yes | 6 No |
Answer / rabindra kumar das
MessageBox(LPCTSTR msg,LPSTR Caption,UINT icon,UINT Button);
Its the correct answer.
Is This Answer Correct ? | 1 Yes | 5 No |
Why Array Index starts from Zero
Given two processes, how can they share memory?
Which MFC function is used to display output?
What is the use of CCmdTarget ?
How can update edit control data of an executing application from other application?
How you find memory leaks?
What is the initial function to be called in MFC and what it will do
Tell us something about MFC?
what is the difference between compiling and building?
Do you have an idea about MFC?
if no message handler is available for a message then will deal with the message ? does window proving any default mechanism?
Q1. A. What is unary operator? List out the different operators involved in the unary operator. B. What is an adjust field format flag? Q2. A. Distinguish between a # include and #define. B. Can a list of string be stored within a two dimensional array? Q3. A. Explain how a pointer to function can be declared in C++? B. List the merits and demerits of declaring a nested class in C++? Q4. A. What are the syntactic rules to be avoid ambiguity in multiple inheritence? B. Explain the operation of overloading of an assignment operator. Q5. A. Explain how the virtual base class is different from the conventional base classes of the opps. B. Explain how an exception handler is defined and invoked in a Program. Q6. A. What is a binary file? List the merits and demerits of the binary file usagein C++. B. Write short notes on Text Manipulation Routines. C. Write bites in Turbo c++ Header ("Include") Files.