MCPcopy Create free account
hub / github.com/bulletphysics/bullet3 / setWindowTitle

Method setWindowTitle

examples/OpenGLWindow/Win32Window.cpp:534–552  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

532}
533
534void Win32Window::setWindowTitle(const char* titleChar)
535{
536#ifdef _WIN64
537 SetWindowTextA(m_data->m_hWnd, titleChar);
538#else
539#ifdef UNICODE
540 DWORD dwResult;
541 SendMessageTimeoutA(m_data->m_hWnd, WM_SETTEXT, 0,
542 reinterpret_cast<LPARAM>(titleChar),
543 SMTO_ABORTIFHUNG, 2000, &dwResult);
544#else
545 DWORD dwResult;
546 SendMessageTimeout(m_data->m_hWnd, WM_SETTEXT, 0,
547 reinterpret_cast<LPARAM>(titleChar),
548 SMTO_ABORTIFHUNG, 2000, &dwResult);
549
550#endif
551#endif
552}
553
554void Win32Window::createWindow(const b3gWindowConstructionInfo& ci)
555{

Callers 6

mainFunction · 0.45
mainFunction · 0.45
SimpleOpenGL3AppMethod · 0.45
SimpleOpenGL2AppMethod · 0.45
BInitMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected