You guys (you experienced dev guys here) know I always tug on your pants when I encounter a problem that I can't solve, so... here's my issue.
I'm trying to simulate a double click using Windows messaging and my Googling has been to date, unproductive. I spy on the application double click and the HITTEST I need to recreate is...
WM_NCHITTEST nHittest:HTCLIENT
...but no matter how I format the message my return always comes back as ...
WM_NCHITTEST nHittest:HTNOWHERE
My code string is ...
SendMessage(hWnd, WM_NCHITTEST, 1, SetCoord(X,Y))
... with the 1 being (supposedly) representative of HTCLIENT. What am I doing wrong there?
P.S. ... WM_LBUTTONDBLClICK doesn't work here which is why I'm trying to recreate the messages I see on Spy after a double click.
Here is what those messages look like in Spy++ with some of the intermediate message removed ...
<00226> 000102F6 S WM_NCHITTEST xPos:783 yPos:272
<00227> 000102F6 R WM_NCHITTEST nHittest:HTCLIENT
<00228> 000102F6 S WM_MOUSEACTIVATE hwndTopLevel:000102F6 nHittest:HTCLIENT uMsg:WM_LBUTTONDOWN
<00306> 000102F6 S WM_SETCURSOR hwnd:000102F6 nHittest:HTCLIENT wMouseMsg:WM_LBUTTONDOWN
<00307> 000102F6 R WM_SETCURSOR fHaltProcessing:True
<00308> 000102F6 P WM_LBUTTONDOWN fwKeys:MK_LBUTTON xPos:121 yPos:89
My code returns this in Spy++ ...
<00226> 000102F6 S WM_NCHITTEST xPos:783 yPos:272
<00227> 000102F6 R WM_NCHITTEST nHittest:HTNOWHERE
<00228> 000102F6 S WM_MOUSEACTIVATE hwndTopLevel:000102F6 nHittest:HTNOWHERE uMsg:WM_LBUTTONDOWN
<00306> 000102F6 S WM_SETCURSOR hwnd:000102F6 nHittest:HTNOWHERE wMouseMsg:WM_LBUTTONDOWN
<00307> 000102F6 R WM_SETCURSOR fHaltProcessing:True
<00308> 000102F6 P WM_LBUTTONDOWN fwKeys:MK_LBUTTON xPos:121 yPos:89
Thanks for helping the truly retarded.