WndProc and DefWndProc

G

Guest

I have a form class
public __gc class DualImageForm : public System::Windows::Forms::For

It is a MDI child and it ihas this function

protected: virtual void WndProc( Message *Msg

// DualImageForm::DefWndProc(Msg)
// this->DefWndProc(Msg)
Form::DefWndProc(Msg)


Once this function is in place, none of the toolbar buttons, on the form, work
I've tried several ways of handling the message (see commented lines)...none work
I eventually would like to handle custom window messages in the function

Any ideas on what I am missing
Thanks

Steve W
 
G

Guest

Solved:

protected: virtual void WndProc( Message *Msg)
{
Form::WndProc(Msg);
}


----- Steve W wrote: -----

I have a form class:
public __gc class DualImageForm : public System::Windows::Forms::Form

It is a MDI child and it ihas this function:

protected: virtual void WndProc( Message *Msg)
{
// DualImageForm::DefWndProc(Msg);
// this->DefWndProc(Msg);
Form::DefWndProc(Msg);
}

Once this function is in place, none of the toolbar buttons, on the form, work.
I've tried several ways of handling the message (see commented lines)...none work.
I eventually would like to handle custom window messages in the function.

Any ideas on what I am missing?
Thanks,

Steve W
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top