home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / mswindo / programm / tools / 1961 < prev    next >
Encoding:
Text File  |  1993-01-10  |  1.4 KB  |  33 lines

  1. Newsgroups: comp.os.ms-windows.programmer.tools
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!jvnc.net!newsserver.jvnc.net!news.edu.tw!news!Net.nthu.edu.tw!Uz.nthu.edu.tw!yfwu
  3. From: yfwu@Uz.nthu.edu.tw (EE U780935)
  4. Subject: Re: VB 2.0 - using the clipboard?
  5. Message-ID: <1993Jan10.061010.5570%yfwu@Uz.nthu.edu.tw>
  6. Organization: National Tsing Hua University (HsinChu)
  7. References: <54540005@hpgrla.gr.hp.com>
  8. Date: Sun, 10 Jan 1993 06:10:10 GMT
  9. Lines: 22
  10.  
  11. The data you put in the Windows clipboard is only the hDC of pictures.
  12. The MDI child in your picturebox is not owned by the picturebox.
  13.  
  14. If you want to put picturebox and the MDI icons into clipboard, get the
  15. Desktop hWnd, then copy the area of your picture box on your screen to
  16. clipboard....
  17.  
  18. Here are some API call needed here...
  19.    GetDesktopWindow
  20.    GetDC, ReleaseDC, CreateCompatibleDC ,.... etc (I forget)
  21.    BitBlt
  22.    
  23.    The clipboard instuction in VB are not allowed here. So you must use 
  24. clipboard API function.
  25.  
  26. --
  27. ===============================================================================
  28.  Yu-Fu Wu                                        National Tsing-Hua University
  29.  e-mail: yfwu@uz.nthu.edu.tw                     Dept. of Electric Engineering
  30.                                                  Hsin-Chu City, 300
  31.  Like MS Visual Basic most!                      Taiwan, ROC
  32. ===============================================================================
  33.