亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? dlgfaq.html

?? This tutorial attempts to get you started developing with the Win32 API as quickly and clearly as po
?? HTML
字號:
<HTML><LINK HREF="style.css" REL="STYLESHEET" TYPE="text/css"><HEAD><TITLE>Tutorial: Dialog FAQ</TITLE></HEAD><BODY><FONT SIZE="-1">[ <A HREF="./index.html">contents</A>| <A HREF="http://www.winprog.org/">#winprog</A>]</FONT><HR><H1>Dialog FAQ</H1><P>Example: dlg_three</P><IMG SRC="images/dlg_three.gif" ALT="[images/dlg_three.gif]" ALIGN="right"><P>Now don't get me wrong, this is a <I>Tutorial</I>, not a <I>Reference</I>, but some questions peopleask SO often that I figured I might as well include them here.<H2>Changing Colours</H2>In general, the only reason you'd want to do this is to simulate an link on a dialog boxor some similar task, because otherwise you're probably just making your program ugly andhard on the eyes if you go adding a bunch of colors to the dialogs, but that doesn't stop people from doing it, and there are actually a few valid reasons, so here you go :)<P>Windows sends a variety of messages related to colours to your dialog procedure, and by handling these messages you can change what colour certain things are displayed in.  Forexample, to change the color of the dialog box itself, you can handle <CODE>WM_CTLCOLORDLG</CODE>, to change the colors for a static control you handle <CODE>WM_CTLCOLORSTATIC</CODE> and so on.<P>First you can create a brush to use to paint the background and store it for later.the <CODE>WM_CTLCOLORDLG</CODE> and related messages will get called often during thecourse of your program, and if you created a new brush every time, eventually you would useup a great deal of RAM with dead brushes.  This way we have more control, and we can deleteit when the dialog is destroyed and we know we won't need it any more.<PRE CLASS="SNIP">    HBRUSH g_hbrBackground = CreateSolidBrush(RGB(0, 0, 0));</PRE><PRE CLASS="SNIP">    case WM_CTLCOLORDLG:        return (LONG)g_hbrBackground;    case WM_CTLCOLORSTATIC:    {        HDC hdcStatic = (HDC)wParam;        SetTextColor(hdcStatic, RGB(255, 255, 255));        SetBkMode(hdcStatic, TRANSPARENT);        return (LONG)g_hbrBackground;    }    break;</PRE><P>Notice the line that sets the background mode to transparent... if you leave this line offthe background will be filled in with the brush you specify, but when the control draws thetext it will get written over with the default background color!  Setting the text drawingmode to transparent fixes this problem.  The other option would be to <CODE>SetBkColor()</CODE>to the same color as our background brush, but I like this solution better.<P>Changing the colors on pretty much any other standard control works the same way, just lookup the <CODE>WM_CTLCOLOR*</CODE> messages in your Win32 reference.  Note that an edit controlwill send a <CODE>WM_CTLCOLORSTATIC</CODE> if it is read only, and <CODE>WM_CTLCOLOREDIT</CODE> if it isn't.<P>If you have more than one static (or other) control that you want to be different colours, thenyou'll need to check the ID of the control you are getting the message from and change your coloursbased on that.  You are passed the <CODE>HWND</CODE> of the control in <CODE>lParam</CODE>, and you canget the ID of the control from this using <CODE>GetDlgCtlrID()</CODE>.  Note that static controlsare all given a default ID of <CODE>IDC_STATIC</CODE> (-1) by the resource editor, so if you want to be able to tell them apart you'll need to assign them new IDs.<H2>Giving the Dialog an Icon</H2>A fairly simple task, you just need to send <CODE>WM_SETICON</CODE> to your dialog.  Since windows usestwo icons however, you need to call it twice, once for the small icon displayed in the cornerof the window, and once for the large one displayed when you hit Alt-Tab.  You can just sendthe same handle both times unless you have multi-sized icons.<P>To just set the default application icon, you can use the following code:<PRE CLASS="SNIP">    SendMessage(hwnd, WM_SETICON, ICON_SMALL, (LPARAM)LoadIcon(NULL, MAKEINTRESOURCE(IDI_APPLICATION)));    SendMessage(hwnd, WM_SETICON, ICON_BIG, (LPARAM)LoadIcon(NULL, MAKEINTRESOURCE(IDI_APPLICATION)));</PRE>When you substitute your own icon resource for the default, remember to change the<CODE>HINSTANCE</CODE> parameter of <CODE>LoadIcon()</CODE> to your applications instance (you can get it by calling<CODE>GetModuleHandle(NULL)</CODE> if you don't have it stored from <CODE>WinMain()</CODE>).<H2>Why Doesn't my Combo Box Work?</H2>An all-too-common problem is people adding a combo box to their dialog and they can't figureout why the list doesn't show up when they run their program and click the little arrow.  This is understandable, since the solution is not very intuitive.  <P>When you create a combo box and specify it's height, you are actually specifying the entireheight, drop-down list included, NOT the height of the control when it is collapsed whichis determined by the system based on the size of the font used.  <P>For example, givingthe control a height of 100 pixels, the system sizes the control itself to the default(lets say 30 in this case), and when you click on the arrow, the drop down list would be70 pixels high, for a total of 100 pixels.<P>If you use the VC++ resource editor to place the combo on your dialog, you will notice youcan't size it vertically.  Unless you click on the arrow in the editor, and it will then change the focus rectangle to indicate you are sizing the dropdown list, and you can set theheight to whatever you want.<H2>What about all the other controls!</H2>Well I could give examples of all of the other controls, but that's what MSDN and Petzold are for :)  If you can't figure out how to use them, you probably need to re-read some partsof this tutorial, or get a book which will explain things more thouroughly.<P>I'd like to give you a link to a useful page on MSDN, but Microsoft seems to be determined to preventme from doing so as links to individual MSDN pages either change rapidly or don't work period.  Thereforyou'll probably have to figure out how to get around yourself, look around for sections like <I>User Interface Services</I>, and <I>Windows Controls</I>, sometimes under a <I>Platform SDK</I> section.<P><A HREF="http://msdn.microsoft.com/library/?url=/library/en-us/shellcc/platform/commctls/indivcontrol.asp">MSDN - Windows Controls</A><HR><FONT SIZE="-1">Copyright &copy; 1998-2003, Brook Miles (<A HREF="mailto:forger(nospam)winprog.org">theForger</A>).  All rights reserved.</FONT><SCRIPT language="JavaScript"><!--   var re = /\(nospam\)/ig;   var str;   for(i = 0;i < document.links.length;i++)    {      str = "" + document.links(i).href;      if(str.search(re) != -1)         document.links(i).href = str.replace(re, "@");      str = "" + document.links(i).innerHTML;      if(str.search(re) != -1)         document.links(i).innerHTML = str.replace(re, "@");   }--></SCRIPT></BODY></HTML>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲天堂网中文字| 日韩一区二区三区视频| 国模少妇一区二区三区| 亚洲福利视频一区二区| 尤物av一区二区| 亚洲人成网站色在线观看| 国产精品美女久久久久久久| 久久久午夜精品| 久久精品一区二区三区不卡| 精品久久一二三区| 久久精品免费在线观看| 久久久久久久久久久电影| 久久久91精品国产一区二区精品| 久久日一线二线三线suv| 久久精品视频免费| 欧美国产综合一区二区| 国产精品初高中害羞小美女文| 国产精品网友自拍| 亚洲人妖av一区二区| 亚洲精品国产品国语在线app| 亚洲精品视频免费观看| 亚洲第一电影网| 狠狠色狠狠色综合| 91美女福利视频| 91精品国产91久久久久久最新毛片 | 久久精品免费观看| 国内成人免费视频| 国产91在线观看| 在线视频中文字幕一区二区| 欧美高清视频www夜色资源网| 91精品婷婷国产综合久久竹菊| 精品国产乱码久久久久久夜甘婷婷| 欧美mv和日韩mv国产网站| 亚洲欧洲日本在线| 青娱乐精品在线视频| 成人中文字幕在线| 欧美日韩国产一二三| 国产精品天天摸av网| 亚洲午夜精品一区二区三区他趣| 久久爱www久久做| 在线国产电影不卡| 久久亚洲春色中文字幕久久久| 亚洲女爱视频在线| 久久国产精品99久久久久久老狼 | 欧美群妇大交群的观看方式| 精品久久久久99| 亚洲视频一二区| 国产乱子伦一区二区三区国色天香| av日韩在线网站| 久久影音资源网| 亚洲不卡一区二区三区| 9人人澡人人爽人人精品| 日韩精品资源二区在线| 亚洲高清久久久| 97se亚洲国产综合自在线不卡| 日韩一区二区在线观看| 亚洲第一搞黄网站| 一本大道综合伊人精品热热 | 7777精品久久久大香线蕉| 国产精品毛片久久久久久| 久久99国产乱子伦精品免费| 欧美色成人综合| 亚洲三级小视频| 99v久久综合狠狠综合久久| 26uuu久久天堂性欧美| 日韩va亚洲va欧美va久久| 在线看日本不卡| 亚洲欧美乱综合| 色婷婷亚洲精品| 一区二区在线观看免费视频播放| 国产成人免费xxxxxxxx| wwwwxxxxx欧美| 韩国女主播一区二区三区| 日韩精品一区二区三区老鸭窝 | 国产精品精品国产色婷婷| 国产一区在线精品| 久久久久久麻豆| 国产成人精品亚洲777人妖| 欧美精品一区二区三区蜜桃| 九九热在线视频观看这里只有精品| 在线不卡一区二区| 日韩av网站免费在线| 在线不卡一区二区| 日韩国产高清影视| 欧美v国产在线一区二区三区| 久久精品国产一区二区三区免费看| 日韩精品在线网站| 国产乱理伦片在线观看夜一区| 久久久亚洲精品石原莉奈| av不卡在线播放| 一区二区欧美精品| 日韩一区二区在线观看| 国产精品18久久久久久久网站| 国产精品久久久久久久久搜平片 | 亚洲成年人影院| 欧美老年两性高潮| 国内成+人亚洲+欧美+综合在线| 久久精品无码一区二区三区| 9人人澡人人爽人人精品| 亚洲第一久久影院| 久久久精品2019中文字幕之3| 成人黄色电影在线 | 在线一区二区三区四区五区 | 国产综合色在线| 国产精品免费免费| 欧美调教femdomvk| 国产综合色视频| 尤物av一区二区| 欧美电影免费观看高清完整版 | 天天操天天综合网| 久久久午夜精品| 欧美色图片你懂的| 国产精品18久久久久| 一区二区三区日本| wwww国产精品欧美| 欧美日韩亚洲综合在线 欧美亚洲特黄一级 | 色综合久久精品| 日本vs亚洲vs韩国一区三区| 亚洲国产电影在线观看| 777色狠狠一区二区三区| 国产精品一区不卡| 丝袜亚洲另类丝袜在线| 国产亚洲一区二区三区四区| 欧美性xxxxxxxx| 成人免费视频视频| 激情五月播播久久久精品| 亚洲一区免费在线观看| 欧美—级在线免费片| 日韩精品在线一区二区| 欧美在线播放高清精品| 成人一区二区视频| 国产在线精品不卡| 欧美aaa在线| 亚洲高清视频在线| 一区二区在线电影| 国产精品日产欧美久久久久| 精品国产区一区| 欧美一区二区黄色| 欧美日韩国产美| 欧美亚洲国产一区二区三区| 成人国产精品免费| 国产91精品一区二区麻豆亚洲| 日本视频一区二区三区| 视频在线观看国产精品| 亚洲高清免费观看| 伊人色综合久久天天| 夜夜揉揉日日人人青青一国产精品| 国产精品人人做人人爽人人添 | 国产精品青草久久| 国产欧美日韩在线| 久久久精品免费观看| 国产片一区二区三区| 国产精品久久网站| 国产精品福利一区| 亚洲男人的天堂网| 亚洲一区二区三区在线播放| 亚洲国产一二三| 日韩精品一二三| 麻豆成人久久精品二区三区红| 天天做天天摸天天爽国产一区| 亚洲成国产人片在线观看| 午夜久久久久久久久| 日韩va欧美va亚洲va久久| 免费成人在线视频观看| 久久99国产精品久久99| 国产高清精品久久久久| 成人高清免费观看| 色八戒一区二区三区| 欧美日韩免费电影| 精品国产伦一区二区三区免费| 久久久久久久久久电影| 亚洲色图视频免费播放| 日韩精品国产欧美| 国内精品嫩模私拍在线| a美女胸又www黄视频久久| 色成年激情久久综合| 欧美电影免费提供在线观看| 欧美激情一区二区在线| 亚洲在线中文字幕| 看片的网站亚洲| 不卡视频在线看| 欧美人伦禁忌dvd放荡欲情| 久久精品人人做| 伊人色综合久久天天人手人婷| 狂野欧美性猛交blacked| k8久久久一区二区三区| 欧美精品在线观看一区二区| 久久综合国产精品| 亚洲高清在线精品| 国产成人精品亚洲777人妖 | 国产网站一区二区| 一区二区三区在线免费观看| 免费成人美女在线观看.| 风间由美性色一区二区三区| 欧美吞精做爰啪啪高潮| 国产女人水真多18毛片18精品视频| 亚洲黄色片在线观看| 韩国欧美国产一区| 7777精品久久久大香线蕉| 亚洲男人的天堂在线aⅴ视频|