100问一个超简单的新建窗口的问题,马上给分!!UP有分!
我要实现的功能是这样的,想利用例如CREATWINDOW或其他函数实现新建一个窗口的功能。这个窗口其实是一个区域就可以啦,因为我是利用它来输出预览视频的,我一定要
得到这个窗口的相关句柄 HWND!我试过用createwindow但是不行,主要是
HWND CreateWindow(
LPCTSTR lpClassName, // registered class name
LPCTSTR lpWindowName, // window name
DWORD dwStyle, // window style
int x, // horizontal position of window
int y, // vertical position of window
int nWidth, // window width
int nHeight, // window height
HWND hWndParent, // handle to parent or owner window
HMENU hMenu, // menu handle or child identifier
HINSTANCE hInstance, // handle to application instance
LPVOID lpParam // window-creation data
);
第一个参数究竟是什么意思,还有后面3个参数怎么处理。我应该怎么设计第一个参数!
事实上我只是要得到一个区域句柄而已,也不打算将这个窗口和什么控件相连。所以我觉的其他那些参数是多余的,究竟怎么设置阿,这个问题对于大虾来说一定是小菜一碟,帮忙回答一下。