lonelyparasol
V2EX  ›  Windows

求助,窗体的 Combox 设置了 LVS_EX_CHECKBOXES,用 SendMessage 设置下拉选项失效

  •  
  •   lonelyparasol · Oct 11, 2019 · 3184 views
    This topic created in 2424 days ago, the information mentioned may be changed or developed.

    通常的 ComBox 都可以使用 SendMessage(H, CB_GETCURSEL, 0, 0)、SendMessage(H, CB_SETCURSEL, nIndex, 0)方法来获取当前选中项和设置选中项,我添加了 LVS_EX_CHECKBOXES 把下拉选项变成了复选下拉框,然后设置就 SendMessage 就失效了,请问有什么方法解决吗?

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2736 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 04:49 · PVG 12:49 · LAX 21:49 · JFK 00:49
    ♥ Do have faith in what you're doing.