Search found 13 matches

by xiaodahero
Fri Dec 18, 2009 3:32 am
Forum: wxWidgets Development (Chinese)
Topic: wxWidgets 设置鼠标形状
Replies: 3
Views: 2269

Re: wxWidgets 设置鼠标形状

有如下代码: void PaintMain::OnLeftDown( wxMouseEvent& event ) { //event.Skip(); SetCursor(wxCursor(wxCURSOR_CROSS)); ptOrigin = event.GetPosition(); } 但是当我按下鼠标左键时,鼠标指针并不编程wxCURSOR_CROSS的叉形状,为什么呢? 找到解决办法了,如下: 在设置鼠标后加入:event.Skip(); 即: SetCursor(wxCursor(wxCURSOR_SIZING)); ptOrigin = event.GetPosition(); ...
by xiaodahero
Tue Dec 08, 2009 6:13 am
Forum: wxWidgets Development (Chinese)
Topic: wxWidgets 设置鼠标形状
Replies: 3
Views: 2269

wxWidgets 设置鼠标形状

有如下代码:
void PaintMain::OnLeftDown( wxMouseEvent& event )
{
//event.Skip();
SetCursor(wxCursor(wxCURSOR_CROSS));
ptOrigin = event.GetPosition();
}

但是当我按下鼠标左键时,鼠标指针并不编程wxCURSOR_CROSS的叉形状,为什么呢?
by xiaodahero
Mon Nov 16, 2009 1:36 pm
Forum: wxWidgets Development (Chinese)
Topic: 加载位图的错误
Replies: 2
Views: 1735

加载位图的错误

我使用的源代码:

Code: Select all

wxIcon icon(wxT("controls.xpm"), wxBITMAP_TYPE_XPM);
wxBitmap bitmap2;
bitmap2.CopyFromIcon(icon);
出现的问题:
No image handler for type 9 defined
by xiaodahero
Sat Nov 14, 2009 7:42 am
Forum: wxWidgets Development (Chinese)
Topic: 求2D转3D的算法或思想,难易皆可
Replies: 3
Views: 2231

BlueDream wrote:这个东西在计算机视觉里找吧,一大堆坐标系加矩阵,很麻烦。
那有没有计算机视觉的比较经典的教材啊,或说资料等
by xiaodahero
Wed Nov 11, 2009 1:53 pm
Forum: wxWidgets Development (Chinese)
Topic: 求2D转3D的算法或思想,难易皆可
Replies: 3
Views: 2231

求2D转3D的算法或思想,难易皆可

我最近在做基于图像的三维重建,哪位高手有这方面的算法的,给我点拨一下,非常感谢[/i]
by xiaodahero
Sat Nov 07, 2009 12:06 pm
Forum: wxWidgets Development (Chinese)
Topic: wxWidgets Sample 在哪里下载
Replies: 2
Views: 1964

saintqdd wrote:你吧wxwidgets装在哪了,就在那个文件夹里面
thanks~
by xiaodahero
Sat Nov 07, 2009 1:20 am
Forum: wxWidgets Development (Chinese)
Topic: wxWidgets Sample 在哪里下载
Replies: 2
Views: 1964

wxWidgets Sample 在哪里下载

Cross-Platform GUI Programming 中总是提到Samples/*** 某目录
请问这个Samples 在哪里可以找到
by xiaodahero
Thu Nov 05, 2009 3:24 am
Forum: wxWidgets Development (Chinese)
Topic: wxGLCanvas::GetCurrent的头文件是什么啊
Replies: 1
Views: 1495

wxGLCanvas::GetCurrent的头文件是什么啊

wxGLCanvas::GetCurrent的头文件是什么啊
by xiaodahero
Thu Nov 05, 2009 12:47 am
Forum: wxWidgets Development (Chinese)
Topic: 绘制位图时出错
Replies: 0
Views: 1309

绘制位图时出错

wxBitmap bmp(wxT("actualsize.png"), wxBITMAP_TYPE_PNG);
dc.DrawBitmap(bmp, 250, 100, true);
编译通过
运行时出错:assert "bmp.Ok()" failed in wxDC : DoDrawBitmap() : invalid bitmap in wxDC : DrawBitmap

请高手指点一下啊
by xiaodahero
Mon Nov 02, 2009 10:25 am
Forum: wxWidgets Development (Chinese)
Topic: error C2065: “wxBufferedPaintDC”: 未声明的标识符
Replies: 2
Views: 1949

liuyug wrote:<wx/dcbuffer.h>

有这个吗
3Q, solved!
by xiaodahero
Sun Nov 01, 2009 3:16 am
Forum: wxWidgets Development (Chinese)
Topic: 请教高手 指导下 wxWidgets学习方法
Replies: 2
Views: 2221

请教高手 指导下 wxWidgets学习方法

才入门,对于wx不知道从何入手,请有经验的高手指点下,感激不尽
by xiaodahero
Sun Nov 01, 2009 3:15 am
Forum: wxWidgets Development (Chinese)
Topic: error C2065: “wxBufferedPaintDC”: 未声明的标识符
Replies: 2
Views: 1949

error C2065: “wxBufferedPaintDC”: 未声明的标识符

我在OnPaint函数中,将wxPaintDC改成wxBufferedPaintDC后报错6个error,其中有一个如题所示,改前编译无error,请教原因
by xiaodahero
Sun Nov 01, 2009 3:12 am
Forum: wxWidgets Development (Chinese)
Topic: =自我介绍=(新人可来这里对自己作自我介绍)
Replies: 146
Views: 207107

我正研究图形学,现在处于基类阶段,wx刚起步