windows编程

  • D9_231123
    了解作者
  • 429.9KB
    文件大小
  • rar
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-06-10 07:59
    上传日期
windows编程技术 Windows的DLL编程 Windows多线程技术 Windows应用程序的基本结构 window菜单编程 window绘图机制 WinSock编程 对话框编程
windows编程PPT.rar
  • windows编程PPT
  • Windows多线程技术.ppt
    75KB
  • window绘图机制.ppt
    201.5KB
  • window菜单编程.ppt
    74KB
  • 增加背景图.doc
    26.5KB
  • WinSock编程.ppt
    328.5KB
  • 无模式对话框.doc
    24.5KB
  • 对话框编程.ppt
    112.5KB
  • 绘制波形
    37.2KB
  • ToolBar管理.ppt
    56KB
  • Windows应用程序的基本结构.ppt
    644KB
  • Windows的DLL编程.ppt
    197.5KB
  • 远程线程注入详解.ppt
    88.5KB
内容介绍
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta charset="utf-8"><meta name="generator" content="pdf2htmlEX"><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"><link rel="stylesheet" href="https://csdnimg.cn/release/download_crawler_static/css/base.min.css"><link rel="stylesheet" href="https://csdnimg.cn/release/download_crawler_static/css/fancy.min.css"><link rel="stylesheet" href="https://csdnimg.cn/release/download_crawler_static/7272211/raw.css"><script src="https://csdnimg.cn/release/download_crawler_static/js/compatibility.min.js"></script><script src="https://csdnimg.cn/release/download_crawler_static/js/pdf2htmlEX.min.js"></script><script>try{pdf2htmlEX.defaultViewer = new pdf2htmlEX.Viewer({});}catch(e){}</script><title></title></head><body><div id="sidebar" style="display: none"><div id="outline"></div></div><div id="pf1" class="pf w0 h0" data-page-no="1"><div class="pc pc1 w0 h0"><img class="bi x0 y0 w1 h1" alt="" src="https://csdnimg.cn/release/download_crawler_static/7272211/bg1.jpg"><div class="c x0 y1 w2 h2"><div class="t m0 x1 h3 y2 ff1 fs0 fc0 sc0 ls0 ws0">&#22788;&#29702;<span class="_ _0"> </span><span class="ff2">WM_ERASEBKGND<span class="_ _0"> </span></span>&#25110;&#30452;&#25509;&#22312;<span class="_ _0"> </span><span class="ff2">WM_P<span class="_ _1"></span>AINT<span class="_ _0"> </span><span class="ff1">&#20013;&#30011;</span>. </span></div><div class="t m0 x1 h3 y3 ff2 fs0 fc0 sc0 ls0 ws0">HDC<span class="_ _0"> </span> <span class="_"> </span>hdc=GetDC(<span class="_ _2"></span>hWnd);<span class="_ _0"> </span> <span class="_"> </span>//<span class="_ _3"> </span> <span class="_ _4"> </span><span class="ff1">&#22914;<span class="_ _3"> </span>&#26524;<span class="_ _3"> </span>&#26159;<span class="_ _4"> </span>&#22312;<span class="_ _5"> </span></span>WM_P<span class="_ _1"></span>AINT<span class="_ _5"> </span><span class="ff1">&#20013;<span class="_ _3"> </span></span>,<span class="_ _3"> </span> <span class="_ _4"> </span><span class="ff1">&#38656;<span class="_ _3"> </span>&#35201;<span class="_ _5"> </span></span>P<span class="_ _1"></span>AINTSTRUCT<span class="_ _0"> </span> <span class="_ _0"> </span>ps;</div><div class="t m0 x1 h4 y4 ff2 fs0 fc0 sc0 ls0 ws0">hdc=BeginPaint(hWnd, &amp;ps); </div><div class="t m0 x1 h4 y5 ff2 fs0 fc0 sc0 ls0 ws0">DrawBackGround(hdc, szFileName); </div><div class="t m0 x1 h3 y6 ff2 fs0 fc0 sc0 ls0 ws0">ReleaseDC(hWnd, hdc); //<span class="ff1">&#22914;&#26524;&#26159;&#22312;<span class="_ _0"> </span></span>WM_P<span class="_ _1"></span>AINT<span class="_ _0"> </span><span class="ff1">&#20013;</span>, EndPaint(hWnd, &amp;ps); </div><div class="t m0 x1 h4 y7 ff2 fs0 fc0 sc0 ls0 ws0">void DrawBackGround(HWND hWnd, HDC hdc, LPCTSTR lpszFileName) </div><div class="t m0 x1 h4 y8 ff2 fs0 fc0 sc0 ls0 ws0">{ </div><div class="t m0 x1 h4 y9 ff2 fs0 fc0 sc0 ls0 ws0">RECT rt; </div><div class="t m0 x1 h4 ya ff2 fs0 fc0 sc0 ls0 ws0">GetClientRect(hWnd, &amp;rt); </div><div class="t m0 x1 h3 yb ff2 fs0 fc0 sc0 ls0 ws0">//**<span class="ff1">&#22914;&#26524;&#26159;</span> bmp<span class="_ _0"> </span><span class="ff1">&#25991;&#20214;</span>, </div><div class="t m0 x1 h4 yc ff2 fs0 fc0 sc0 ls0 ws0">HDC hMemDC=CreateCompatibleDC(hdc); </div><div class="t m0 x1 h4 yd ff2 fs0 fc0 sc0 ls0 ws0">HBITMAP<span class="_ _2"></span> hBitmap=(HBITMAP)LoadImage(...); </div><div class="t m0 x1 h4 ye ff2 fs0 fc0 sc0 ls0 ws0">BIMT<span class="_ _1"></span>AP<span class="_ _2"></span> bm; </div><div class="t m0 x1 h4 yf ff2 fs0 fc0 sc0 ls0 ws0">GetObject(hBitmap, sizeof(bm), &amp;bm); </div><div class="t m0 x1 h4 y10 ff2 fs0 fc0 sc0 ls0 ws0">hBitmap=(HBITMAP)SelectObject(hdc, hBitmap); </div><div class="t m0 x1 h4 y11 ff2 fs0 fc0 sc0 ls0 ws0">BitBlt(hdc, 0, 0, bm.bmW<span class="_ _2"></span>idth,bm.bmHeight, hMemDC, 0, 0, SRCCOPY); </div><div class="t m0 x1 h3 y12 ff2 fs0 fc0 sc0 ls0 ws0">//<span class="_ _6"></span><span class="ff1">&#32553;<span class="_ _6"></span>&#25918;<span class="_ _6"></span>&#20301;<span class="_ _7"></span>&#22270;<span class="_ _8"> </span></span>StretchBlt(hdc,<span class="_ _7"></span> 0,<span class="_ _7"></span> <span class="_ _7"></span>0, <span class="_ _7"></span>rt.right,<span class="_ _7"></span> rt.bottom,<span class="_ _7"></span> <span class="_ _7"></span>hMemDC, <span class="_ _7"></span>0,<span class="_ _7"></span> 0,<span class="_ _7"></span> <span class="_ _7"></span>bm.bmW<span class="_ _1"></span>id<span class="_ _7"></span>t<span class="_ _2"></span>h,<span class="_ _7"></span> bm.bmHeight,</div><div class="t m0 x1 h4 y13 ff2 fs0 fc0 sc0 ls0 ws0">SRCCOPY); </div><div class="t m0 x1 h4 y14 ff2 fs0 fc0 sc0 ls0 ws0">hBitmap=(HBITMAP)SelectObject(hdc, hBitmap); </div><div class="t m0 x1 h4 y15 ff2 fs0 fc0 sc0 ls0 ws0">DeleteObject(hBitmap); </div><div class="t m0 x1 h4 y16 ff2 fs0 fc0 sc0 ls0 ws0">DeleteDC(hMemDC); </div><div class="t m0 x1 h3 y17 ff2 fs0 fc0 sc0 ls0 ws0">//** <span class="ff1">&#22914;&#26524;&#26159;<span class="_ _0"> </span></span>jpg/png/gif<span class="_ _0"> </span><span class="ff1">&#31561;&#26684;&#24335;</span>, </div><div class="t m0 x1 h3 y18 ff2 fs0 fc0 sc0 ls0 ws0">//** <span class="ff1">&#21487;&#21442;&#32771;<span class="_ _0"> </span></span>http://blog.csdn.net/chehw/archive/2007/1<span class="_ _2"></span>1/01/1860624.aspx<span class="_ _0"> </span><span class="ff1">&#20013;&#30340;&#26041;&#27861;&#30452;&#25509;&#32472;&#21046;</span> </div><div class="t m0 x1 h4 y19 ff2 fs0 fc0 sc0 ls0 ws0">} </div><div class="t m0 x1 h3 y1a ff1 fs0 fc0 sc0 ls0 ws0">&#29992;<span class="_ _0"> </span><span class="ff2">SDK<span class="_ _0"> </span></span>&#26102;&#26377;&#24456;&#22810;&#32454;&#33410;&#38656;&#35201;&#32771;&#34385;<span class="ff2">, </span></div><div class="t m0 x1 h3 y1b ff2 fs0 fc0 sc0 ls0 ws0">1. <span class="ff1">&#39318;&#20808;&#27880;&#20876;&#31383;&#21475;&#31867;&#26102;<span class="_ _0"> </span></span>wndClassEx.style<span class="_ _0"> </span><span class="ff1">&#26159;&#21542;&#21253;&#21547;&#20102;<span class="_ _0"> </span></span>CS_HREDRA<span class="_ _1"></span>W &#166;CS_VREDRA<span class="_ _1"></span>W<span class="_ _9"></span>: </div><div class="t m0 x1 h3 y1c ff1 fs0 fc0 sc0 ls0 ws0">&#22914;&#26524;&#21253;&#21547;&#20102;&#35813;&#39118;&#26684;<span class="ff2">, </span>&#24403;&#31383;&#21475;&#22823;&#23567;&#25913;&#21464;&#26102;&#20250;&#33258;&#21160;&#21047;&#26032;&#31383;&#21475;<span class="ff2">, </span>&#20294;&#20250;&#36896;&#25104;&#31383;&#21475;&#38378;&#28865;<span class="ff2">. </span></div><div class="t m0 x1 h3 y1d ff1 fs0 fc0 sc0 ls0 ws0">&#25105;&#19968;&#33324;&#24773;&#20917;<span class="_ _7"></span>&#19979;&#31383;&#21475;&#31867;&#20013;&#19981;&#21253;&#21547;&#19978;&#36848;<span class="_ _8"> </span><span class="ff2">style, </span>&#22312;&#22788;&#29702;<span class="_ _0"> </span><span class="ff2">WM_SIZE<span class="_"> </span></span>&#26102;&#25163;&#24037;&#37325;&#26032;&#32472;&#21046;<span class="_ _a"></span><span class="ff2">(</span>&#27880;<span class="ff2">: <span class="_ _a"></span></span>&#19981;&#35201;&#31616;&#21333;&#30340;</div><div class="t m0 x1 h3 y1e ff1 fs0 fc0 sc0 ls0 ws0">&#35843;&#29992;<span class="_ _0"> </span><span class="ff2">InvalidateRect, </span>&#21542;&#21017;&#25928;&#26524;&#19982;&#21253;&#21547;<span class="_ _0"> </span><span class="ff2">CS_HREDRA<span class="_ _1"></span>W &#166;CS_VREDRA<span class="_ _1"></span>W<span class="_ _0"> </span><span class="ff1">&#26102;&#30340;&#19968;&#26679;</span>) </span></div><div class="t m0 x1 h3 y1f ff2 fs0 fc0 sc0 ls0 ws0">2. <span class="ff1">&#21487;&#20197;&#22768;<span class="_ _a"></span>&#26126;&#19968;&#20010;&#31867;&#25104;&#21592;<span class="_ _a"></span>&#21464;&#37327;<span class="_ _b"> </span></span>m_hMemDC<span class="_ _0"> </span><span class="ff1">&#25110;&#20840;&#23616;&#21464;&#37327;<span class="_ _b"> </span></span>g_hMemDC, <span class="ff1">&#22312;&#31383;<span class="_ _a"></span>&#21475;&#21152;&#36733;&#26102;&#25552;&#21069;<span class="_ _a"></span>&#21019;&#24314;&#20869;</span></div><div class="t m0 x1 h3 y20 ff1 fs0 fc0 sc0 ls0 ws0">&#23384;&#20860;&#23481;<span class="_ _0"> </span><span class="ff2">DC<span class="_ _0"> </span></span>&#24182;&#23558;&#22270;&#29255;&#36873;&#20837;<span class="ff2">, </span>&#36825;&#26679;&#27599;&#27425;&#37325;&#32472;&#26102;&#21482;&#35201;<span class="_ _0"> </span><span class="ff2">BitBlt<span class="_ _0"> </span></span>&#23601;&#21487;&#20197;&#20102;<span class="ff2">. </span></div><div class="t m0 x1 h3 y21 ff1 fs0 fc0 sc0 ls0 ws0">&#27492;<span class="_ _c"></span>&#26102;<span class="_ _c"></span>&#21487;<span class="_ _c"></span>&#20197;<span class="_ _c"></span>&#32771;<span class="_ _c"></span>&#34385;<span class="_ _c"></span>&#22312;<span class="_ _d"> </span><span class="ff2">WM_P<span class="_ _1"></span>AINT<span class="_ _8"> </span><span class="ff1">&#20013;<span class="_ _c"></span>&#37325;<span class="_ _c"></span>&#32472;<span class="_ _c"></span>&#32972;<span class="_ _c"></span>&#26223;<span class="_ _e"> </span></span>,<span class="_ _7"></span> <span class="_ _7"></span>RECT<span class="_ _a"></span> <span class="_ _7"></span>&amp;rc<span class="_ _a"></span>=ps.rcPaint;<span class="_ _7"></span> <span class="_ _a"></span>BitBl<span class="_ _a"></span>t(hdc,<span class="_ _7"></span> <span class="_ _7"></span>rc.left,<span class="_ _7"></span> <span class="_ _7"></span>rc.top,</span></div><div class="t m0 x1 h4 y22 ff2 fs0 fc0 sc0 ls0 ws0">rc.right-rc.left, rc.bottom-rc.top, m_hMemDC, rc.left, rc.top, SRCCOPH); </div><div class="t m0 x1 h3 y23 ff2 fs0 fc0 sc0 ls0 ws0">3. <span class="ff1">&#22914;<span class="_ _a"></span>&#26524;&#38656;&#35201;<span class="_ _a"></span>&#32553;&#25918;<span class="_ _a"></span>&#20301;&#22270;<span class="_ _a"></span></span>, WM_SIZE<span class="_"> </span><span class="ff1">&#20013;&#21019;&#24314;&#19968;&#20010;&#30456;<span class="_ _a"></span>&#24212;&#22823;<span class="_ _a"></span>&#23567;&#30340;&#20869;<span class="_ _a"></span>&#23384;&#20860;&#23481;<span class="_ _8"> </span></span>DC, <span class="ff1">&#36873;&#20837;<span class="_ _0"> </span></span>m_hMemDC,<span class="_ _a"></span> <span class="ff1">&#20877;</span></div><div class="t m0 x1 h3 y24 ff1 fs0 fc0 sc0 ls0 ws0">&#21019;&#24314;&#19968;&#20010;&#20020;&#26102;&#20869;&#23384;<span class="_ _0"> </span><span class="ff2">DC, </span>&#23558;&#25991;&#20214;&#20301;&#22270;<span class="_ _0"> </span><span class="ff2">StretchBlt<span class="_ _0"> </span></span>&#33267;<span class="_ _0"> </span><span class="ff2">m_hMemDC<span class="_ _0"> </span></span>&#20013;</div></div></div><div class="pi" data-data='{"ctm":[1.611850,0.000000,0.000000,1.611850,0.000000,0.000000]}'></div></div></body></html>
评论
    相关推荐
    • windows系统解析
      1.windows XP系统内核文件分析(全) 2.Windows2000XP系统文件夹详解 3.Windows下的EXE文件解析 4.WINDOWS常见文件夹完全解析 5.Windows文件解析——CWINDOWSsystem32driversetchosts 6.Windows系统文件解析 7.对...
    • Windows 基础
      Windows API 基础 Windows API 基础 Windows API 基础 Windows API 基础 Windows API 基础
    • Windows 3.1
      Windows 3.1 网站 下载 简单的
    • windows 计算器
      windows 自带的计算器。解压到c:\windows\system32下。直接windows键+r 调用calc命令运行。
    • windows95
      Windows95的
    • windows shell
      windows shell的中文翻译,对windows程序员很有用
    • Windows file
      Windows file Windows file
    • windows 窗体
      加载子窗体的源码,windows 窗体。
    • windows清理
      Microsoft 已更新了 Windows Installer 清理实用工具(Windows Installer CleanUp Utility ).利用 Windows Installer 清理实用工具,可以删除程序的 Windows Installer 配置信息.如果您遇到安装(安装程序)问题,可能...
    • windows api
      windows api资源,包括:Windows高级编程源代码 MFC中文帮助 vfp_api Windows程序设计