[Original] A resource usage problem in masm32

Source: Internet
Author: User

Compile a demo in masm32 to record and play back a resource usage problem/technique found in the keyboard + mouse operator program op_record using wh_journalrecord and wh_journalplayback hook.

(Op_record program can be downloaded to the http://purpleendurer.ys168.com, where/myworks/demo_onlydirectory under the op_rocord.rar for the demo version,/myworks/toolsdirectory under the op_rocord.rar for a practical version, the program interface can be seen: [original] Recording and playback keyboard + mouse operation program written with masm32)

Use the text box (edit) in the resource file of masm32 to merge the initial values. There are two methods:

Method 1:

Directly define the text box (edit) in the resource file and set the initial value:

Control "200", idc_edtrecordcount, "edit", ws_border + es_number + ws_child + bs_autocheckbox, 46, 24, 17, 9

Method 2:

1. Define the text box (edit) in the resource file)

Edittext idc_edtrecordcount, 46, 24, 17, 9, es_number

2. Set the initial value for the text box (edit) in the program:

. If umsg = wm_initdialog
Invoke setdlgitemint, g_hwnd, idc_edtrecordcount, c_defaultrecordcount, false; set the default record

In actual use, it is found that the executable program generated using the second method is smaller than the executable program generated using one method.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.