愤怒!!回答问题回成恶人了!!!!-我这次贴全部的聊天记录!!!

CraxyMouse 2008-10-24 11:53:34
澄清一个情况,中间没有回答问题是因为我有事没有做回答!!
晕死,现在问问题的都成大爷了!

回答问题成了恶人了!!!帖子如下!
http://topic.csdn.net/u/20081023/16/6faa4f6a-7315-4d13-b343-5d890a4ccd90.html?seed=153666746

原话聊天如下!!!! 没有任何删改!

居中调停塔(390467507) 20:14:47
请问,窗口大小变化时如何获取它的坐标的偏移量
居中调停塔(390467507) 20:15:05
管理员?
CraxyMouse <xutongchun@163.com> 20:15:50
location
居中调停塔(390467507) 20:16:12
哦,我看看
CraxyMouse <xutongchun@163.com> 20:16:20
这个就是窗口的左上角的坐标
居中调停塔(390467507) 20:16:47
??要是任意一点呢
CraxyMouse <xutongchun@163.com> 20:17:07
什么意思
居中调停塔(390467507) 20:18:11
“这个就是窗口的左上角的坐标”我不明白这句的意思
CraxyMouse <xutongchun@163.com> 20:18:57

居中调停塔(390467507) 20:19:16
窗口大小变化时会触发Paint事件吧?
CraxyMouse <xutongchun@163.com> 20:19:17
这个点就是location的坐标点!
CraxyMouse <xutongchun@163.com> 20:19:22
是的
CraxyMouse <xutongchun@163.com> 20:19:41
如果你要在paint里做图的话建议你
CraxyMouse <xutongchun@163.com> 20:19:48
采用重写的方式
居中调停塔(390467507) 20:20:01
重写Onpaint?
CraxyMouse <xutongchun@163.com> 20:20:11
protected override void onpaint(painteventarges e)
{
}
居中调停塔(390467507) 20:21:58
假如窗口初始化时有一点(50,50),全屏后,如何获取这点的坐标的偏移量?还是用location么?
CraxyMouse <xutongchun@163.com> 20:23:06
你是想最大后这个还不变吗?
CraxyMouse <xutongchun@163.com> 20:24:15
如果这个点是在form中的那这个点应该还是50,50
居中调停塔(390467507) 20:24:42
对,就是这样,因为有背景图片,我想让这点还在图片原位置,无论窗口大小怎么变化
居中调停塔(390467507) 20:25:12
对,可已不在图片原位置了
CraxyMouse <xutongchun@163.com> 20:26:08
那最大化后你的点50,50就应该是没有最大化时个的form的location.X+50,Y的点坐标应该是location.Y+50
居中调停塔(390467507) 20:28:41
管理员还在么?
CraxyMouse <xutongchun@163.com> 20:29:04


居中调停塔(390467507) 20:29:26

居中调停塔(390467507) 20:38:30
怎么样?有解决方案么
CraxyMouse <xutongchun@163.com> 20:38:53
不是说了吗
居中调停塔(390467507) 20:39:27
你说重写onpaint?
CraxyMouse <xutongchun@163.com> 20:39:39
那最大化后你的点50,50就应该是没有最大化时个的form的location.X+50,Y的点坐标应该是location.Y+50
居中调停塔(390467507) 20:43:34

居中调停塔(390467507) 20:56:13
版主,我想问一下,panel_paint事件是只在初始化时运行一次,还是panel大小每次变化时都会运行一次
CraxyMouse <xutongchun@163.com> 20:57:47
你查一下msdn吧
居中调停塔(390467507) 20:59:13
我不明白重绘是啥意思啊?它说重绘是指窗口大小发生变化吗
CraxyMouse <xutongchun@163.com> 20:59:44
是的
居中调停塔(390467507) 21:13:13
。。。。。。。。。。。。。。。
居中调停塔(390467507) 21:16:00
吭个声啊

居中调停塔(390467507) 21:54:09
CraxyMouse,你说的那些狗屁方法屁用都没有,牛头不对马嘴,以后别去csdn骗分了!
秋天的菠菜(4103307) 22:00:28
有话好好说,呵呵,别动气
居中调停塔(390467507) 22:04:59
这人答非所问还装深沉,提问还没解决就夸口说要研究图形去他博客,真是可笑
CraxyMouse <xutongchun@163.com> 22:13:27
晕死!
CraxyMouse <xutongchun@163.com> 22:13:39
不知道怎么说你好了!
CraxyMouse <xutongchun@163.com> 22:15:25
连最基本的术语也不明白,那我怎么跟你沟通,如果你不明白什么叫重绘,请到www.baidu.com查找什么要重绘!
居中调停塔(390467507) 23:31:29
你去开个贴把我那150给吐出来!
CraxyMouse <xutongchun@163.com> 23:31:57

ddkc_c(78925995) 23:32:32

CraxyMouse <xutongchun@163.com> 23:32:48
这里不欢迎人品有问题的人!请自觉离开!
ddkc_c(78925995) 23:32:49
这种事也有
居中调停塔(390467507) 23:33:12
http://topic.csdn.net/u/20081016/23/2eb2d2fa-4783-4179-90a5-6c43720e6a60.html自己去看看吧
CraxyMouse <xutongchun@163.com> 23:36:22
我给你的代码你试了吗?
CraxyMouse <xutongchun@163.com> 23:36:39
public partial class Form4 : Form
{
public Form4()
{
InitializeComponent();
}

protected override void OnPaint(PaintEventArgs e)
{
e.Graphics.FillRectangle(new SolidBrush(Color.FromArgb(70, Color.SkyBlue)), new Rectangle(0, 0, this.Width / 2, this.Height / 2));
//base.OnPaint(e);
}

private void Form1_Resize(object sender, EventArgs e)
{
this.Refresh();
}

}
CraxyMouse <xutongchun@163.com> 23:36:49
这是一个完整的项目!
CraxyMouse <xutongchun@163.com> 23:36:59
窗体文件!
居中调停塔(390467507) 23:37:30
我试3遍了
居中调停塔(390467507) 23:37:52
所以才给你发那话
CraxyMouse <xutongchun@163.com> 23:37:57
可否能正常运行
居中调停塔(390467507) 23:38:06

居中调停塔(390467507) 23:38:11
还是老样子
CraxyMouse <xutongchun@163.com> 23:39:34
我没有权限退分给你!我马上发贴叫管理来帮把分退给你!
居中调停塔(390467507) 23:40:38
行啊
ddkc_c(78925995) 23:41:16
你的panel是继承的么
居中调停塔(390467507) 23:41:40
是tablelayoutpanel
ddkc_c(78925995) 23:48:25
你的直线是在From的Paint事件中画的,是么
居中调停塔(390467507) 23:48:57
在tablelayoutpanel_Paint中画的
CraxyMouse <xutongchun@163.com> 23:50:09
http://topic.csdn.net/u/20081022/23/bd538945-d2e9-462e-8ae3-b4e301c730ca.html
ddkc_c(78925995) 23:51:00
也就是你在tablelayoutpanel上画了两条线,坐标是以这个panel的左上角顶点为原点的,对么
Erosh(33360761) 23:51:45
谁有网页播放视频的代码呀,请问
居中调停塔(390467507) 23:52:32
是以(181,128)为原点
居中调停塔(390467507) 23:53:21
哇,还把原文全盘播放,想打击我啊,干嘛不把那些星号也去掉啊
CraxyMouse <xutongchun@163.com> 23:54:55
public partial class UserControl2 : TableLayoutPanel
{
public UserControl2()
{
InitializeComponent();
}

protected override void OnPaint(PaintEventArgs e)
{
//base.OnPaint(e);
e.Graphics.FillRectangle(new SolidBrush(Color.FromArgb(70, Color.SkyBlue)), new Rectangle(0, 0, this.Width / 6, this.Height / 6));
}
}
CraxyMouse <xutongchun@163.com> 23:55:04
自己试吧!
CraxyMouse <xutongchun@163.com> 23:55:16
请多思考
居中调停塔(390467507) 23:56:00
你这样的只会被人带,不可能带人的
CraxyMouse <xutongchun@163.com> 23:57:09
我开这个群是因为有很多人问我关天barcode相关的问题,我才开这个群的,群本来就是一个讨论问题的地方并不存在谁带谁的问题
CraxyMouse <xutongchun@163.com> 23:57:20
有问题大家一起讨论!

居中调停塔(390467507) 00:01:25
不用TranslateTransform这方法也一样吧
居中调停塔(390467507) 00:01:41
应该要用相对坐标才行
ddkc_c(78925995) 00:01:51
你是在Paint中调用TranslateTransform的?
居中调停塔(390467507) 00:02:06
算了,我去查查相对坐标方面的资料
ddkc_c(78925995) 00:03:04
呵呵,用坐标变换很容易让人糊涂
居中调停塔(390467507) 00:05:34
CraxyMouse你去把你发那帖子删除了!把QQ群里的话贴出来算什么,还装摸作样用星号!
ddkc_c(78925995) 00:06:26
不要激动,别个也是好心啊,CSDN那个分又不值钱
...全文
683 78 打赏 收藏 转发到动态 举报
写回复
用AI写文章
78 条回复
切换为时间正序
请发表友善的回复…
发表回复
lukyfish 2008-11-02
  • 打赏
  • 举报
回复
呵呵。。。
China456 2008-10-31
  • 打赏
  • 举报
回复
希望LZ现在的心情好多了,对此事予以同情与愤慨。
leo_bogard 2008-10-30
  • 打赏
  • 举报
回复
可能人家是北方人,说话直了点吧
Jeff Xiong 2008-10-26
  • 打赏
  • 举报
回复
77777777
hzmyxy 2008-10-26
  • 打赏
  • 举报
回复
up
pdsnet 2008-10-26
  • 打赏
  • 举报
回复
郁闷~ 那些人还是少数的
yytt123622 2008-10-25
  • 打赏
  • 举报
回复
问人问题,人家只要回答了就要说声谢谢!这叫常识!支持楼主!
xuan.ye 2008-10-25
  • 打赏
  • 举报
回复
brallow 2008-10-25
  • 打赏
  • 举报
回复
强烈呼唤CSDN黑名单……
亦风亦尘 2008-10-25
  • 打赏
  • 举报
回复
可怜的楼主,同情。
hecker728 2008-10-25
  • 打赏
  • 举报
回复
同情
优途科技 2008-10-24
  • 打赏
  • 举报
回复
诶~ 现在的孩子怎么都这么浮躁呢!
楼主不要计较了。这种人不多。
sxmonsy 2008-10-24
  • 打赏
  • 举报
回复
别计效了,CSDN这个林子什么鸟都有的.
lovehongyun 2008-10-24
  • 打赏
  • 举报
回复
平常心.

不用生气.
fellowcheng 2008-10-24
  • 打赏
  • 举报
回复
表计较了,和气为贵
gtiroy 2008-10-24
  • 打赏
  • 举报
回复
顶~

楼主不要和计较这些。
sunningliu 2008-10-24
  • 打赏
  • 举报
回复
这种人,不要理他。没劲
wartim 2008-10-24
  • 打赏
  • 举报
回复
Eagle_ice 2008-10-24
  • 打赏
  • 举报
回复
平常心 消消气...
销魂的拖拉机 2008-10-24
  • 打赏
  • 举报
回复
生气容易伤身
加载更多回复(58)

7,765

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 非技术区
社区管理员
  • 非技术区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧