Re: check if programme exist with HWND
- From: "Guido Franzke" <guidof73@xxxxxxxx>
- Date: Tue, 22 May 2007 11:42:06 +0200
Ok, now I ask myself what happens in Windows with the "lost" message.
Do you think, Windows or my application can crash if I send a message to a
HWND that no longer is valid?
Should I use try-catch with SendMessage?
Regards, Guido
if(IsWindow(hWnd)) // is a window
{
// crashes
SendMessage(WM_COPYDATA,...); // lost
}
so there is no guaranteed way to do this reliably.
joe
.
- Follow-Ups:
- Re: check if programme exist with HWND
- From: Tom Serface
- Re: check if programme exist with HWND
- From: Joseph M . Newcomer
- Re: check if programme exist with HWND
- References:
- check if programme exist with HWND
- From: Guido Franzke
- Re: check if programme exist with HWND
- From: Joseph M . Newcomer
- check if programme exist with HWND
- Prev by Date: How to retain keybord focust in MFC ActiveX
- Next by Date: Re: Combo box getting hidden
- Previous by thread: Re: check if programme exist with HWND
- Next by thread: Re: check if programme exist with HWND
- Index(es):
Relevant Pages
|