首页
社区
课程
招聘
[旧帖] [已解决]如何修改程序复选框状态? 0.00雪花
发表于: 2008-1-16 14:35 6549

[旧帖] [已解决]如何修改程序复选框状态? 0.00雪花

2008-1-16 14:35
6549
有个软件要经常用,程序里面的复选框,默认是没有选中的,这个复选框每次都要选中,很麻烦,于是想修改下程序,有什么办法修改让它默认为选中状态??PE Explorer和exescope好像不行。。。还是我没有找到地方?

[培训]科锐逆向工程师培训第53期2025年7月8日开班!

收藏
免费 0
支持
分享
最新回复 (8)
雪    币: 282
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
2
高手出来指点下呀,,自己顶一下,不要沉了
2008-1-16 17:31
0
雪    币: 247
活跃值: (10)
能力值: ( LV7,RANK:100 )
在线值:
发帖
回帖
粉丝
3
查一查MSDN的这个函数

CheckMenuItem

The CheckMenuItem function sets the state of the specified menu item's check-mark attribute to either selected or clear.

Note  The CheckMenuItem function has been superseded by the SetMenuItemInfo function. You can still use CheckMenuItem, however, if you do not need any of the extended features of SetMenuItemInfo.

DWORD CheckMenuItem(
  HMENU hmenu,        // handle to menu
  UINT uIDCheckItem,  // menu item to check or uncheck
  UINT uCheck         // menu item options                 //这个是关键的参数,如果要修改,就从这里吧
);
Parameters
hmenu
[in] Handle to the menu of interest.
uIDCheckItem
[in] Specifies the menu item whose check-mark attribute is to be set, as determined by the uCheck parameter.
uCheck
[in] Specifies flags that control the interpretation of the uIDCheckItem parameter and the state of the menu item's check-mark attribute. This parameter can be a combination of either MF_BYCOMMAND, or MF_BYPOSITION and MF_CHECKED or MF_UNCHECKED. Value Meaning
MF_BYCOMMAND Indicates that the uIDCheckItem parameter gives the identifier of the menu item. The MF_BYCOMMAND flag is the default, if neither the MF_BYCOMMAND nor MF_BYPOSITION flag is specified.
MF_BYPOSITION Indicates that the uIDCheckItem parameter gives the zero-based relative position of the menu item.
MF_CHECKED Sets the check-mark attribute to the selected state.
MF_UNCHECKED Sets the check-mark attribute to the clear state.  

对这个函数
TO   change parameter  uCheck  into MF_UNCHECKED  or MF_CHECKED, this is the routin to destination.

也许还有别的函数把
2008-1-16 17:32
0
雪    币: 282
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
4
功力太浅。。。。看不懂!
2008-1-16 17:47
0
雪    币: 247
活跃值: (10)
能力值: ( LV7,RANK:100 )
在线值:
发帖
回帖
粉丝
5
你的想法是在资源里面修改check和uncheck,但是程序很可能在启动时自行通过调用CheckMenuItem这个函数来动态设置check和uncheck。
这就使得你在资源里面修改成功了也没有办法达到满意。
可以修改程序PE文件来实现,关键就是修改参数uCheck
2008-1-16 17:54
0
雪    币: 201
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
6
SendMessage
2008-1-16 20:22
0
雪    币: 282
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
7
非常感谢!明白了
2008-1-16 20:51
0
雪    币: 200
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
8
我也看不怎么懂,,,,
只会用exescope修改简单的
2008-1-16 21:03
0
雪    币: 282
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
9
exescope 修改不了checkbox是否选中的状态
2008-1-16 21:05
0
游客
登录 | 注册 方可回帖
返回