callRepaint method
Calls repaint resolving necessary parameters.
- Used by WindowClass.windowProcDefault.
Implementation
bool callRepaint({int? hdc}) {
ensureLoaded();
final hwnd = this.hwnd;
if (defaultRepaint) {
return false;
}
if (hdc == null) {
final ps = calloc<PAINTSTRUCT>();
final hdc = BeginPaint(hwnd, ps);
_callRepaintImpl(hwnd, hdc);
EndPaint(hwnd, ps);
} else {
_callRepaintImpl(hwnd, hdc);
}
return true;
}