GSDP:GAM100/CProcessing/setWindowTitle()
From Inside
< GSDP:GAM100 | CProcessing
Revision as of 12:54, 13 October 2019 by >Zachary.logsdon (New page: {{GSDP:GAM100API.css}} = setWindowTitle() = == Description == Sets the title of the running program. ===Parameters=== setWindowTitle(const char* title) * title - (const char*) The strin...)
setWindowTitle()
Description
Sets the title of the running program.
Parameters
setWindowTitle(const char* title)
- title - (const char*) The string containing the title to change the title bar to.
Example Usage
void update()
{
// Set the window title to the number of frames that have passed.
char buffer[256] = { 0 };
sprintf_s(buffer, 256, "%d frames have passed", frameCount);
setWindowTitle(buffer);
}