lonelyparasol
V2EX  ›  Windows

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

  •  
  •   lonelyparasol · Oct 11, 2019 · 3229 views
    This topic created in 2453 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   ·   5838 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 02:49 · PVG 10:49 · LAX 19:49 · JFK 22:49
    ♥ Do have faith in what you're doing.