Main Menu

AfxSetWindowText

Started by Paul Squires, August 01, 2025, 08:26:21 PM

Previous topic - Next topic

Paul Squires

AfxNova does not have AfxSetWindowText whereas WinAfx does.

Maybe you can add it back to AfxWin.inc.

I am creating a new project using AfxNova.
Paul Squires
PlanetSquires Software

José Roca

I can add it if you want, but you can use the Windows API SetWindowText, that does exactly the same.

Paul Squires

Quote from: José Roca on August 01, 2025, 08:45:14 PMI can add it if you want, but you can use the Windows API SetWindowText, that does exactly the same.

Yes, of course, but for the sake of symmetry it makes sense to have it included. AfxGetWindowText and AfxSetWindowText. 
Paul Squires
PlanetSquires Software

José Roca

Done. All that is needed is #define AfxSetWindowText SetWindowTextW