Search found 6 matches

by ChenA
Thu Mar 26, 2009 4:00 pm
Forum: wxWidgets Development (Chinese)
Topic: 什么窗口可以有toolbar?
Replies: 5
Views: 2572

Satervalley:
的确是可以,呵呵,谢谢了。
我还以为一定要通过SetToolBar这个接口加工具栏。
by ChenA
Wed Mar 25, 2009 2:37 pm
Forum: wxWidgets Development (Chinese)
Topic: 什么窗口可以有toolbar?
Replies: 5
Views: 2572

我做过实验,wxPanel 上可以加 toolbar,你是怎么做的? 谢谢你的回复。 我直接在我的wxFrame的派生类MyFrame的构造函数里创建了四个wxPanel。 new wxPanel(this,-1); 我看wxPanel的文档,只有TopLevelWindow才可以加toolbar。也就是wxFrame,wxDialog,wxPopupWindow,wxMDIParentFrame,wxMDIChildFrame这五个类,它们通过SetToolBar()这个函数加toolbar,而且只能加一个,多于一个要自己管理。 wxPanel没有SetToolBar这个函数,你是怎么加的啊?
by ChenA
Sun Mar 22, 2009 5:12 pm
Forum: wxWidgets Development (Chinese)
Topic: 关于wxWidgets的samples的编译
Replies: 12
Views: 6772

也可以用vc编啊。
nmake makefile.vc就行了。
by ChenA
Sun Mar 22, 2009 5:09 pm
Forum: wxWidgets Development (Chinese)
Topic: 什么窗口可以有toolbar?
Replies: 5
Views: 2572

什么窗口可以有toolbar?

我想实现一个xsi那样的界面,有四个子窗口,每个子窗口有一个toolbar。用wxPanel好像不行,不能加toolbar。wxDialog也不行。
应该用哪个?
或者说可以在标题栏上加按钮吗?
谢谢。
by ChenA
Sun Dec 14, 2008 10:02 am
Forum: C++ Development
Topic: My first "hello word" didn't run.
Replies: 3
Views: 573

radcapricorn wrote:Hmmm, didn't you accidentally forget to call wxFrame constructor from MyFrame one?
Yes,i forgot to call wxFrame constructor.
It's embarrassed to make such a mistake.
Thanks for your reply.
by ChenA
Sat Dec 13, 2008 7:15 pm
Forum: C++ Development
Topic: My first "hello word" didn't run.
Replies: 3
Views: 573

My first "hello word" didn't run.

I use the version 2.89 and vc2008,my os is vista. This is the error information: 03:07:42: ..\..\src\msw\frame.cpp(482): 'SetMenu' failed with error 0x00000578. I found this is caused by MyFrame instance create WINDOW failed,i set a break point in function MyFrame::MyFrame,the value of this->m_hWnd ...