Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
CDialog派生クラス(CWnd :: m_hWndメンバーなど)からウィンドウハンドルを取得する方法はありますか?
ありがとう
HWND hWnd = GetSafeHwnd();
トリックを行う必要がありますが、CDialog自体はCWndから派生しているため、CDialog内でもm_hWndにアクセスできます。