⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 subject_20740.htm

📁 一些关于vc的问答
💻 HTM
字号:
<p>
序号:20740 发表者:大猫 发表日期:2002-11-09 15:29:25
<br>主题:hinstance 的使用
<br>内容:如果知道一程序的HINSTANCE,如何才能得到这个程序主窗口的HWND?<BR>比如我用ShellExecute运行一个程序返回值是一个HINSTANCE,但怎么把它放到一个变量中去以便使用它?
<br><a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p>
<hr size=1>
<blockquote><p>
<font color=red>答案被接受</font><br>回复者:不说 回复日期:2002-11-09 15:39:10
<br>内容:ShellExecute的返回值不是一个真正的HINSTANCE哟……你不能用这个的……<BR><BR>Returns a value greater than 32 if successful, or an error value that is less than or equal to 32 otherwise. The following table lists the error values. The return value is cast as an HINSTANCE for backward compatibility with 16-bit Microsoft&reg; Windows&reg; applications. It is not a true HINSTANCE, however. The only thing that can be done with the returned HINSTANCE is to cast it to an integer and compare it with the value 32 or one of the error codes below.<BR><BR>摘自MSDN
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -