title: How to use WndProc as a class function
body: <p>I'm trying to create a class that includes the WndProc, but I'm getting an error :</p>
  
  <p><code>Error  2   error C2440: '=' : cannot convert from 'LRESULT (__stdcall Client::* )(HWND,UINT,WPARAM,LPARAM)' to 'WNDPROC'</code></p>
  
  <p>I searched the web for it, and seen that you need to make the WndProc static, but then, it compiles and everything is great, though if I want to change something, it doesnt let me :</p>
  
  <p><code>Error  3   error C2352: 'Client::CreateMen' : illegal call of non-static member function</code></p>
  
  <p>(CreateMen is a function in the class that creates the menu, using HMENU and such).</p>
  
  <p>this is my function title:</p>
  
  <pre><code>LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
  </code></pre>
  
  <p>What can I do? I'm really confused...</p>
  
  <p>Thanks!</p>