   encapsulating window
  Hello there,i'd like to encapsulate a main window for game in a class, lets say CGameMainWindow(working with VC++). But i cant set the WndProc method for window class, it is wc.WndProc = (WNDPROC)WndProc or something like this. Compiler says that there is no possible conversion so the value cant be assigned. when not in a class, it works..looks to be a problem with calling convention thiscall vs stdcall... or something...know its a lame question but i just would like to know how to accomplish that if possible   
Read.   ;  thank you, this helps   