现在的位置: 首页 > 综合 > 正文

9:02 2009-7-17 日志

2013年04月07日 ⁄ 综合 ⁄ 共 1529字 ⁄ 字号 评论关闭

9:02 2009-7-17
[VC++ 孙鑫]
1.自己图标
res目录下,存图标
定数据,HICON m_hIcon[3]
加载图标,loadicon,第一个参数,当前实例句柄 ,AfxGetInstanceHandle()
宏:makeintresource
exten CSTyleAPp theAPP,//声明一个外部变量
1.1.静态变量存在数据区中 static int index=0//只在第一次进入时分配空间,以后直接跳过

二,工具栏
1.Toolbar 双击
2.加分隔符,鼠标左击,向右拖
3,删除按钮:按左键,拖到其它区域
4.创建工具栏,
头文件 cToolBar 派生于CWnd-CControlBar,所以工具栏也是一个窗口
一个ID号可以两次使用,多种资源
dockcontrolbar 让工具栏停靠在主框架窗口之上
重新调整函数位置,recalclayout
dockcontrolbar 停靠工具栏
ctoolbar成员函数
5.给菜单项加复选标记:
 pCmdUI->SetCheck()
 1为真,可以拿是否可见设置复选标记 如:m_newToolBar.IsWindowVisible()
6.状态指示器
6,创建状态栏
 m_wndStatusBar.Create(this)
设置一个指示器
 m_wndStatusBar.SetIndicator

sn:
1.获取当前实例句柄:
 AfxGetInstanceHandle()
 theApp.m_hInstance//先声明APP类
 AfxGetAPP()->m_hInstance
2.变量在一个范围不断变化,index=++index%3

[???]
m_wndToolBar.EnableDocking(CBRS_ALIGN_ANY);//可以被停靠
EnableDocking(CBRS_ALIGN_ANY);//可以停靠

[单词]
guilty of graft 受贿罪
The Supreme最高的 People's Procuratorate代理人之职 (SPP)
revealed 透露
were found guilty of corruption 堕落  被判决有罪
investigated 调查
industrial bribery cases产业行贿案
SPP deputy 副手 procurator general财政部法律局长
prosecutors 检举人 to crack down on 制裁,镇压 commercial bribery商业贿赂罪
dereliction of duty 失职,玩忽职守
corrupt officials 贪官
offences 违法行为
embezzlement盗用
 
Some 1,679 cases of dereliction of duty leading to 导致 harm 损害to energy resources 能源 and the ecological environment 生态环境
 were filed and investigated in the first half of the year. They involved 1,949 people.

target officials
bend the law
negligence疏忽,
covering up掩盖
infringements 违反
vowed 发誓
moral capacity道德 才能
intensify 增强
to prosecution  起诉
enforcement实施
legal concepts法律概念
occupation morality 职业道德
disciplinary style训练方试
Awareness 知道,temptation and erosion 诱惹,腐蚀
attorney general 首席检察官
the anti-corruption bureau 反贪局
assets 资产

 

抱歉!评论已关闭.