Search found 5 matches

by infoworld
Wed May 21, 2014 5:01 pm
Forum: C++ Development
Topic: Fast DeleteRows cause wxGrid crash on DrawGridCellArea
Replies: 11
Views: 4257

Re: Fast DeleteRows cause wxGrid crash on DrawGridCellArea

Code: Select all

	int count = GetNumberRows();
	BeginBatch();
	for(int i = count - 1; i >= 0; --i)
	{
		DeleteRows(i,1);
	}
	EndBatch();
by infoworld
Fri May 09, 2014 8:24 am
Forum: wxWidgets Development (Chinese)
Topic: [已译完]Sockets FAQ/Tutorial
Replies: 12
Views: 18662

Re: [已译完]Sockets FAQ/Tutorial

各位兄弟们,能不能帮我看看这个问题。 最近用wxSocket和wxFile写了一个上传和下载文件的程序,可是上传完文件后再下载下来后,文件的大小是对的,而且TXT的文件是正常的。但是打开其他的文件时 就会报错说文件被破坏了。 服务器是64为的linux,客户机是32位的winXP wxFile * uf=new wxFile(path,wxFile::write); cloud_oper->Read(buffer,rs); rs = uf->Write(buffer,rs); if(uf->Error()) { wxMessageBox(_("传输数据中止!"),_("Error")); u...
by infoworld
Fri May 09, 2014 2:58 am
Forum: wxWidgets Development (Chinese)
Topic: 控件的ButtonUp和ButtonDown事件相关问题
Replies: 1
Views: 1817

Re: 控件的ButtonUp和ButtonDown事件相关问题

lianxu110 wrote:一个继承看wxWindow的控件,给它加了buttonDown和ButtonUp事件,为什么这两个事件只响应一个呢,当buttonDown事件设置了之后,就会只响应buttonDown事件,在没有设置ButtonDown事件的时候,才会调用ButtonUp事件,这是怎么回事呢,求解答!
参考我写的代码吧,你代码又不贴出来。
http://blog.csdn.net/infoworld/article/details/10830237
by infoworld
Fri May 09, 2014 2:56 am
Forum: wxWidgets Development (Chinese)
Topic: 绘制控件
Replies: 3
Views: 2341

Re: 绘制控件

我现在想将一个控件(wxWidgets自带的控件)绘制结果保存到图片中,比如:一个wxButton,我想将它在屏上显示的形状保存到一幅图片中,然后去特殊效果处理,不知道该怎么去做,谢谢! 奇怪,国外回复还要审核的? 用wxClientDC(wxButton)绑定wxButton,之后用wxMemoryDC来copy. wxMemoryDC temp_dc; temp_dc.SelectObject(test_bitmap); // We can now draw into the memory DC... // Copy from this DC to another DC. temp_dc...