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.