How do DDDW always drop the status when it is knocked into the letter in DDDW? (Original)

xiaoxiao2021-03-06  38

How do DDDW always drop the status when it is knocked into the letter in DDDW?

Problem Description:

How do DDDW always drop the status when it is knocked into the letter in DDDW?

solution:

1, declare example variable:

Boolean ib_show

2, declare external functions:

Subroutine KeyBD_EVENT (int BVK, Int Bscan, Ulong Dwflags, Ulong Dwextrainfo) library "user32.dll"

3. New Custom Event: The PBM_DWNKEY code is as follows:

IF getColumn () = 2 THEN / / here assume your DDDW is the second column, if it is other columns, you can modify itself

IF not b_show then

KeyBD_Event (18, 0, 0)

KeyBD_Event (40, 0, 0)

KeyBD_Event (40, 0, 2, 0)

Keybd_Event (18, 0, 2, 0)

IB_SHOW = TRUE

END IF

Else

IB_SHOW = FALSE

END IF

4. Write in DW's Clicked and DoubleClicked events:

IB_SHOW = FALSE

5, test it, this can pop up the DDDW, but the DDDW automatically scrolls the code I have not written, you will do it yourself!

转载请注明原文地址:https://www.9cbs.com/read-65030.html

New Post(0)