Controls by sending message enable, check mouse pointing

xiaoxiao2021-03-06  55

For a control of a control in other software in other software, hclientWindow, hwindow: thandwindow, hwindow: thandle; begin // enabled; hwindow: = windowFromPoint (PMOUSE); Windows.ScreenToClient (hwindow, pmouse ); hClientWindow: = ChildWindowFromPoint (hWindow, pMouse); if hClientWindow <> 0 then hWindow: = hClientWindow; EnableWindow (hWindow, true); SendMessage (hWindow, BM_SETCHECK, 1, 0); // EnableWindow (hWindow, false); // sendMessage (Handle, BM_SETCHECK, INTEGER (CHECKED), 0);

There is SendMessage to change DropDownPostMessage (cmb.handle, cb_showdropdown, 1, 0); // Set to drop the way Postmessage (CMB.Handle, CB_SETCURSEL, 1, 0); // Specify the current subscript 1

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

New Post(0)