-3
我有简单的视频播放器。WTL CWindowImpl与CWnd兼容吗?
https://github.com/sailfish009/sample_video
现在我想将它移植到Windows模板库9.1。
编辑:解决了,CWindowImpl的处理程序与CWnd的兼容。
//screen = SDL_CreateWindowFrom(this->m_hWnd); //HWND from CWnd previous working code
screen = SDL_CreateWindowFrom(m_hWndClient); //HWND from CWindowImpl
解决了!我犯了一个错误的设置宽度和高度。 CWindowImpl和CWnd的HWND完全相同。 – sailfish009