【发布时间】:2017-06-07 12:46:03
【问题描述】:
我有简单的视频播放器。
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 中的 HWND 和 CWnd 完全相同。