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

📄 subject_38238.htm

📁 vc
💻 HTM
字号:
<p>
序号:38238 发表者:YLZ 发表日期:2003-05-01 19:41:49
<br>主题:如何给文档类发消息?
<br>内容:::SendMessage(hwnd,message,WPARAM,LPARAM)<BR><BR>文档的hwnd是什么?
<br><a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p>
<hr size=1>
<blockquote><p>
回复者:烦恼多多 回复日期:2003-05-02 08:26:42
<br>内容:hWnd Property<BR>Indicates the window handle to the control. <BR><BR>Available With<BR>&amp;Ouml; Imaging for Windows Professional Edition V1.0, V1.1, and V2.0 <BR>&amp;Ouml; Imaging for Windows 95 and 98 <BR>&amp;Ouml; Imaging for Windows NT 4.0 <BR><BR><BR>Applies To<BR>Image Annotation Tool Button control, Image Edit control, Image Thumbnail control<BR><BR>Syntax<BR>object.hWnd<BR><BR>Data Type<BR>Long<BR><BR>Remarks<BR>Available at run-time as read-only<BR>
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
<font color=red>答案被接受</font><br>回复者:晚风也渡 回复日期:2003-05-02 12:03:19
<br>内容:可以先取得指向文档类的指针pDoc,然后调用<BR>pDoc-&gt;SendMessage(message,WPARAM,LPARAM);<BR><BR>通过这种方法取得指向文档类的指针pDoc:<BR>CxxDoc *pDoc = (CxxDoc*)(((CFrameWnd*)AfxGetMainWnd())-&gt;GetActiveFrame())-&gt;GetActiveDocument();
<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 + -