How to get a HWND handle out of a System.Windows.Forms.Form

前端 未结 1 381
故里飘歌
故里飘歌 2020-12-30 03:11

Given the form

System.Windows.Forms::Form Form1;

and the window handle

HWND hWnd;

How can I set hWnd to t

相关标签:
1条回答
  • 2020-12-30 04:11

    I found a solution, and don't care if it's a kludge.

    hWnd = static_cast<HWND>(Handle.ToPointer());
    

    Works.

    0 讨论(0)
提交回复
热议问题