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

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

?? index.htm

?? 老外寫的超連接類
?? HTM
字號:
<html>

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>Download demo project</title>
<link rel="stylesheet" type=text/css href="global.css">
</head>

<body>

<ul class="download">
  <li>
  <a href="http://www.codeproject.com/buttonctrl/NdtURLLinkButton/URLLinkButton_DemoProject.zip">
  Download demo project - 17 Kb </a></li>
  <li>
  <a href="http://www.codeproject.com/buttonctrl/NdtURLLinkButton/URLLinkButton_Source.zip">
  Download source - 5 Kb</a> </li>
  <li>
  <a href="http://www.codeproject.com/buttonctrl/NdtURLLinkButton/URLLinkButton_Demo.zip">
  Download demo - 104 Kb</a> </li>
</ul>
<p>
<img src="URLLinkButton.GIF" border="0" width="498" height="282"></p>
<h2>Introduction</h2>
<p>The <code>CURLLinkButton </code>class extends the functionality of <code>
CButton</code> by providing support for URL links. It displays the URL link and 
invokes the shell when clicked. It can be used in your project to link to any 
URL such as your website, an application, a folder or your email. You also can 
use it like other buttons to show a messagebox, dialogbox or anything you like.</p>
<p>This is a hyperlink control which really act like the ones used in Internet 
Explorer<sup>&reg; </sup>with following features:</p>
<ol type="1">
  <li>Can be plugged into any dialog, form or view </li>
  <li>Link to the any URL and email </li>
  <li>Contains a built-in ToolTip </li>
  <li>Customize the displayed text, URL-Prefix, URL, Tooltip text. </li>
  <li>Customize the colors of Hyperlink (regular, hover, visited) and Tooltip 
  (text color, background color) </li>
  <li>Use a custom cursor or use the standard Hand cursor </li>
  <li>Resize a URL link button to the size of the button's caption </li>
  <li>Can be focused, navigated and activated using the keyboard </li>
  <li>Send a message to parent when clicked </li>
  <li>Easy to understand, easy to use </li>
</ol>
<p>Thanks to Niek Albers for <code>_TrackMouseEvent()</code>. Thanks to Paul 
DiLascia for default hand cursor from WinHlp32.</p>
<h2>Using the code</h2>
<p>The code is quite short, reuseable and easy to understand. For using this 
control in your project, you need to do :</p>
<ol type="1">
  <li>Add <b><i>URLLinkButton.h</i></b><i> </i>and <b><i>URLLinkButton.cpp</i></b><i>
  </i>to your project. </li>
  <li>Include <b><i>URLLinkButton.h</i></b><i> </i>in the header file where the 
  controls are defined </li>
  <li>Add some buttons to the dialog or form. Add a member variable for each 
  button you want to customize as a hyperlink control. Replace the type of those 
  variables from <code>CButton</code> to <code>CURLLinkButton</code>. Open “Push 
  Button Properties” dialog, select “Styles” page and check the option “Owner 
  draw”. </li>
  <li>Use following operators to customize the control: </li>
</ol>
<pre><span class="cpp-comment">//Resize a URL link button to the size of the button's caption</span>
<span class="cpp-keyword">void</span> SizeToContent();

<span class="cpp-comment">//Customize the colors of Hyperlink </span>
<span class="cpp-keyword">void</span> SetLinkColor(COLORREF clrRegular, COLORREF clrHover, COLORREF clrVisited);

<span class="cpp-comment">//Customize the colors of the Tooltip</span>
<span class="cpp-keyword">void</span> SetToolTipColor(COLORREF clrTextColor, COLORREF clrBkColor);

<span class="cpp-comment">//Customize the tooltip text. Use default tooltip if sTip is empty</span>
<span class="cpp-keyword">void</span> SetToolTipText(CString sTip=_T(<span class="cpp-string">&quot;&quot;</span>));

<span class="cpp-comment">// Set URL. By default, window text will be used</span>
<span class="cpp-keyword">void</span> SetURL (LPCTSTR lpszURL);

<span class="cpp-comment">//Set URL prefix. For example &quot;mailto:&quot;</span>
<span class="cpp-keyword">void</span> SetURLPrefix (LPCTSTR lpszPrefix); </pre>
<p>If you have a cursor resource in you project, you can customize the cursor or 
you can use default hand cursor</p>
<pre><span class="cpp-preprocessor">#if(WINVER &gt;= 0x0500)</span>
    <span class="cpp-comment">//Load system hand cursor</span>
    m_hCursorHand = AfxGetApp()-&gt;LoadCursor (IDC_HAND); 
<span class="cpp-preprocessor">#else</span>
    <span class="cpp-comment">// Use a custom Hand cursor</span>
    <span class="cpp-comment">// Must add a cursor resourse in the project with ID: IDC_CURSOR_HAND</span>
    <span class="cpp-comment">//m_hCursorHand = AfxGetApp()-&gt;LoadCursor (IDC_CURSOR_HAND);</span>

    <span class="cpp-comment">// If you haven't the cursor resourse in your project</span>
    <span class="cpp-comment">// load default hand cursor from WinHlp32 module with ID=106</span>
    TCHAR szWindowsDir[MAX_PATH];
    GetWindowsDirectory(szWindowsDir ,MAX_PATH);
    strcat(szWindowsDir,<span class="cpp-string">&quot;\\Winhlp32.exe&quot;</span>);
    HMODULE hModule = LoadLibrary(szWindowsDir); 
    <span class="cpp-keyword">if</span> (hModule)
        m_hCursorHand = ::LoadCursor(hModule, MAKEINTRESOURCE(<span class="cpp-literal">106</span>));
<span class="cpp-preprocessor">#endif </span></pre>
<p>When the link button is clicked, <code>ShellExecute </code>is called to open 
the URL. If this fails, it sends a registered message to the parent window. </p>
<pre><span class="cpp-keyword">const</span> UINT WM_LINK_CLICKED = ::RegisterWindowMessage (_T (<span class="cpp-string">&quot;WM_LINK_CLICKED&quot;</span>));</pre>
<p>You can create a message handler of the parent window to do anything you want 
when the hyperlink is clicked. For example:</p>
<pre>afx_msg LRESULT OnLinkCliked(WPARAM wParam, LPARAM lParam);

ON_REGISTERED_MESSAGE(WM_LINK_CLICKED, OnLinkCliked)

LRESULT CURLLinkDlg::OnLinkCliked(WPARAM wParam, LPARAM lParam)
{
   UINT nLinkID = (UINT)wParam;
   <span class="cpp-keyword">switch</span>(nLinkID)
   {
     <span class="cpp-keyword">case</span> IDOK:
          OnOK();
     <span class="cpp-keyword">break</span>;
     <span class="cpp-keyword">case</span> IDC_SHOW_MESSAGE:
          MessageBox(_T(<span class="cpp-string">&quot;Hope you find this code useful!&quot;</span>));
     <span class="cpp-keyword">break</span>;
   }

   <span class="cpp-keyword">return</span> <span class="cpp-literal">0</span>;
}</pre>
<h2>History</h2>
<ul>
  <li>July 18, 2004: Initial public release to The Code Project.<br>
 </li>
</ul>

</body>

</html>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产成人高清在线| 国产一区二区免费看| 国产精品久久久久久户外露出| 日韩一二三四区| 久久综合九色综合97_久久久| 日韩欧美激情一区| 久久久久99精品国产片| 国产欧美一区二区三区鸳鸯浴 | 日韩精品一区二| 国产精品福利电影一区二区三区四区| 久久久www免费人成精品| 在线91免费看| 欧美国产日韩a欧美在线观看| 26uuu亚洲| 亚洲精品国产精品乱码不99| 精品一区二区三区免费视频| 国产宾馆实践打屁股91| 91亚洲国产成人精品一区二区三| 在线观看日韩av先锋影音电影院| 欧美老女人在线| 久久人人爽爽爽人久久久| 中文字幕亚洲视频| 亚洲电影激情视频网站| 成人免费视频视频在线观看免费 | 欧美日韩高清不卡| 最新不卡av在线| 国产真实乱对白精彩久久| 色婷婷久久久综合中文字幕| 欧美亚洲动漫制服丝袜| 久久蜜桃av一区二区天堂| 一区二区三区在线高清| 国产成人免费视频网站| 91福利国产精品| 亚洲乱码精品一二三四区日韩在线| 日本美女一区二区| 欧美男人的天堂一二区| 最新中文字幕一区二区三区| 国产99一区视频免费| 国产99久久久国产精品免费看| 色综合久久久久综合体桃花网| 欧美片网站yy| 一区二区三区免费看视频| 经典三级视频一区| 91.麻豆视频| 91精品一区二区三区久久久久久 | 亚洲人123区| 国产精品一区在线| 久久精品在线观看| 免费成人小视频| 欧美一区二区三区视频在线| 国产精品久久久久久久久免费樱桃 | 亚洲一区二区3| 欧美日本免费一区二区三区| 亚洲午夜国产一区99re久久| 日本精品一级二级| 日韩在线一二三区| 欧美videos中文字幕| 久久99热国产| 国产精品久久久久aaaa| 在线观看国产一区二区| 视频一区国产视频| 久久九九全国免费| 成人国产一区二区三区精品| 中文字幕一区二区不卡| 色视频成人在线观看免| 天天做天天摸天天爽国产一区 | 国产成人一区二区精品非洲| 日日夜夜免费精品| 中文字幕日韩av资源站| 国产精品女人毛片| 久久久久久久久久久久久女国产乱| 欧美日韩久久久久久| 在线视频你懂得一区二区三区| 91成人看片片| 欧美午夜电影在线播放| 亚洲一区二区欧美日韩| 日韩午夜三级在线| 99精品一区二区三区| 国产激情一区二区三区四区| 一区二区三区日韩在线观看| 久久久久国产精品人| 欧美在线三级电影| www..com久久爱| 国内久久婷婷综合| 精品午夜久久福利影院| 亚洲一区二区五区| 亚洲欧美乱综合| 亚洲欧美经典视频| 一区二区三区久久久| 亚洲人成网站精品片在线观看 | 香蕉影视欧美成人| 亚洲综合色成人| 亚洲图片欧美色图| 亚洲小少妇裸体bbw| 亚洲人成伊人成综合网小说| 中文字幕一区二区视频| 欧美激情一区二区三区| 一区二区中文视频| 精品一区二区在线播放| 美女视频黄 久久| 精品久久国产字幕高潮| 国产精品原创巨作av| 亚洲日韩欧美一区二区在线| 欧美一区日韩一区| 91久久精品一区二区三| 国产精品一区二区在线观看不卡 | 亚洲九九爱视频| 一区二区在线电影| 亚洲综合色视频| 蜜桃视频在线观看一区| 性欧美大战久久久久久久久| 日韩av电影免费观看高清完整版 | 91精品婷婷国产综合久久 | 中文子幕无线码一区tr| 最新不卡av在线| 亚洲欧美国产77777| 五月天一区二区| 国产成人精品亚洲日本在线桃色| 91女神在线视频| 欧美xingq一区二区| **欧美大码日韩| 激情图片小说一区| 久久成人久久爱| 日本高清不卡一区| 久久一留热品黄| 午夜精彩视频在线观看不卡| 日韩中文字幕一区二区三区| aaa亚洲精品| 国产三级三级三级精品8ⅰ区| 亚洲黄色录像片| 成人小视频免费在线观看| 欧美日韩成人综合在线一区二区| 日韩写真欧美这视频| 亚洲视频1区2区| 99麻豆久久久国产精品免费| 精品国产乱码久久久久久牛牛| 亚洲欧美色综合| 成人午夜激情视频| 日韩精品专区在线影院重磅| 亚洲国产精品久久人人爱| 在线视频综合导航| 一区在线观看视频| 91免费观看视频| 亚洲国产视频一区二区| 狠狠色狠狠色合久久伊人| 欧美精品一区二区三区在线| 午夜精品福利一区二区三区av| 欧美日韩一卡二卡| 亚洲成人一区在线| 91成人在线精品| 日韩电影网1区2区| 4438x亚洲最大成人网| 婷婷开心激情综合| 欧美猛男男办公室激情| 日本亚洲最大的色成网站www| 欧美一区二区久久久| 天堂在线亚洲视频| 国产日韩综合av| 欧美视频精品在线观看| 日韩不卡一区二区三区| 久久精品视频一区二区| 色94色欧美sute亚洲13| 伦理电影国产精品| 亚洲欧美aⅴ...| 久久综合色综合88| 在线一区二区三区四区| 国产精品一区三区| 美女免费视频一区二区| 成人性生交大片免费| 99这里只有精品| 亚洲日本护士毛茸茸| 色综合久久综合网97色综合| 国产毛片精品视频| 国产在线精品免费| 国产成人亚洲综合色影视| 国产aⅴ精品一区二区三区色成熟| 国产一区二区不卡| 91在线观看美女| 欧美日韩一级二级三级| 在线观看一区日韩| 91精品国产综合久久精品图片| 制服丝袜av成人在线看| 精品88久久久久88久久久| 国产丝袜在线精品| 国产精品久久午夜| 久久久久久久久久久99999| 7777精品伊人久久久大香线蕉完整版 | 国产欧美1区2区3区| 日韩欧美亚洲一区二区| 91丝袜国产在线播放| 欧美理论片在线| 久久综合色综合88| 国产精品福利电影一区二区三区四区 | 欧美日韩性生活| 2017欧美狠狠色| 国产精品成人午夜| 韩日精品视频一区| 欧美日韩一区小说| 中文字幕日韩一区二区| 日韩毛片高清在线播放|