winprocs as member functions

Deadman (jaguyer@nospam.socs.uts.edu.au)
Sun, 7 Jul 1996 00:18:31 +1000 (EST)

If the x faithful will humor me, i have a ms windows programming query.

Does anyone know a way to specify a member function of a class as the
window procedure (the lpfnWndProc member in a WNDCLASS struct) for a
window. Apparently it is illegal to simply assign a member function of
an object to a WNDPROC variable. This makes it very difficult to write an
elegant abstract window class while maintaining *pure* oo.

Jon.

__________________________________________________
|================================================| ---
I---, |-=| Jon Guyer |=@nospam.=| jaguyer@nospam.socs.uts.edu.au |=-|
-----U ==| |================================================| ---
| :) U ==| | "Lo, thy dread empire Chaos is restor'd" | ---
-----'----U | |________________________________________________| ---
|)___() 'U |______====____ \________________________________| -----
[_/,-,\"--"----- // ,-, ,-,\\\ |/ //,-, ,-, ,-,\\ __# ---
( 0 )====#####// ( 0 )( 0 )''- o '( 0 )( 0 )( 0 )''
-----'-'--------------'-'--'-'-------------------'-'--'-'--'-'--------------