home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / mswindo / programm / misc / 1388 < prev    next >
Encoding:
Internet Message Format  |  1992-08-18  |  1.4 KB

  1. Path: sparky!uunet!cis.ohio-state.edu!rutgers!psinntp!psinntp!ncrlnk!ncratl!kso
  2. From: kso@ncratl.AtlantaGA.NCR.COM (Khun So)
  3. Newsgroups: comp.windows.ms.programmer,comp.os.ms-windows.programmer.misc
  4. Subject: MFC and Custom Controls / WM_NCPAINT
  5. Keywords: Windows Development, Microsoft C/C++
  6. Message-ID: <8304@ncratl.AtlantaGA.NCR.COM>
  7. Date: 18 Aug 92 15:59:45 GMT
  8. Organization: NCR Engineering and Manufacturing Atlanta -- Atlanta, GA
  9. Lines: 24
  10.  
  11.  
  12.  
  13.     I have a couple of questions on Windows developement using C/C++ 7.0.
  14.     Any insights on the subjects will be greatly appreciated.
  15.  
  16.  
  17.         1. How does one extend MFC to support custom controls
  18.            and other window classes?  Specifically I would like
  19.            to derive a class from CWnd for the custom controls
  20.            I had developed.  Many of my controls use extra bytes
  21.            per window instance (cbWndExtra!=0 in WNDCLASS data
  22.            structure).  The current AfxRegisterWndClass always
  23.            sets cbWndExtra=cbClsExtra=0.  Is there a simple way
  24.            to do this without modifying MFC source?
  25.  
  26.  
  27.         2. In processing WM_PAINT, BeginPaint() API is called
  28.            and an invalidated region of the window is returned.
  29.            What about WM_NCPAINT?  Is there a way to detect only
  30.            the invalidated area in the non-client area for
  31.            painting?  Or do I have to paint the entire non-client
  32.            area everytime?
  33.  
  34.     Thanks in advance.
  35.