MCPcopy Create free account
hub / github.com/CobaltFusion/DebugViewPP / GetWindowText

Function GetWindowText

Win32Lib/Win32Lib.cpp:452–462  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

450}
451
452std::wstring GetWindowText(HWND hWnd)
453{
454 int length = ::GetWindowTextLengthW(hWnd);
455 std::vector<wchar_t> text(length + 1);
456 if (::GetWindowTextW(hWnd, text.data(), length + 1) == 0)
457 {
458 if (auto err = GetLastError())
459 throw Win32Error(err, "GetWindowText");
460 }
461 return std::wstring(text.data(), length);
462}
463
464std::wstring GetDlgItemText(HWND hDlg, int idc)
465{

Callers 8

GetDlgItemTextFunction · 0.85
DisplayTabMethod · 0.85
UpdateTabTextMethod · 0.85
FindModifiedMethod · 0.85
SetValueMethod · 0.85
SetValueMethod · 0.85
OnButtonClickedFunction · 0.85
OnSysCommandMethod · 0.85

Calls 2

Win32ErrorClass · 0.85
dataMethod · 0.80

Tested by

no test coverage detected