Search found 6 matches

by yeyouqun
Tue Aug 10, 2010 1:50 pm
Forum: C++ Development
Topic: wxSplashScreen cant catch any event?
Replies: 2
Views: 726

Thanks a lot, I have solved this problem by writing my own splash windows implementation.
by yeyouqun
Sun Aug 08, 2010 9:36 am
Forum: C++ Development
Topic: xmp to bmp splash screen transparency
Replies: 4
Views: 1155

This can solve your problem.

// // gimu app splash window's implementation. // Author:[email protected].com // 2010-8-7 // #include <gmpre.h> #include <wx/event.h> #include <wx/splash.h> #include <wx/region.h> #include "gimusplash.h" #include "gimuframe.h" IMPLEMENT_DYNAMIC_CLASS(GmSplashWindow, wxTopLevelWindow) BEGIN_EVENT_TABLE(G...
by yeyouqun
Sun Aug 08, 2010 3:57 am
Forum: C++ Development
Topic: wxSplashScreen cant catch any event?
Replies: 2
Views: 726

wxSplashScreen cant catch any event?

Hi,all I use wxSplashScreen in my app, but I have something to be done before showing the splash, but it seems that no event can be caught be the splash window, for example EVT_PAINT, EVT_ERASE_BACKGROUND, and etc. Only the EVT_CLOSE can be handled by myself. I tried some other methods, such as rewr...
by yeyouqun
Sat Aug 07, 2010 1:48 pm
Forum: wxWidgets Development (Chinese)
Topic: 透明 wxStaticText
Replies: 3
Views: 3688

用下面的解决了:

WXHBRUSH GmTransStaticText::MSWControlColor (WXHDC pDC, WXHWND hWnd)
{
SetBkMode ((HDC)pDC, TRANSPARENT);
return (*wxTRANSPARENT_BRUSH).GetResourceHandle ();
}
by yeyouqun
Mon Aug 02, 2010 7:06 am
Forum: wxWidgets Development (Chinese)
Topic: 透明 wxStaticText
Replies: 3
Views: 3688

透明 wxStaticText

我在实现一个进度条控件,并在中间放一个百分比指示器,但是窗口中因为背景颜色不同,导致一个明显的方块。我现在想只在上面控件是透明的如何做。我高过改写 MSWControlColor 这个方法,也试过加入 EVT_ERASE_BACKGROUND 事件处理函数,但是都没有用。

我该如何实现透明的 wxStaticText 呢?

我的平台是WindowXP64,VS2009。
by yeyouqun
Mon Aug 02, 2010 7:01 am
Forum: wx.NET
Topic: Transparent wxStaticText
Replies: 0
Views: 3411

Transparent wxStaticText

Hi, I am implementing a gauge control with a percentage indicator at the center of the gauge.The indicator is wxStaticText, but the color of background is not the same as gauge's,so the static text windows has a obvious rect.I have tried some methods,such as override the MSWControlColor of wxControl...