With reference to the following code:
void CProgramTester::OnParentNotify(UINT message, LPARAM lParam)
CPoint ptButtonDown(LOWORD(lParam), HIWORD(lParam));
if ((message == WM_LBUTTONDOWN)
&& (ChildWindowFromPoint(ptButtonDown) == GetDlgItem(IDC_TEST_BUTTON)))
// Do stuff
Why doesn't the last test condition go to TRUE when the mouse is above the
button IDC_TEST_BUTTON. If I try the same thing with a OK or CANCEL button
it does go to TRUE???
Do I need some kind of cast?
I hope somebody can help. It is driving me crazy :)
Thanks in advance