|I'm trying to programmatically "click" a tab on a CTabCtrl.
My understanding is that I can use SendMessage to do that by using TCN_SELCHANGE. But I am also assuming that I need *something* in the lParam and/or wParam values. It seems to me that the index of the tab "clicked" has to be included in there somewhere and somehow. My question is how (or where)?
And where do I find things like this?
For example, I happened to find here at CodeProject some info on sending a MOUSEMOVE message to a window with the coordinates of the mouse position:
SendMessage(hWndTarget, WM_MOUSEMOVE, fFlags, MAKELPARAM(x,y));
Where do I find things like the fact that the lParam is for flags and the wParam is for the coordinates?
Any info is greatly appreciated. Thanks.