Which MFC function is used to display output?

Answers were Sorted based on User's Feedback



Which MFC function is used to display output?..

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

Which MFC function is used to display output?..

Answer / suyambu

AfxMessageBox

Is This Answer Correct ?    7 Yes 6 No

Which MFC function is used to display output?..

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

Which MFC function is used to display output?..

Answer / chandan

OnDraw

Is This Answer Correct ?    3 Yes 4 No

Which MFC function is used to display output?..

Answer / soni gupta

Answer 5 is correct answer..

Is This Answer Correct ?    3 Yes 4 No

Which MFC function is used to display output?..

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

Which MFC function is used to display output?..

Answer / velmahesh

I think "MessageBox " or "AfxMessageBox" is correct..


But, "OnDraw" is Correct?....


please explain..

Is This Answer Correct ?    1 Yes 4 No

Which MFC function is used to display output?..

Answer / manish(yugma)

MessageBox(LPCTSTR msg,LPSTR Caption,UINT icon,UINT Button);

Is This Answer Correct ?    2 Yes 6 No

Which MFC function is used to display output?..

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

Post New Answer

More MFC Interview Questions

Difference between Cclint DC & Cpaint Dc

6 Answers   E Logic,


what is message loop how mfc does it internally?

4 Answers   Aspire,


what is the difference between SDI and MDI

15 Answers   CMC, HCL, Siemens,


how to give colour for dialog button or static buuto?any one explain full code ?pls pls

3 Answers  


what is the use of CWinApp class?

3 Answers   Mphasis,


What is the base class for MFC Framework ?

2 Answers   Mphasis,


what is the updated verssion in vc++

3 Answers   Aspect,


What is difference between the TCP/IP and UDP socket

5 Answers   Invensys,


1)How to create ToolTip in MFC?

2 Answers  


What is CArchive class dowes?

4 Answers  


I have 2 threads. One thread prints odd numbers and the second thread prints even numbers. Now, I have to execute the threads alternatively so that i can output 1,2,3,4,5,6,..... write code for this?

1 Answers  


1)How to change the size of a button at run time ?

1 Answers  


Categories