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 
  • Consider FindWindow + SetWindowText - acade
  • @acade FindWindow (NULL, "Calculator"); Is this the correct syntax? - obd obd
  • The documentation states that the first parameter can be NULL , and the second is the text of the window title. So - everything is in order. - acade
  • @acade problem is that when using this code, the Calculator highlights in red - obd obd
  • You probably have widescreen characters enabled and the FindWindow macro is expanded in FindWindowW and requires the second argument const wchar_t* . Try calling the function by sending a wide string: FindWindow(NULL, L"Calculator"); . - acade

0