I am trying to inherit from Micorsoft MFC CFrameWnd, in order to customize some specific function. This is a sample of my code:
void
MyClass::OnNcPaint() {
if ( ! custom)
return ::OnNcPaint() ;
CustomDraw() ;
}
My custom FrameWnd is hosting an OpenGL view.
It used to work quite well, but many problems arised as soon as I moved to Win 11, like the position of the window.
It seems that something has changed on dafault WM_NCPAINT handling running with Nvidia OpenGL provider.
Is it possible to see what did change between Win10 and Win11 or anyone has already met and solved this issue?
I tried to define a callback to DefWindowProc, that’s fixed the main issue but I get a lot of flickers.
Matteo Manzoni – DDX is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.