kitepad
kitepad
My find out a solution to reduce flickering : Perform ncpaint to paint all extended client rect. Below is my code for your information: LRESULT OnNCPaint() { int borderSize =...
And you need to change your nccalsize as below: NCCALCSIZE_PARAMS* params = (NCCALCSIZE_PARAMS*)lparam; RECT* clientRect = params->rgrc; if (IsMaximized(handle)) { clientRect->top += padding; clientRect->right -= padding + frameX; clientRect->left +=...
The simplest method is change background HBRUSH's color as title bar color . hBrush = CreateSolidBrush(title_bar_color); SetClassLongPtr(GCLP_HBRBACKGROUND, (LONG_PTR)hBrush);
[Test.zip.zip](https://github.com/grassator/win32-window-custom-titlebar/files/7861777/Test.zip.zip) It's build by visual studio 2022 community version.
@grassator Same issues is happened on my box when i add WS_MAXIMIZE style. And I have another try is handle WM_NCPAINT to paint all, it seems no white flickering on...