Search found 8 matches

by 宝挖小子
Sat Jun 24, 2017 3:27 pm
Forum: C++ Development
Topic: can i insert msg in the head ( wxMessageQueue )
Replies: 3
Views: 1752

Re: can i insert msg in the head ( wxMessageQueue )

doublemax wrote:wxMessageQueue is a very small, header-only class defined in <wxdir>/include/msgqueue.h

You can copy that file to your own project, rename the class and then modify it.
yeah,that seems a good idea
by 宝挖小子
Fri Jun 23, 2017 1:35 am
Forum: C++ Development
Topic: can i insert msg in the head ( wxMessageQueue )
Replies: 3
Views: 1752

can i insert msg in the head ( wxMessageQueue )

can i insert msg in the head ( wxMessageQueue )
eg:
wxMessageQueue <int> msg;
msg={1,2,3,4,5}

now i want insert data 10 make msg={10,1,2,3,4,5};

can wxMessageQueue do this?

i just want the next msg.front=10;

or has some other class like as wxMessageQueue ,thread safe?
by 宝挖小子
Thu Dec 29, 2016 12:19 pm
Forum: C++ Development
Topic: how can clear the bitmap text
Replies: 6
Views: 2294

Re: how can clear the bitmap text

doublemax wrote:Draw a white (or whatever color you want) rectangle over the whole area to clear it.
that seems the deadline solution
by 宝挖小子
Thu Dec 29, 2016 12:19 pm
Forum: C++ Development
Topic: how can clear the bitmap text
Replies: 6
Views: 2294

Re: how can clear the bitmap text

Hi, Is the code you posted in the wxEVT_PAINT handler? If not, put it there. Also, just use some kind of flag whether to clear the dc or not. In wxEVT_PAINT check the flag and call appropriate functionality. Thank you. use dc->clear( ) ? let me have a try~ ------------------------------------------...
by 宝挖小子
Wed Dec 28, 2016 2:20 pm
Forum: C++ Development
Topic: how can clear the bitmap text
Replies: 6
Views: 2294

Re: how can clear the bitmap text

it still append the bitmap
by 宝挖小子
Wed Dec 28, 2016 2:19 pm
Forum: C++ Development
Topic: how can clear the bitmap text
Replies: 6
Views: 2294

how can clear the bitmap text

i use wxgcdc.drawtext draw some text in the wxbitmap ,then how to clear the drawed text? the wxgcdc.clear() has no effect! as: wxBitmap theBackground = tsutil::CreateBitmapFromResource(IDR_IMAGE_CLOUD); wxMemoryDC bdc(theBackground); wxGCDC dc(bdc); dc.DrawText("test text", (GetRect().widt...
by 宝挖小子
Fri Dec 23, 2016 6:48 am
Forum: wxWidgets Development (Chinese)
Topic: wxGCDC,wxMemoryDC,wxDC的区别?
Replies: 2
Views: 15978

wxGCDC,wxMemoryDC,wxDC的区别?

在看文档时,wxGCDC,wxMemoryDC,wxDC分别用在什么场合?区别是什么啊?
还有怎么把如下图所示被挡住的文字显示?我要显示ab的结果b被下面的横线所在图片挡住了~