MCPcopy Create free account
hub / github.com/Kitware/VTK / AdjustWindowRectForBorders

Function AdjustWindowRectForBorders

Rendering/UI/vtkWin32HardwareWindow.cxx:73–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71namespace
72{
73void AdjustWindowRectForBorders(
74 HWND hwnd, DWORD style, const int x, const int y, const int width, const int height, RECT& r)
75{
76 if (!style && hwnd)
77 {
78 style = GetWindowLong(hwnd, GWL_STYLE);
79 }
80 r.left = x;
81 r.top = y;
82 r.right = r.left + width;
83 r.bottom = r.top + height;
84 BOOL result = AdjustWindowRect(&r, style, FALSE);
85 if (!result)
86 {
87 vtkGenericWarningMacro("AdjustWindowRect failed, error: " << GetLastError());
88 }
89}
90}
91
92void vtkWin32HardwareWindow::Create()

Callers 2

CreateMethod · 0.70
SetSizeMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected