RE: Help with w32Func(xSendMessage,{})

new topic     » goto parent     » topic index » view thread      » older message » newer message

Derek Parnell wrote:
> 
> 
> > -----Original Message-----
> > From: CoJaBo [mailto:cojabo at suscom.net]
> > Sent: Tuesday, 23 March 2004 10:03 AM
> > To: EUforum at topica.com
> > Subject: Help with w32Func(xSendMessage,{})
> >
> >
> > I am using w32Func(xSendMessage,{control,message,w,l}) to
> > send a simple
> > command to another program.
> > I have a few questions:
> > w32Func(xSendMessage,{control,message,w,l})
> > Is there any way to set control to send to all main program windows?
> 
> The 'control' parameter is the handle of a control. AFAIK, you can use
> HWND_BROADCAST to send to all main windows currently running.

HWND_BROADCAST has not been declared
HWND_BROADCAST
             ^



Press Enter...

Where is it defined?
> 
> > What can I use for message that won't happen normally and won't mess
> 
> You can define your own message types. See win32lib to see how we 
> defined
> one for searching...
> 
>     FINDMSGSTRING       = w32acquire_mem(0, "commdlg_FindReplace"),
>     w32FindReplaceMsg   = w32Func( RegisterWindowMessage, {
> FINDMSGSTRING } )
> 
> so now one can do ...
> 
>    w32Proc(xSendMessage, {HWND_BROADCAST, w32FindReplaceMsg, w, l })
> 
Exactly what I was looking for.
> 
> > How high/low can w and l be?
> 
> These are 32-bit values, meaning that you can send any integer in the 
> range
> #00000000 to #FFFFFFFF.
Thanks

> 
> --
> Derek
> 
>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu