代码之家  ›  专栏  ›  技术社区  ›  user2470889189

铸造到LPPOINT

  •  1
  • user2470889189  · 技术社区  · 3 周前

    正在铸造 POINT 的论点 LPPOINT 在以下情况下是否需要:

    POINT point;
    ClientToScreen(somehwnd, (LPPOINT) &point);
    

    或者以下内容是否足够:

    POINT point;
    ClientToScreen(somehwnd, &point);
    

    This Win32 document 使用演员阵容,而 this Win32 document 不使用强制转换。

    1 回复  |  直到 3 周前
        1
  •  4
  •   IInspectable    3 周前

    LPPOINT 是的类型别名 POINT* 。表达式 &point 具有类型 点* 。不需要铸件。