The
ShowWindow
function sends a
WM_WINDOWPOSCHANGING
message too. You have to block reentering your message handler if you call the
ShowWindow
function.
i.e.:
void myclass::onwindowposchanging()
{
static int block = 0;
if(0==block)
{
block=1;
ShowWindow(SW_HIDE);
MessageBox(0,__TEXT(""),__TEXT(""),0);
block=0;
}
}
Regards.