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
掌柜推荐
¥995.00
DRE-PE2H-AC智能双向速度继电器超速欠速正反转保护测速仪转速表
¥920.00
SRE-PE3H CRS125速度继电器转速监控超速欠速保护数显线速度表
¥1,280.00
双福SDE-PE2H-AC差动转速速度继电器超欠速差速报警打滑监测
¥880.00
双福SRE-AD0H转速脉冲频率电流电压模拟量变送器模块4~20mA带显示
¥1,380.00
SRE-AD2M智能速度继电器欠超速保护转速监控带20mA5V10V模拟输出
¥410.00
VMM-R52-B直流电压表DC7~25V指针式带背光可定制电压范围
©
Sat 2024-7-27
Guidance Laboratory Inc.
Email:
webmaster1
g.yi
.
org
Hits:
0