Click here to Skip to main content
15,921,226 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionWhy TextOut and DrawText can't display certain characters that Notepad can? Pin
hoc_ngo19-Sep-03 23:52
hoc_ngo19-Sep-03 23:52 
AnswerRe: Why TextOut and DrawText can't display certain characters that Notepad can? Pin
Neville Franks20-Sep-03 0:08
Neville Franks20-Sep-03 0:08 
GeneralRe: Why TextOut and DrawText can't display certain characters that Notepad can? Pin
hoc_ngo20-Sep-03 11:20
hoc_ngo20-Sep-03 11:20 
GeneralRe: Why TextOut and DrawText can't display certain characters that Notepad can? Pin
Neville Franks20-Sep-03 12:26
Neville Franks20-Sep-03 12:26 
GeneralMessageBox in MFC Pin
cberam19-Sep-03 23:39
cberam19-Sep-03 23:39 
GeneralRe: MessageBox in MFC Pin
zeki yugnak20-Sep-03 0:44
zeki yugnak20-Sep-03 0:44 
GeneralDifferences between the Message Box and AfxMessageBox Pin
Neelesh K J Jain19-Sep-03 22:57
Neelesh K J Jain19-Sep-03 22:57 
GeneralRe: Differences between the Message Box and AfxMessageBox Pin
Nish Nishant20-Sep-03 0:06
sitebuilderNish Nishant20-Sep-03 0:06 
CWnd::MessageBox will call the MessageBox API using the HWND of the CWnd (the m_hWnd member) as parent window. And can only be used from CWnd derived classes.

AfxMessageBox is an MFC global function and internally call CWinApp::DoMessageBox which calls the MessageBox API and uses the main window of the application as the parent window. AfxMessageBox can be called from anywhere in the MFC program. If you dont have a main window it will use NULL as the parent window

I use CWnd::MessageBox cause it lets you set a title, whereas AfxMessageBox will show the app-name string as the title.

Regards
Nish



Extending MFC Applications with the .NET Framework [NW] (coming soon...)
Summer Love and Some more Cricket [NW] (My first novel)
Shog's review of SLASMC [NW]
Come with me if you want to live
GeneralCException vs.net 2003 Pin
Thomas Andersen19-Sep-03 19:49
Thomas Andersen19-Sep-03 19:49 
QuestionHow to centralized a bitmap Pin
Boby.George19-Sep-03 19:01
professionalBoby.George19-Sep-03 19:01 
AnswerRe: How to centralized a bitmap Pin
alex.barylski20-Sep-03 4:55
alex.barylski20-Sep-03 4:55 
GeneralBCGControlBar vs. CodeJock XTreme Toolkit Pin
Joe Woodbury19-Sep-03 18:59
professionalJoe Woodbury19-Sep-03 18:59 
GeneralRe: BCGControlBar vs. CodeJock XTreme Toolkit Pin
Taka Muraoka19-Sep-03 23:29
Taka Muraoka19-Sep-03 23:29 
GeneralUDP Sample Program Pin
Ilamparithi19-Sep-03 18:54
Ilamparithi19-Sep-03 18:54 
GeneralRe: UDP Sample Program Pin
Rickard Andersson2020-Sep-03 2:15
Rickard Andersson2020-Sep-03 2:15 
GeneralData sending problem in CSocket Pin
Jegan Sasi19-Sep-03 18:50
Jegan Sasi19-Sep-03 18:50 
GeneralRe: Data sending problem in CSocket Pin
Luis Mejia20-Sep-03 10:42
Luis Mejia20-Sep-03 10:42 
GeneralHotkey combinations Pin
ironhead19-Sep-03 17:59
ironhead19-Sep-03 17:59 
GeneralShellExecute Pin
hemanheman19-Sep-03 15:47
hemanheman19-Sep-03 15:47 
GeneralRebar and Toolbars Pin
fgabrieli19-Sep-03 11:30
fgabrieli19-Sep-03 11:30 
GeneralFont dialog problems Pin
halblonious19-Sep-03 11:12
halblonious19-Sep-03 11:12 
Generalperformance question Pin
Gary Kirkham19-Sep-03 10:59
Gary Kirkham19-Sep-03 10:59 
GeneralRe: performance question Pin
Joe Woodbury19-Sep-03 12:35
professionalJoe Woodbury19-Sep-03 12:35 
GeneralRe: performance question Pin
Tim Smith19-Sep-03 12:40
Tim Smith19-Sep-03 12:40 
GeneralRe: performance question Pin
Gary Kirkham19-Sep-03 13:26
Gary Kirkham19-Sep-03 13:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.