home *** CD-ROM | disk | FTP | other *** search
- Path: 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
-
-
-
- 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.
-