How to get HDC by DrawCell on VC++

Posted by: m-tanaka on 10 July 2023, 3:06 am EST

  • Posted 10 July 2023, 3:06 am EST

    Hi.

    I am trying to use VsFlexGrid in VC2019 (VC++).

    It is a great control, but I have one question.

    When drawing the contents of a cell in the DrawCell event, the HDC is passed as a long.

    There is no problem if it is a 32-bit application, but in a 64-bit application, the HDC address cannot be obtained correctly.

    How can I get it correctly?

    Thanks.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels