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

C / C++ / MFC

 
AnswerRe: How to place a Bitmap in the center of a Cdocument document on startup Pin
Code-o-mat14-Mar-09 5:44
Code-o-mat14-Mar-09 5:44 
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 
Hi all,

I want to use SendMessage(). Through CMainFram class object it works fine but using CWinApp class as base class, it doesn't work. It is not giving any error, but SendMessage() is not called.

I use the following code.

CSampleCMSApp * poApp = (CSampleCMSApp*)AfxGetApp();
SendMessage((HWND)poApp,WM_DISP,0,(long)recv_data);

If i use poApp->SendMessage((HWND)poApp,WM_DISP,0,(long)recv_data);, it give error as
error C2039: 'SendMessageW' : is not a member of 'CSampleCMSApp'.


Can i use SendMessge for the class which is derived from base class as CWinApp?.
If yes, how can i do this.
If no, why i can't?

Please reply.

Thanks,
Abhijit
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 
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 

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.