Search found 70 matches

by hats
Mon Jun 21, 2010 6:22 pm
Forum: wxWidgets Development (Chinese)
Topic: wx怎么进行屏幕截图?
Replies: 1
Views: 1991

wx怎么进行屏幕截图?

想做个屏幕截图,要用到哪些类,怎么实现?
by hats
Tue Jun 15, 2010 3:50 pm
Forum: wxWidgets Development (Chinese)
Topic: wxThread 不知道是否创建成功?
Replies: 2
Views: 2607

没人么?
给个简单的wxThread例子也行啊
by hats
Mon Jun 14, 2010 4:07 pm
Forum: wxWidgets Development (Chinese)
Topic: wxThread 不知道是否创建成功?
Replies: 2
Views: 2607

wxThread 不知道是否创建成功?

有个函数很费时间,直接在OnButton事件中会堵塞GUI界面,使程序失去反映。 试了一下wxThread,但使用后用wndspy发现程序还是一个线程,而且还会堵塞GUI界面。大家看下这样使用wxThread正确吗? class MyThread : public wxThread { public: MyThread() : wxThread(){} ~MyThread() {} virtual ExitCode Entry() { return 0; } void Test(); //测试函数 }; class wxThreadDialog: public wxDialog { publi...
by hats
Mon Jun 14, 2010 3:51 pm
Forum: wxWidgets Development (Chinese)
Topic: 怎么加入弹出窗口
Replies: 2
Views: 2601

点击C::B的菜单->可视设计,然后Add wxDialog 或者 wxFrame
出现一个新窗体,在里面可以随意摆放控件。

关键的一步来了,将这个新的窗体类, 比如MyDialog或者 MyFrame
在之前的OnButton中实例化,之前要在button所在的文件添加新窗体的头文件,这样刚才新建的窗口就产生了。
by hats
Thu Jun 10, 2010 4:41 am
Forum: wxWidgets Development (Chinese)
Topic: wxSocket怎么传送文件呢?
Replies: 4
Views: 4470

wxSocket怎么传送文件呢?

如题,能做通讯了,但还不知道怎样传送文件,谁能给个小例子?
by hats
Sun Jun 06, 2010 6:46 pm
Forum: wxWidgets Development (Chinese)
Topic: codeblocks 10.05 正式版发布
Replies: 8
Views: 4868

用过了,很不错的。代码提示更智能了,界面设计多了wxAUI。
by hats
Tue May 11, 2010 2:38 pm
Forum: wxWidgets Development (Chinese)
Topic: wxSocket服务器端怎样向客户端发送信息?
Replies: 2
Views: 2316

搞定了,用vector保存一下sock标记
by hats
Tue May 11, 2010 2:25 pm
Forum: wxWidgets Development (Chinese)
Topic: wxGrid如何去掉表头?
Replies: 5
Views: 3489

谢谢楼上!
by hats
Sun May 09, 2010 1:16 pm
Forum: wxWidgets Development (Chinese)
Topic: wxGrid如何去掉表头?
Replies: 5
Views: 3489

wxGrid如何去掉表头?

wxGrid里的函数哪个可以去掉表头?
如下图,如何把1,2,3,4,5..该列去掉?
by hats
Thu Apr 29, 2010 8:30 am
Forum: wxWidgets Development (Chinese)
Topic: 求助,关于写wx的dll
Replies: 2
Views: 1855

wx是可以写DLL的,我用C::B写的,编译器是GCC3.4.5或VC8都能编写成功。
有一篇帖子提到了这个问题,你在论坛搜一下。
by hats
Sun Apr 04, 2010 5:10 pm
Forum: wxWidgets Development (Chinese)
Topic: wxSocket服务器端怎样向客户端发送信息?
Replies: 2
Views: 2316

wxSocket服务器端怎样向客户端发送信息?

最近再看wxSocket,想做一个通信试验。现在能用wxSocketClient向wxSocketServer发送数据了,但不知道怎样在wxSocketServer上向指定IP地址的wxSocketClient发送数据。在客户端上不要创建wxSocketServer,在服务器和客户端连接的情况下,让服务器也能向它发送数据。下面是我的测试程序和源码.C::B的工程,wx:2.8.10,MinGW3.4.5,希望大家帮助一下!
by hats
Tue Mar 23, 2010 6:57 am
Forum: wxWidgets Development (Chinese)
Topic: wxsizer在dll中失效?
Replies: 3
Views: 2155

在DLL里的Dialog上面放Panel也是可以的,事件也有相应,同exe程序差不多。
by hats
Sat Mar 20, 2010 3:10 pm
Forum: wxWidgets Development (Chinese)
Topic: 编译不过 wxDatabaseLayer!
Replies: 1
Views: 1836

编译不过 wxDatabaseLayer!

我想用wx连接数据库,因为2.9.x以上版本不再支持wxDb 所以我想用wxDatabaseLayer. 我的MySQL路径是E:\Program Files\MySQL\MySQL Server 5.0,wx版本是2.8.10 编译器是Code::Blocks自带的gcc3.4.5 我下了1.8版本的源码,修改makefile.gcc 如下 # Location of MySQL header files MYSQL_HEADER_LOCATION ?= E:\Program Files\MySQL\MySQL Server 5.0\include # Location of MySQL l...
by hats
Fri Oct 09, 2009 3:12 pm
Forum: C++ Development
Topic: Help!!! How to use wxWidgets in dll ?
Replies: 7
Views: 1655

I follow this article:
http://forums.wxwidgets.org/viewtopic.php?p=5964#5964

I use mingw.The code need to include "wx/msw/private.h". DllMain function also need to be exported,else it doesn't work.The strings need to add "_T()".
And then it work!
Thanks a lot!
by hats
Tue Oct 06, 2009 5:05 pm
Forum: wxWidgets Development (Chinese)
Topic: 如何在dll中使用wxWidgets?在线等!!
Replies: 2
Views: 5516

这么冷清?