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

📄 subject_52428.htm

📁 vc
💻 HTM
字号:
<p>
序号:52428 发表者:Kang 发表日期:2003-09-10 21:48:10
<br>主题:按完一个键后怎么重写在客户区的文字?
<br>内容:case WM_PAINT:<BR>&nbsp;&nbsp;&nbsp;&nbsp;hdc = BeginPaint(hwnd, &amp;ps);<BR>&nbsp;&nbsp;&nbsp;&nbsp;GetClientRect(hwnd, &amp;rect);<BR>&nbsp;&nbsp;&nbsp;&nbsp;DrawText(hdc, TEXT(&#34;hello windows in the client window&#34;), -1, &amp;rect,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DT_SINGLELINE | DT_CENTER | DT_VCENTER);<BR>&nbsp;&nbsp;&nbsp;&nbsp;EndPaint(hwnd, &amp;ps);<BR>&nbsp;&nbsp;&nbsp;&nbsp;return 0;<BR><BR>case WM_KEYDOWN:<BR>&nbsp;&nbsp;&nbsp;&nbsp;switch(wParam){<BR>&nbsp;&nbsp;&nbsp;&nbsp;case VK_HOME:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MessageBox(NULL, TEXT(&#34;press down HOME key&#34;), &#34;MSGBOX&#34;, 0);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return 0;<BR>......<BR><BR>我想在按完Down键之后在客户区的&#34;hello windows in the client window&#34;变成&#34;test down&#34;,应该怎么做?<BR>2003-9-10 21:49:49

⌨️ 快捷键说明

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