Search found 77 matches

by bloodlee
Mon Sep 01, 2008 5:51 am
Forum: C++ Development
Topic: How to get the default icons on MessageBox?
Replies: 4
Views: 1057

Thanks so much.
That's what I want.
by bloodlee
Mon Sep 01, 2008 4:58 am
Forum: C++ Development
Topic: How to get the default icons on MessageBox?
Replies: 4
Views: 1057

Thanks for your reply, mc2r.

But right now, I need some customized message boxes, which may have different buttons, not just YES/NO/Cancel buttons. I just want to keep the icons the same with the default ones.

Is there any API to get these stock bitmaps?
by bloodlee
Mon Sep 01, 2008 3:56 am
Forum: C++ Development
Topic: How to get the default icons on MessageBox?
Replies: 4
Views: 1057

How to get the default icons on MessageBox?

Hi all.

How to get the default icons which are shown on wxMessageBox, such as warning icon, error icon and etc.?

Thanks. :)
by bloodlee
Wed Aug 27, 2008 7:59 am
Forum: C++ Development
Topic: Transparent Bitmap Buttons
Replies: 2
Views: 722

Hi, dumb_aussie.

Please try

Code: Select all

dc.DrawBitmap(m_bitmap, 1, 1, true); // not false for the last parameter 
Wish it can help.

Regards.
by bloodlee
Tue Aug 26, 2008 11:03 am
Forum: C++ Development
Topic: How to put XRC file to binary file
Replies: 2
Views: 1893

Thanks, fantaz!
It works!
by bloodlee
Tue Aug 26, 2008 2:27 am
Forum: C++ Development
Topic: How to put XRC file to binary file
Replies: 2
Views: 1893

How to put XRC file to binary file

Hi, all.

I am trying to use XRC to define my GUI elements. But I don't want to deliver the XRC files with exe binary. Is there any convenient way to put the XRC file into binary, like .xpm?

Thanks in advanced! :)
by bloodlee
Mon Jul 21, 2008 7:30 am
Forum: wxWidgets Development (Chinese)
Topic: 如何才能使编译出来的可执行文件体积尽量小
Replies: 7
Views: 3796

刚才看到.NET2003下有一个编译选项Optimization->Favor Size or Speed->Favor Small Code.也许是你要找的.
by bloodlee
Mon Jul 21, 2008 7:23 am
Forum: Platform Related Issues
Topic: Porting from Win32
Replies: 4
Views: 1139

You mean you want to move you Win32 code to wx framework? If so, you should follow the rules of wx. Just override the callback function is not right, in my view. It may break the whole event handling mechanism of wx. There is a good article on CodeProject (URL:http://www.codeproject.com/KB/library/w...
by bloodlee
Mon Jul 21, 2008 7:12 am
Forum: wxWidgets Development (Chinese)
Topic: 如何才能使编译出来的可执行文件体积尽量小
Replies: 7
Views: 3796

尽量多使用动态链接的方式, 出来的EXE会小好多.
by bloodlee
Mon Jul 21, 2008 7:09 am
Forum: wxWidgets Development (Chinese)
Topic: 静态文本可不可以不用背景色,直接显示在背
Replies: 5
Views: 3190

Sorry for delay.

我的意思就是直接通过DC去写字, 而不是通过控件.
这样一来, Layout就会有问题了.

只是说说, :)
by bloodlee
Mon Jul 21, 2008 3:17 am
Forum: C++ Development
Topic: Variables in wxMessageBox,
Replies: 3
Views: 1125

First I think you should remove wxT before tempName and tempCost.

And wxString::Format() is a good choice for you.
by bloodlee
Tue Jul 08, 2008 8:50 am
Forum: wxWidgets Development (Chinese)
Topic: 关于destroy子窗口的内存释放问题
Replies: 11
Views: 5428

Hi, swallow.
推荐一个很好用的东西, 叫Visual Leak Detector的.
带着它, 先在PC下编译, 查查到底是哪漏了, 再做CE的BINARY.
这里有一篇中文的说明.
http://www.testage.net/AutoTest/Opentest/200609/896.htm
by bloodlee
Tue Jul 08, 2008 8:45 am
Forum: wxWidgets Development (Chinese)
Topic: 建了一个wxWidgets群:37708403
Replies: 4
Views: 2982

确实, 那个没什么人气!
by bloodlee
Tue Jul 08, 2008 8:42 am
Forum: wxWidgets Development (Chinese)
Topic: 静态文本可不可以不用背景色,直接显示在背
Replies: 5
Views: 3190

换个思路呢, 直接在背景上写字,不用wxStaticText. 就是MS Layout会有问题. :)
by bloodlee
Tue Jul 08, 2008 8:39 am
Forum: wxWidgets Development (Chinese)
Topic: 关于版权问题
Replies: 1
Views: 1539

应该是Totally free的吧.
我特意看了看wxwidgets的licence.
URL: http://www.wxwidgets.org/about/newlicen.htm