VB lineto 、 MoveToEx 、 桌面画线。 - VB / API
我想实现在桌面画两条线横竖两条。
为什么我用lineto 画出来的起始点是0,0 。?
能不能自己设置。?
如果是画的虚线就更好了。
如果能再设置下透明度。。。。。
要实现的效果。
在屏幕中央画出一个十字的图案出来。
不管是什么API 。
只要能实现这个效果就成。
用MoveToEx移画笔位置
The MoveToEx function updates the current position to the specified point and optionally returns the previous position.
BOOL MoveToEx(
HDC hdc, // handle to device context
int X, // x-coordinate of new current position
int Y, // y-coordinate of new current position
LPPOINT lpPoint // pointer to old current position
);
自己标题上不是写了movetoex么, 难道没用?
GDI+
我用了movetoex。
不过还是在0,0那里开始画啊。
何不贴代码呢,这种情况,谁知道你代码怎么写的啊:)
VB code:
Option Explicit
Private Declare Function LineTo Lib "gdi32" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long) As Long
Private Declare Function MoveToEx Lib "gdi32" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, lpPoint As Long) As Long
Private Declare Function GetDC Lib "user32" (ByVal hwnd As
相关问答:
我想把word另存为xml之后,用vb读取这个xml的内容,请问如何实现?
dim f as integer
dim b() as byte
dim s as string
dim L as long
f=freefile()
open "abc.xml" for binary access read as #f
......
dim a as string,b as string,c as string
a="工程编号,单位工程名称,分部工程编号"
b="单位工程名称"
c="单位"
怎么才能判断出a字符串中存在b字符串,而不存在c字符串
看看i ......
我的要求是:通过抓取别的程序上的表格的句柄,然后读取这个表格的内容。
表格句柄(类名:MSFlexGridWndClass)我已抓到,接下来如何读取表格的内容就不会了?求助。
能把代码发来学习下不?
244326867@qq.com ......
有两个问题
第一个问题:
网页源码
<td><select name="question" onchange="showcustomquest(this.value)" tabindex="4"><option value="0">无安全问 ......