// 无边框显示图片
//#include "stdafx.h"
#include <windows.h>
#include <iostream> // std::cout
#include <opencv2/core/core.hpp> // cv::Mat
#include <opencv2/highgui/highgui.hpp> // cv::imread()
using namespace std;
using namespace cv;
int main(int argc, char* argv[])
{
Mat input;
input = imread("D:\\1.jpg");
namedWindow("input", WINDOW_AUTOSIZE);
HWND win_handle = FindWindow(0, L"input");
SetWindowLong(win_handle, GWL_STYLE, GetWindowLong(win_handle, GWL_EXSTYLE) | WS_EX_TOPMOST);
ShowWindow(win_handle, SW_SHOW);
imshow("input",input);
waitKey(0);
return 0;
}