MDI没有提供HDC,所以也没办法直接在上面画,只能靠PictureBox了

解决方案 »

  1.   

    同意楼上,就直接用picturebox,或image被
      

  2.   

    其实MDI的背景更不可能用PictureBox做
    http://www.mvps.org/vbvision/_samples/MDI_Background_Demo.zip
    MDI Background Demo.zip (25KB)
       This project shows how you can use memory device contexts to create pictures that can be assigned to the picture property of a VB MDI parent form.  The project contains routines to stretch a bitmap across the background of the form and center a bitmap on top of a background as well as a routine for tiling a bitmap onto the background.  It also contains code to draw transparent bitmaps that is used when overlaying a foreground bitmap onto the background.  This project replaces a previous demo that used subclassing to attain a similar result.  The routines in this project are generic enough that they can be used with any VB form or control that has a picture property.
      

  3.   

    谢谢zyl910,你的这个例子是我真正需要的!