Click here to Skip to main content
15,926,939 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Convert DWG/BMP image file to PNG image format Pin
helpcode6-Feb-07 0:33
helpcode6-Feb-07 0:33 
GeneralRe: Convert DWG/BMP image file to PNG image format Pin
Hamid_RT6-Feb-07 0:51
Hamid_RT6-Feb-07 0:51 
Questionhow to add check boxes Pin
pavan_sw5-Feb-07 20:11
pavan_sw5-Feb-07 20:11 
AnswerRe: how to add check boxes Pin
Hamid_RT5-Feb-07 20:28
Hamid_RT5-Feb-07 20:28 
AnswerRe: how to add check boxes Pin
ThatsAlok6-Feb-07 19:55
ThatsAlok6-Feb-07 19:55 
QuestionMessage Map Return types Pin
G.DHANASEKAR5-Feb-07 19:18
G.DHANASEKAR5-Feb-07 19:18 
AnswerRe: Message Map Return types Pin
Don Box5-Feb-07 19:46
Don Box5-Feb-07 19:46 
AnswerRe: Message Map Return types Pin
Roger Stoltz5-Feb-07 22:58
Roger Stoltz5-Feb-07 22:58 
Stop! Wrong way.

All message handlers that are put inside the message map have specific declarations.
In your case the prototype shall look like this, the identifier name excepted:
afx_msg void OnEnChangeEditMessage();
You cannot change the return type for message handlers. You have to solve whatever problem you're having in another way. All message handlers in Win32 always return an LRESULT. In MFC this is hidden so MFC message handlers for windows returns void, like above. But if you write a message handler for a user defined message you still have to return an LRESULT, even when using MFC.

Describe your problem if you want suggestions for alternative solutions.


"It's supposed to be hard, otherwise anybody could do it!" - selfquote

AnswerRe: Message Map Return types Pin
Mark Salsbery6-Feb-07 8:08
Mark Salsbery6-Feb-07 8:08 
AnswerRe: Message Map Return types Pin
ThatsAlok6-Feb-07 19:56
ThatsAlok6-Feb-07 19:56 
QuestionSet Edit Box Text from Different Dialog Pin
Sonani Prakash5-Feb-07 19:08
Sonani Prakash5-Feb-07 19:08 
AnswerRe: Set Edit Box Text from Different Dialog Pin
Hamid_RT5-Feb-07 19:20
Hamid_RT5-Feb-07 19:20 
GeneralRe: Set Edit Box Text from Different Dialog Pin
Sonani Prakash5-Feb-07 19:28
Sonani Prakash5-Feb-07 19:28 
GeneralRe: Set Edit Box Text from Different Dialog Pin
Hamid_RT5-Feb-07 19:34
Hamid_RT5-Feb-07 19:34 
GeneralRe: Set Edit Box Text from Different Dialog Pin
Sonani Prakash5-Feb-07 19:41
Sonani Prakash5-Feb-07 19:41 
GeneralRe: Set Edit Box Text from Different Dialog Pin
Hamid_RT5-Feb-07 20:07
Hamid_RT5-Feb-07 20:07 
GeneralRe: Set Edit Box Text from Different Dialog Pin
Sonani Prakash5-Feb-07 20:59
Sonani Prakash5-Feb-07 20:59 
GeneralRe: Set Edit Box Text from Different Dialog Pin
Hamid_RT5-Feb-07 21:22
Hamid_RT5-Feb-07 21:22 
AnswerRe: Set Edit Box Text from Different Dialog Pin
ThatsAlok6-Feb-07 19:57
ThatsAlok6-Feb-07 19:57 
Questionpopulating datagrid... Pin
meg15-Feb-07 18:59
meg15-Feb-07 18:59 
AnswerRe: populating datagrid... Pin
Hamid_RT5-Feb-07 19:44
Hamid_RT5-Feb-07 19:44 
GeneralRe: populating datagrid... Pin
meg15-Feb-07 21:34
meg15-Feb-07 21:34 
GeneralRe: populating datagrid... Pin
meg16-Feb-07 0:04
meg16-Feb-07 0:04 
GeneralRe: populating datagrid... Pin
Hamid_RT6-Feb-07 5:24
Hamid_RT6-Feb-07 5:24 
GeneralRe: populating datagrid... Pin
meg16-Feb-07 16:43
meg16-Feb-07 16:43 

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.