| 发表于:2007-04-21 14:50:214楼 得分:0 |
程序运行后自动 输出的例子: 添加一个模块,移除原来的窗体,粘贴一下代码 private declare function textout lib "gdi32 " alias "textouta " (byval hdc as long, byval x as long, byval y as long, byval lpstring as string, byval ncount as long) as long private declare function getdc lib "user32 " (byval hwnd as long) as long sub main() textout getdc(0), 100, 100, "hell world ", 10 end sub 手动输出例子: 新建窗体,放个按钮,粘贴一下代码: private declare function textout lib "gdi32 " alias "textouta " (byval hdc as long, byval x as long, byval y as long, byval lpstring as string, byval ncount as long) as long private declare function getdc lib "user32 " (byval hwnd as long) as long sub command1_click() textout getdc(0), 100, 100, "hell world ", 10 end sub 就这样了 | | |
|