Let's say the user has their cursor in edit box
IDC_EDIT1. How can I write an if-statement saying

if (cursor in IDC_EDIT1) MessageBox("IDC_EDIT1");

while if the cursor is in edit box IDC_EDIT2, how
can I write:

if (cursor in IDC_EDIT2) MessageBox("IDC_EDIT2");

I am trying to get the handle from an edit box and
I am absolutely stuck and appreciate, as always, any
response any one can give me.