我用VB开发一个系统时,需要在MDI窗体上显示几行字,例如产品名称等
我用这几行语句:
dim DC as long
dim Text as string
Text="XXX系统"
dc=getdc(frmMDI.hwnd)
textout dc,0,0,Text,len(Text)
但好像在MDI窗体中没有用啊, 怎么办啊,各位高手帮帮忙,系统等着投入使用啊!
...全文
6615打赏收藏
高分求助,在线等待,急啊!
我用VB开发一个系统时,需要在MDI窗体上显示几行字,例如产品名称等 我用这几行语句: dim DC as long dim Text as string Text="XXX系统" dc=getdc(frmMDI.hwnd) textout dc,0,0,Text,len(Text) 但好像在MDI窗体中没有用啊, 怎么办啊,各位高手帮帮忙,系统等着投入使用啊!
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.