lonelyparasol
V2EX  ›  Windows

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

  •  
  •   lonelyparasol · Oct 11, 2019 · 3215 views
    This topic created in 2444 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   ·   2511 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 09:30 · PVG 17:30 · LAX 02:30 · JFK 05:30
    ♥ Do have faith in what you're doing.