How to get HDC by DrawCell on VC++

Posted by: m-tanaka on 9 July 2023, 6:06 pm EST

  • Posted 9 July 2023, 6:06 pm 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