1. Help ! with win32lib David
DAVID
I need to know how to monitor the event loop from a
custom control to intercept messages like you can in windows.
Waring -- not real just pretend code
switch(message)
case WM_DRAWSOMETHING
do something
break
case WM_MYCOMMAND
do something else
break
default
return something
end switch
2. Re: Help ! with win32lib David
Bernie wrote:
> I need to know how to monitor the event loop
> from a custom control to intercept messages
> like you can in windows.
Use the onEvent() trap; it will give you access to all the events that are
passed to a given control.
-- David Cuny
3. Re: Help ! with win32lib David
David Cuny
>>Use the onEvent() trap; it will give you access to all the events that are
>>passed to a given control
Thanks
I take it that on event, passes ( msg, wparm, lparm ) to me.
Is there a way to define a user WM_message type ?
Bernie
4. Re: Help ! with win32lib David
Bernie Ryan wrote:
> I take it that onEvent, passes ( msg, wparm, lparm ) to me.
That's correct.
> Is there a way to define a user WM_message type ?
Not that I know of. What kind of problem are you trying to solve?
-- David Cuny
5. Re: Help ! with win32lib David
- Posted by Bernie Ryan <bwryan at PCOM.NET>
Jul 08, 1999
-
Last edited Jul 09, 1999
THANK YOU David for your help
I'am just playing around with code
I found the way to assign my own user message.
( of course windows reserved most of them for their own use )
The msg number ranges are
0 thru WM_USER -1 -- messages reserved for use by windows
WM_USER thru #7FFF -- integer msgs for use by private window classes
#8000 thru #BFFF -- reserved for future use by windows
#C000 thru #FFFF -- String msgs for use by applications that
used RegisterWindowMessage function
which defines a new message at run time
I guess this is the one to use.
Greater than #FFFF -- reserved for future use by windows