Tell me, how with the help of WM_SETTEXT from one program to transfer a message to another, what would the next header change?
FindWindow(NULL, "Calculator"); LRESULT SendMessage(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam); SendMessage(hWnd, WM_SETTEXT, 0, (LPARAM)"Заголовок-1"); HWND FindWindow(LPCTSTR lpClassName, LPCTSTR lpWindowName
NULL, and the second is the text of the window title. So - everything is in order. - acadeFindWindowmacro is expanded inFindWindowWand requires the second argumentconst wchar_t*. Try calling the function by sending a wide string:FindWindow(NULL, L"Calculator");. - acade