cvNameWindow代码,原来cvNameWindow创建窗口的时候会创建两个窗口,一个主窗口,一个子窗口。所以代码如下:

cvNamedWindow("src");

HWND hWnd = (HWND)cvGetWindowHandle("src");
HWND hRawWnd = ::GetParent(hWnd);

if(NULL != hRawWnd)
{
    BOOL bRet = ::SetWindowPos(hRawWnd,HWND_TOPMOST,0,0,0,0,SW_NOSIZE|SWP_NOMOVE);
    assert(bRet);
}

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-10
  • 2021-07-27
  • 2021-11-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-08-17
  • 2022-12-23
  • 2021-09-03
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案