|
From: Geoff B. <Geo...@Vc...> - 2003-10-01 17:59:19
|
I am trying to setup a Push Button control that when pushed, runs a series
of commands, then calls itself to be run again. The reason behind this is
that there is another thread that needs to process some data prior to the
second half of the function being run. To do this I thought I could simply
send a message to my main window (put the message into the que) so that once
the other threads message has completed the button will be recalled.
However this does not seem to happen, it simply ignores my sendmesage (or so
it seems)
Code:
case 508:
switch(setup)
{
case 0:
FindSearch=FindInBuffer("]#",2);
if(FindSearch==1)
{
MessageBox(NULL,"Prompt
Check","Error",MB_OK|MB_ICONEXCLAMATION);
}
setup=1;
break;
case 1:
FindInBuffer("]#",1);
Command(" ",hwnd);
SendMessage(hwnd,WM_COMMAND,(WPARAM)NULL,(LPARAM)508);
break;
}
break;
End Code:
Does anyone know how to handle a situation like this?
> Thanks
> Geoff Baker
> Systems Integration Technologist
VCom (Formerly WaveCom)
> 150 Cardinal Place, Saskatoon, Sask. Canada S7L 6H7
> Phone: (306)955-7075 Ext 489 Fax:(306)955-9919
> Web Page: <http://www.vcom.com/>
>
>
|