Click here to Skip to main content
15,911,360 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to place a Bitmap in the center of a Cdocument document on startup Pin
Larry Mills Sr14-Mar-09 6:24
Larry Mills Sr14-Mar-09 6:24 
GeneralRe: How to place a Bitmap in the center of a Cdocument document on startup Pin
Code-o-mat14-Mar-09 6:35
Code-o-mat14-Mar-09 6:35 
GeneralRe: How to place a Bitmap in the center of a Cdocument document on startup Pin
Larry Mills Sr15-Mar-09 9:24
Larry Mills Sr15-Mar-09 9:24 
GeneralRe: How to place a Bitmap in the center of a Cdocument document on startup Pin
Code-o-mat15-Mar-09 11:37
Code-o-mat15-Mar-09 11:37 
GeneralRe: How to place a Bitmap in the center of a Cdocument document on startup Pin
Larry Mills Sr16-Mar-09 2:21
Larry Mills Sr16-Mar-09 2:21 
QuestionHow to solve this,I have try my best! Pin
Archy_Yu14-Mar-09 0:34
Archy_Yu14-Mar-09 0:34 
QuestionHow to pass SendMessage() which is having base class as CWinApp? Pin
Abhijit D. Babar13-Mar-09 23:59
Abhijit D. Babar13-Mar-09 23:59 
AnswerRe: How to pass SendMessage() which is having base class as CWinApp? Pin
«_Superman_»14-Mar-09 1:40
professional«_Superman_»14-Mar-09 1:40 
There are two versions of SendMessage.
One that is global and one that is a member of the CWnd class.

You are getting the error because CWinApp does not directly or indirectly inherit from CWnd, whereas CFrameWnd does inherit from CWnd.

You can use the CWnd member like so
AfxGetMainWnd()->SendMessage(WM_DISP, 0, (LPARAM)recv_data);


«_Superman
I love work. It gives me something to do between weekends.

QuestionMFC Pin
p_196013-Mar-09 22:55
p_196013-Mar-09 22:55 
AnswerRe: MFC Pin
Iain Clarke, Warrior Programmer13-Mar-09 23:24
Iain Clarke, Warrior Programmer13-Mar-09 23:24 
AnswerRe: MFC Pin
CPallini14-Mar-09 1:38
mveCPallini14-Mar-09 1:38 
GeneralRe: MFC Pin
Hamid_RT14-Mar-09 3:26
Hamid_RT14-Mar-09 3:26 
GeneralRe: MFC Pin
CPallini14-Mar-09 4:36
mveCPallini14-Mar-09 4:36 
GeneralRe: MFC Pin
Hamid_RT14-Mar-09 5:27
Hamid_RT14-Mar-09 5:27 
AnswerRe: MFC Pin
Hamid_RT14-Mar-09 3:23
Hamid_RT14-Mar-09 3:23 
AnswerRe: MFC Pin
Joe Woodbury15-Mar-09 17:52
professionalJoe Woodbury15-Mar-09 17:52 
QuestionIConverterSession Pin
Swapnil Shah13-Mar-09 20:42
Swapnil Shah13-Mar-09 20:42 
AnswerRe: IConverterSession Pin
Archy_Yu14-Mar-09 0:02
Archy_Yu14-Mar-09 0:02 
GeneralRe: IConverterSession Pin
Swapnil Shah14-Mar-09 12:45
Swapnil Shah14-Mar-09 12:45 
QuestionMFC App stopped working Pin
Member 443453613-Mar-09 20:36
Member 443453613-Mar-09 20:36 
AnswerRe: MFC App stopped working Pin
Hamid_RT14-Mar-09 3:26
Hamid_RT14-Mar-09 3:26 
AnswerRe: MFC App stopped working Pin
CPallini14-Mar-09 4:38
mveCPallini14-Mar-09 4:38 
GeneralRe: MFC App stopped working Pin
scottgp14-Mar-09 5:17
professionalscottgp14-Mar-09 5:17 
GeneralRe: MFC App stopped working Pin
Member 443453618-Mar-09 3:40
Member 443453618-Mar-09 3:40 
GeneralRe: MFC App stopped working Pin
CPallini18-Mar-09 3:46
mveCPallini18-Mar-09 3:46 

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.