Re: [Harbour] PRG Function as a Window's Callback Procedure

2008-12-01 Thread Adam Lubszczyk
Hi! Pritpal Bedi wrote: > > Hello > > I am looking for a way ( I am sure it exists ) to do something > like this: > > HB_FUNC( WIN_SETWNDPROC ) > { >HWND hWnd = ( HWND ) ( HB_PTRDIFF ) hb_parnint( 1 ); >WNDPROC wndProc = ( WNDPROC ) ( HB_PTRDIFF ) hb_parnint( 2 ); >WNDPROC oldProc

[Harbour] PRG Function as a Window's Callback Procedure

2008-11-30 Thread Pritpal Bedi
Hello I am looking for a way ( I am sure it exists ) to do something like this: HB_FUNC( WIN_SETWNDPROC ) { HWND hWnd = ( HWND ) ( HB_PTRDIFF ) hb_parnint( 1 ); WNDPROC wndProc = ( WNDPROC ) ( HB_PTRDIFF ) hb_parnint( 2 ); WNDPROC oldProc; oldProc = ( WNDPROC ) SetWindowLong( hWnd,