2008年8月12日

对话框置顶

按照windows核心编程思路,在MFC框架下开发相应功能
调用SetWindowspos会出现
cannot convert parameter 1 from 'struct HWND__ *' to 'const class CWnd *'
解决方法:



In your dialog's OnInitDialog() function, just add this line

SetWindowPos(&wndTopMost,0,0,0,0, SWP_NOMOVE | SWP_NOSIZE);


没有评论: