Article View: comp.windows.ms.programmer
Article #483MFC and Custom Controls / WM_NCPAINT
From: Khun So
Date: Tue, 18 Aug 1992 15:59
Date: Tue, 18 Aug 1992 15:59
24 lines
1486 bytes
1486 bytes
I have a couple of questions on Windows developement using C/C++ 7.0.
Any insights on the subjects will be greatly appreciated.
1. How does one extend MFC to support custom controls
and other window classes? Specifically I would like
to derive a class from CWnd for the custom controls
I had developed. Many of my controls use extra bytes
per window instance (cbWndExtra!=0 in WNDCLASS data
structure). The current AfxRegisterWndClass always
sets cbWndExtra=cbClsExtra=0. Is there a simple way
to do this without modifying MFC source?
2. In processing WM_PAINT, BeginPaint() API is called
and an invalidated region of the window is returned.
What about WM_NCPAINT? Is there a way to detect only
the invalidated area in the non-client area for
painting? Or do I have to paint the entire non-client
area everytime?
Thanks in advance.
Technical Details
Message-ID:
<8304@ncratl.AtlantaGA.NCR.COM>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!rutgers!psinntp!psinntp!ncrlnk!ncratl!ksoShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!rutgers!psinntp!psinntp!ncrlnk!ncratl!kso From: kso@ncratl.AtlantaGA.NCR.COM (Khun So) Newsgroups: comp.windows.ms.programmer,comp.os.ms-windows.programmer.misc Subject: MFC and Custom Controls / WM_NCPAINT Keywords: Windows Development, Microsoft C/C++ Message-ID: <8304@ncratl.AtlantaGA.NCR.COM> Date: 18 Aug 92 15:59:45 GMT Organization: NCR Engineering and Manufacturing Atlanta -- Atlanta, GA Lines: 24