HWND hWnd = cwindow1.GetSafeHwnd();
::SendMessage(hWnd, WM_KEYDOWN, wParam, lParam);
What do my W and Lparams need to be to achieve the equivalent of a CTRL+L keystroke?
Also, in FindWindow:
The window caption is ever-changing, but the first part of it is always the same.
Application is always the start of the window handle. I want to be able to retrieve a CWnd pointer to that call to FindWindow regardless of what follows Application.
What should I do?