Guidance
指路人
g.yi.org
Guidance Forums
/
wxWidgets (wxWindows) in C++
/ wxStaticBitmap problems with setting an image
最新
搜索
论坛
Reginald Rexx
STC(宏晶)单片机与电路设计
wxWidgets (wxWindows) in C++
奇瑞QQ车友论坛
生活信息交流与学习角
质量与可靠性
Rapid-Q Basic
FreeBasic
Reginald
Forum
Examples
RapidQ
Forum
Bugs
Examples
Resource
RQ Doc
RQ Intro
System
LeonAutoBackup
Home
Software
App
Lib
RapidQ
Reginald
Upload
Chrononet
回顶部
⇑
Forum List
•
Thread List
•
Refresh
•
New Topic
•
Search
•
Previous
•
Next
1
1.
wxStaticBitmap problems with setting an image
#5734
Posted by:
2005-01-22 04:09:15
i don't know what do i do wrong but every time i try to set an image or bitmap to a wxStaticBitmap window the program stops (at the debugging stage), here i will paste a code i think everything is ok
{
wxString FILENAME2 = wxFileSelector("Choose panorama image","","",NULL,"Any File|*.*",wxOPEN|wxFILE_MUST_EXIST);
if ( FILENAME2.IsEmpty() == true ) return ;
wxBitmap bitmap_obj;
if (!bitmap_obj.LoadFile(FILENAME2, wxBITMAP_TYPE_ANY))
return;
if (!bitmap_obj.Ok()) return;
GetNewTest()->SetBitmap(bitmap_obj);
}
and
wxStaticBitmap* GetNewTest() { return (wxStaticBitmap*) FindWindow( ID_NewTest ); }
thx for any help
Forum List
•
Thread List
•
Refresh
•
New Topic
•
Search
•
Previous
•
Next
1
掌柜推荐
¥880.00
双福SRE-PD3H速度继电器转速监控器欠速超速柴油机飞车打滑保护器
¥291.00
双福N1H-4A-55转速传感器探头霍尔齿轮测速M16*1免磁铁测高速零速
¥738.00
双福D2H-3C-32双向齿轮转速传感器正反转不锈钢耐压力法兰4线推挽
¥980.00
SME-PD3H双路冗余输入可编程速度继电器转速监控超速保护厂家直销
¥289.00
双福N1H-5A-55转速传感器探头霍尔齿轮测速M18*1.5免磁铁可船用
¥289.00
双福N1H-5C-70转速传感器霍尔齿轮测速全螺纹M18*1.5速度探头3线
©
Fri 2025-5-9
Guidance Laboratory Inc.
Email:
webmaster1
g.yi
.
org
Hits:
0