Click here to Skip to main content
15,913,758 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: double-clicking application causes error Pin
Joaquín M López Muñoz14-Oct-04 12:15
Joaquín M López Muñoz14-Oct-04 12:15 
GeneralRe: double-clicking application causes error Pin
dotbomb14-Oct-04 12:23
dotbomb14-Oct-04 12:23 
GeneralRe: double-clicking application causes error Pin
Joaquín M López Muñoz14-Oct-04 12:44
Joaquín M López Muñoz14-Oct-04 12:44 
QuestionHow To Hold a Key Pin
Dody_DK14-Oct-04 11:48
Dody_DK14-Oct-04 11:48 
AnswerRe: How To Hold a Key Pin
ThatsAlok14-Oct-04 18:42
ThatsAlok14-Oct-04 18:42 
AnswerRe: How To Hold a Key Pin
toxcct14-Oct-04 20:01
toxcct14-Oct-04 20:01 
GeneralRe: How To Hold a Key Pin
Dody_DK17-Oct-04 9:56
Dody_DK17-Oct-04 9:56 
Generalmessage reflection Pin
prateekkathuria14-Oct-04 11:47
prateekkathuria14-Oct-04 11:47 
I am using message reflection in myButton class so what i have in the message map is as below:
BEGIN_MESSAGE_MAP(myButton, CButton)
ON_CONTROL_REFLECT(BN_CLICKED, onButtonClick)
END_MESSAGE_MAP()

the prototype for onButtonClick() is afx_msg void onButtonClick()
and this works well. But i do want the parent as well to be notified so as mentioned in the MFC doc i modified the onButtonClick to return BOOL so it is then

afx_msg BOOL onButtonClick()

But this gives a compile time error :
error C2440: 'static_cast' : cannot convert from 'BOOL (__thiscall aegis::myButton::* )(void)' to 'AFX_PMSG'
None of the functions with this name in scope match the target type.

Any suggestions or is it a yet another bug in mfc.

thanks
GeneralRe: message reflection Pin
prateekkathuria14-Oct-04 12:33
prateekkathuria14-Oct-04 12:33 
GeneralConstruction fails Pin
Fernando A. Gomez F.14-Oct-04 10:50
Fernando A. Gomez F.14-Oct-04 10:50 
GeneralRe: Construction fails Pin
David Crow14-Oct-04 11:01
David Crow14-Oct-04 11:01 
GeneralRe: Construction fails Pin
Fernando A. Gomez F.14-Oct-04 11:09
Fernando A. Gomez F.14-Oct-04 11:09 
GeneralRe: Construction fails Pin
Fernando A. Gomez F.14-Oct-04 11:16
Fernando A. Gomez F.14-Oct-04 11:16 
GeneralRe: Construction fails Pin
Stan Shannon14-Oct-04 11:02
Stan Shannon14-Oct-04 11:02 
GeneralRe: Construction fails Pin
Fernando A. Gomez F.14-Oct-04 11:11
Fernando A. Gomez F.14-Oct-04 11:11 
GeneralRe: Construction fails Pin
Stan Shannon14-Oct-04 11:20
Stan Shannon14-Oct-04 11:20 
GeneralRe: Construction fails Pin
Joaquín M López Muñoz14-Oct-04 12:00
Joaquín M López Muñoz14-Oct-04 12:00 
GeneralRe: Construction fails Pin
Bob Stanneveld14-Oct-04 12:24
Bob Stanneveld14-Oct-04 12:24 
GeneralRe: Construction fails Pin
Joaquín M López Muñoz14-Oct-04 12:32
Joaquín M López Muñoz14-Oct-04 12:32 
GeneralRe: Construction fails Pin
Bob Stanneveld14-Oct-04 12:38
Bob Stanneveld14-Oct-04 12:38 
GeneralRe: Construction fails Pin
Fernando A. Gomez F.14-Oct-04 13:24
Fernando A. Gomez F.14-Oct-04 13:24 
Generalowner draw of list header in IShellView Pin
summit2514-Oct-04 10:40
summit2514-Oct-04 10:40 
QuestionHow to isolate a specific section of a string? [C++] Pin
Shaitan0014-Oct-04 10:21
Shaitan0014-Oct-04 10:21 
AnswerRe: How to isolate a specific section of a string? [C++] Pin
Stan Shannon14-Oct-04 10:46
Stan Shannon14-Oct-04 10:46 
AnswerRe: How to isolate a specific section of a string? [C++] Pin
toxcct14-Oct-04 20:05
toxcct14-Oct-04 20:05 

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.