window messages + wndProc
Hi!
I'm using window messaging with c# and i'm having a little problem.
I found a code that creates a window handle:
CreateParams Params = new CreateParams();
Params.Caption = WindowTitle;
this.CreateHandle(Params);
But i need the WndProc function to be placed in another class and it is not being called at all!
I get the exception: "Error creating window handle"
What is wrong and how should i do it?
thanks in advance:D
|