SetWindowOrg怎么没效果??
SetWindowOrg怎么没效果?? Delphi / Windows SDK/API
http://www.delphi2007.net/DelphiMultimedia/html/delphi_2006120414281992.html
在delphi里这样调用:
结果提示调用失败:
if SetWindowOrgEx(self.Handle, -200, -300, nil) = false then
begin
ShowMessage('fail');
end;
self.Canvas.MoveTo(0, 0);
Self.Canvas.LineTo(100, 100);
请教错在哪里啊?是delphi的问题,还是我没理解
http://www.delphi2007.net/DelphiMultimedia/html/delphi_2006120414281992.html
在delphi里这样调用:
结果提示调用失败:
if SetWindowOrgEx(self.Handle, -200, -300, nil) = false then
begin
ShowMessage('fail');
end;
self.Canvas.MoveTo(0, 0);
Self.Canvas.LineTo(100, 100);
请教错在哪里啊?是delphi的问题,还是我没理解
结帖。。结帖。。。看错了。。忘记getdc了。。
发现自己犯了个错误。
老喜欢用GetDC(),
在delphi里,在上面这个问题里,就出现问题了,
一定要用self.canvas.handle才行...
有用windows绘图的朋友,有什么心得,共享下。
强烈鄙视问题解决后不结贴的人!
强烈鄙视技术问题解决后把贴子转移到非技术区的人!
鄙视你们!
http://community.csdn.net/Expert/topic/5216/5216675.xml?temp=.9262659
over