21.09.2025, 01:11 AM
I was looking at the resizing cursor issue. For sure the transparency is messing with the WM_NCHITTEST 'ing for the borders and the status bar grip sizer. For giggles I reverted back to the classic frame, but this introduced flicker issues with your toolbar.
Added %WM_CLIPCHILDREN to your dialog and under WM_INITDIALOG...
I tried adding a double buffer to your toolbar drawing but no luck so far reducing the flicker while resizing.
Added %WM_CLIPCHILDREN to your dialog and under WM_INITDIALOG...
Code:
'-disable DWM non-client rendering for classic borders
LOCAL policy AS LONG
policy = %DWMNCRP_DISABLED
LOCAL lReturn AS LONG
CALL DwmSetWindowAttribute(hDlg, %DWMWA_NCRENDERING_POLICY, BYVAL VARPTR(policy), 4)
'-force frame redraw to apply changes
SetWindowPos hDlg, 0, 0, 0, 0, 0, %SWP_FRAMECHANGED OR %SWP_NOMOVE OR %SWP_NOSIZE OR %SWP_NOZORDER
RedrawWindow hDlg, BYVAL 0, BYVAL 0, %RDW_FRAME OR %RDW_INVALIDATE
I tried adding a double buffer to your toolbar drawing but no luck so far reducing the flicker while resizing.