Click here to Skip to main content
15,886,873 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: UpdateData() Behavior Pin
Roger Stoltz6-Feb-07 12:41
Roger Stoltz6-Feb-07 12:41 
AnswerRe: UpdateData() Behavior Pin
ThatsAlok6-Feb-07 20:00
ThatsAlok6-Feb-07 20:00 
QuestionMake MFC View "read only" while allowing viewing, scrolling etc. Pin
lctrncs5-Feb-07 9:43
lctrncs5-Feb-07 9:43 
AnswerRe: Make MFC View "read only" while allowing viewing, scrolling etc. Pin
Mark Salsbery5-Feb-07 11:37
Mark Salsbery5-Feb-07 11:37 
GeneralRe: Make MFC View "read only" while allowing viewing, scrolling etc. Pin
lctrncs7-Feb-07 4:36
lctrncs7-Feb-07 4:36 
QuestionVS2005 trial: Registered messages issue Pin
Joan M5-Feb-07 9:33
professionalJoan M5-Feb-07 9:33 
AnswerRe: VS2005 trial: Registered messages issue Pin
Michael Dunn5-Feb-07 9:53
sitebuilderMichael Dunn5-Feb-07 9:53 
AnswerRe: VS2005 trial: Registered messages issue Pin
Gary R. Wheeler5-Feb-07 12:19
Gary R. Wheeler5-Feb-07 12:19 
To expand on Michael's post a bit:

Some time ago (MFC 7.0, I believe), Microsoft tightened up the type definitions for user-defined message handlers. In MFC 4.2 (VC6), a message handler could have the following prototype:
void OnMyMessage(WPARAM wParam,LPARAM lParam);
In MFC 7.0, they changed the required type to be the following:
LRESULT OnMyMessage(WPARAM wParam,LPARAM lParam);
The only real change is the addition of a return type. Note that this was never a functional change. User-defined handlers were always supposed to return an LRESULT, but most didn't.

Modify the return types of your handlers, add a return (LRESULT)0; to the end, and you're all set.


Software Zen: delete this;

QuestionAdvanced VC++ 6.0 Book/Reference Pin
acerunner3165-Feb-07 9:23
acerunner3165-Feb-07 9:23 
AnswerRe: Advanced VC++ 6.0 Book/Reference Pin
Christian Graus5-Feb-07 9:32
protectorChristian Graus5-Feb-07 9:32 
GeneralRe: Advanced VC++ 6.0 Book/Reference Pin
acerunner3165-Feb-07 9:44
acerunner3165-Feb-07 9:44 
GeneralRe: Advanced VC++ 6.0 Book/Reference Pin
David Crow5-Feb-07 10:03
David Crow5-Feb-07 10:03 
GeneralRe: Advanced VC++ 6.0 Book/Reference Pin
Christian Graus5-Feb-07 10:53
protectorChristian Graus5-Feb-07 10:53 
GeneralRe: Advanced VC++ 6.0 Book/Reference Pin
acerunner3165-Feb-07 11:05
acerunner3165-Feb-07 11:05 
GeneralRe: Advanced VC++ 6.0 Book/Reference Pin
Gary R. Wheeler5-Feb-07 12:46
Gary R. Wheeler5-Feb-07 12:46 
GeneralRe: Advanced VC++ 6.0 Book/Reference Pin
Christian Graus5-Feb-07 13:39
protectorChristian Graus5-Feb-07 13:39 
GeneralRe: Advanced VC++ 6.0 Book/Reference Pin
ensger5-Feb-07 9:46
ensger5-Feb-07 9:46 
GeneralRe: Advanced VC++ 6.0 Book/Reference Pin
Christian Graus5-Feb-07 13:38
protectorChristian Graus5-Feb-07 13:38 
AnswerRe: Advanced VC++ 6.0 Book/Reference Pin
stephen.hazel5-Feb-07 11:45
stephen.hazel5-Feb-07 11:45 
GeneralRe: Advanced VC++ 6.0 Book/Reference Pin
acerunner3165-Feb-07 11:49
acerunner3165-Feb-07 11:49 
GeneralRe: Advanced VC++ 6.0 Book/Reference Pin
stephen.hazel5-Feb-07 12:10
stephen.hazel5-Feb-07 12:10 
AnswerRe: Advanced VC++ 6.0 Book/Reference Pin
Jeffrey Walton5-Feb-07 19:26
Jeffrey Walton5-Feb-07 19:26 
AnswerRe: Advanced VC++ 6.0 Book/Reference Pin
ThatsAlok6-Feb-07 20:05
ThatsAlok6-Feb-07 20:05 
Generalc++ complier source [modified] Pin
mejax5-Feb-07 8:33
mejax5-Feb-07 8:33 
Generalgcc [modified] Pin
Ennis Ray Lynch, Jr.5-Feb-07 8:37
Ennis Ray Lynch, Jr.5-Feb-07 8:37 

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.