In Win32 you use a specific function that checks the WM_xxx messages,
(I don't remember the syntax)
int CALLBACK WinProc( MSG msg, ....)
hope you understand it!
but how does it works in VC++6 and ofcourse then I mean in MFC.