Click here to Skip to main content
15,899,754 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: pls help... its very urgent... Pin
Navin5-Aug-04 7:19
Navin5-Aug-04 7:19 
GeneralRe: pls help... its very urgent... Pin
deep gz5-Aug-04 8:05
sussdeep gz5-Aug-04 8:05 
GeneralRe: pls help... its very urgent... Pin
David Crow5-Aug-04 9:46
David Crow5-Aug-04 9:46 
GeneralRe: pls help... its very urgent... Pin
David Crow5-Aug-04 7:31
David Crow5-Aug-04 7:31 
GeneralRe: pls help... its very urgent... Pin
wb5-Aug-04 10:04
wb5-Aug-04 10:04 
QuestionEvent Handler Never Called?? Pin
hyling5-Aug-04 5:47
hyling5-Aug-04 5:47 
AnswerRe: Event Handler Never Called?? Pin
Jaime Stuardo5-Aug-04 6:09
Jaime Stuardo5-Aug-04 6:09 
GeneralRe: Event Handler Never Called?? Pin
hyling5-Aug-04 6:45
hyling5-Aug-04 6:45 
Example code probably won't help but I can walk through the steps to reproduce the problem.

I'm using Visual Studio 2003 .Net

- Create new MFC Application, select application type Dialog based.
- In the class view, using the wizard create a new class with a base class of CButton, I called mine MyButton.
- in the main dialog create a new button, right click and "Add Event Handler" choose the Message type: BN_CLICKED and the class as MyButton.
- in the handler OnBnClickedButton1 add MessageBox("hello");
- run application
- click button, nothing happens


however if you added the Event Handler to the main dialog class created by the wizard, then everything works fine. Confused | :confused:

Ideas?

Thanks
Hua-Ying
GeneralRe: Event Handler Never Called?? Pin
Maximilien5-Aug-04 7:01
Maximilien5-Aug-04 7:01 
GeneralRe: Event Handler Never Called?? Pin
bikram singh5-Aug-04 7:08
bikram singh5-Aug-04 7:08 
GeneralRe: Event Handler Never Called?? Pin
PJ Arends5-Aug-04 7:23
professionalPJ Arends5-Aug-04 7:23 
GeneralRe: Event Handler Never Called?? Pin
David Crow5-Aug-04 7:23
David Crow5-Aug-04 7:23 
GeneralRe: Event Handler Never Called?? Pin
hyling5-Aug-04 7:49
hyling5-Aug-04 7:49 
AnswerRe: Event Handler Never Called?? Pin
David Crow5-Aug-04 6:42
David Crow5-Aug-04 6:42 
GeneralRe: Event Handler Never Called?? Pin
hyling5-Aug-04 6:48
hyling5-Aug-04 6:48 
AnswerRe: Event Handler Never Called?? Pin
Navin5-Aug-04 7:25
Navin5-Aug-04 7:25 
AnswerRe: Event Handler Never Called?? Pin
hyling5-Aug-04 9:27
hyling5-Aug-04 9:27 
QuestionHow to use MultiByetToWideChar() ? Pin
Anonymous5-Aug-04 5:43
Anonymous5-Aug-04 5:43 
AnswerRe: How to use MultiByetToWideChar() ? Pin
David Crow5-Aug-04 6:47
David Crow5-Aug-04 6:47 
GeneralRe: How to use MultiByetToWideChar() ? Pin
Amarelia5-Aug-04 15:30
Amarelia5-Aug-04 15:30 
GeneralSize of DialogBox Pin
Rolf Faßler5-Aug-04 5:07
Rolf Faßler5-Aug-04 5:07 
GeneralRe: Size of DialogBox Pin
David Crow5-Aug-04 9:53
David Crow5-Aug-04 9:53 
GeneralRe: Size of DialogBox Pin
Rolf Faßler9-Aug-04 2:42
Rolf Faßler9-Aug-04 2:42 
GeneralRe: Size of DialogBox Pin
David Crow9-Aug-04 3:19
David Crow9-Aug-04 3:19 
GeneralUse to convert a specific File to a Bitmap Pin
codefire5-Aug-04 2:58
codefire5-Aug-04 2:58 

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.