Message handling with WndProc

  • Thread starter Thread starter Robert Wilson
  • Start date Start date
R

Robert Wilson

Hi everyone.

I have a dialog box based application that I am developing for my
employer. We are only just getting to grips with C~ having been
developing in VC++ for ages.

I am handling a user defined message using an overloded WndProc
function. What i'd like to know is do I have to physically pop it off
the message stack or should WndProc do it for me?

I am getting loads of fires fo this message when I should only see one
at a time from the COM server i am talking to.

Any advice greatfully recieved. From what I've seen, I like I quite
like C# for what it's worth.

Cheers,

Rob (In mid wales, UK.)

ps, We are recruiting if anyone is interested; C# and C++/MFC anyone?.
 
Robert,

C-tilde? That's a new one =)

You don't have to pop the message off the stack. The framework will
take care of all of that for you. If you see more, then chances are you are
causing an effect somewhere (or there is something that you are missing)
which is causing this to be processed again. If you are having difficulty,
feel free to post the code.

Hope this helps.
 
Yes, sorry about the tilde. I saw it after I clicked 'send to server'.

We're having fun and games with our firewall at work (where we don't
have NG access) and I normally access my Laptop at home to gain access
to the NG's. They have gone and closed the SSH port on the firewall so
I have to start calling in favours now :o(
 
Back
Top