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 |
How to handle RTTI in MFC ?
what are the feauters of CObject
how does the UIThread and worker thread communicates and handle events
I want recent paper pattern for HP company?
what is the difference between SDI and MDI
15 Answers CMC, HCL, Siemens,
What is the difference between Synchronous sockets and asynchronous sockets?
2.create for 10 batch: Employee_Number Employee_name Employee_Dateofjoining Employee_address Employee_salary 1.select the employee name who deriving more than 10 thousand salary and joined before august 08. use structure and pointers
What is the use of CObject::Dump function ?
What is Multithreading
How can we create thread in MFC framework?
what is message Testing ?
WHAT IS DIFFERENT BETWEN RELEASE MODE & DEBUGGING MODE
4 Answers Google, Microsoft, TCS,