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

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

?? masked_edit2.shtml.htm

?? 一套比較全的編輯框控制教程。。。附源代碼。
?? HTM
字號:
<html>

<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<meta name="author" content="zafir anjum">
<title>edit controls - table of contents</title>
<meta name="description" content="source code for various windows controls">
<meta name="keywords" content="mfc source code edit controls">
</head>

<body background="../di2001.jpg"
tppabs="http://www.codeguru.com/fancyhome/back.gif" bgcolor="#ffffff">

<h3 align="center"><font color="#aoao99">a masked edit control with time, date, telephone
number, ip address and post code examples</font></h3>

<hr align="center">
<!-- author and contact details -->

<p>this article was contributed by <a href="mailto:jmd@jvf.co.uk">jeremy davis</a>. </p>

<p><img src="masked_edit2.gif" tppabs="http://www.codeguru.com/editctrl/masked_edit2.gif"
width="311" height="300">&nbsp;<a href="masked_edit2_demo.zip"
tppabs="http://www.codeguru.com/editctrl/masked_edit2_demo.zip">download demo project and
source</a> (37k) or <a href="masked_edit2_source.zip"
tppabs="http://www.codeguru.com/editctrl/masked_edit2_source.zip">download source only</a>
(4k)</p>

<p><strong>updated : </strong><a href="#updates">12th august 1998</a><!-- the article... --></p>

<p>the original source for this code came from <a href="mailto::sam.claret@dial.pipex.com">sam
claret's</a> article <a href="masked_edit.shtml.htm"
tppabs="http://www.codeguru.com/editctrl/masked_edit.shtml">a masked edit control</a>.</p>

<p><strong>ctimeedit</strong><br>
the class that i was originally interested in was his ctimeedit that allowed the editing
of hours and minutes in an edit control. his original code only allowed a maximum 23<sup>rd</sup>
hour, and 59<sup>th</sup> minute, i.e. the standard 24 hour clock. there was no way of
specifying a 12 hour clock or even a 48 hour clock.. for this reason i have added <tt><font
color="#990000">sethours(int hrs)</font></tt>, <tt><font color="#990000">setmins(int mins)</font></tt>to
ctimeedit to allow this, and <tt><font color="#990000">settime(cstring date)</font></tt>,
and <tt><font color="#990000">cstring gettimestr()</font></tt> to extend the use with
other time functions..</p>

<p>as with sam's code... </p>

<pre><font color="#990000"><tt>	#include &lt;afxdao.h&gt;
</pre>
</tt></font>

<p>in a header file such as stdafx.h. then create a cedit box in the dialog editor, and
using classwizard declare a cedit control variable for it such as m_editctrl.next edit the
relevant header file to change the control variable from cedit to ctimeedit. </p>

<p>in a fuction such as oninitdialog either write... </p>

<pre><font color="#990000"><tt>	m_editctrl.settime(coledatetime::getcurrenttime());
</pre>
</tt></font>

<p>or </p>

<pre><font color="#990000"><tt>	m_editctrl.settime(&quot;11:03&quot;);
</pre>
</tt></font>

<p>to set the time and then to set the maximum hours and minutes write... </p>

<pre><font color="#990000"><tt>	m_editctrl.sethours(12);
	m_editctrl.setmins(59);
</pre>
</tt></font>

<p>to return the time in a string rather than a coledatetime object write... </p>

<pre><font color="#990000"><tt>	cstring string = m_editctrl.gettimestr();</tt></font></pre>

<p>the default maximum hours are 24, and the default maximum minutes are 59. </p>

<p>&nbsp;</p>

<p><strong>cmaskedit<br>
</strong>joe ismert asked me how he could use this masked edit class to allow entry of,
for example a telephone number. well cdateedit and ctimeedit are both sub-classes of
cmaskedit. to create your own customised masked edit control you can either create your
own sub-class of cmaskedit for your own unique mask, or use cmaskedit directly. the
following telephone number, ip address, and post code examples all use cmaskdirectly,
however can be placed a their own unique sub-class for which either cdateedit and
ctimeedit can be used as examples.</p>

<blockquote>
  <p><strong>telephone number<br>
  </strong>create a cmaskedit control called for example m_editphonectrl. then in
  oninitdialog write...<br>
  </p>
  <pre><font color="#990000"><tt>
  //cmaskedit - telephone initialisation
  m_editphonectrl.m_bistime    = false;

  //for use with ctimeedit
  m_editphonectrl.m_isdate     = false;

  //for use with cdateedit
  m_editphonectrl.m_busemask   = true;

  //set to use cmaskedit
  m_editphonectrl.m_strmask    = &quot;0000 0000000&quot;;            //the mask string
  m_editphonectrl.m_strliteral = &quot;____ _______&quot;;            //&quot;_&quot; char = character entry
                                                            //&quot; &quot; char = no character entry
  m_editphonectrl.m_str = 0116 2111111&quot;;                    //initial value
  m_editphonectrl.m_strmaskliteral = m_editphonectrl.m_str; //backspace replace string
  m_editphonectrl.setwindowtext(m_editphonectrl.m_str);
</tt></font></pre>
  <p><strong>ip address<br>
  </strong></p>
  <p>create a cmaskedit control called for example m_editipctrl. then in oninitdialog
  write...<br>
  </p>
  <pre><font color="#990000"><tt>
  //cmaskedit - ip address initialisation
  m_editipctrl.m_bistime&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = false;
  m_editipctrl.m_isdate&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = false;
  m_editipctrl.m_busemask&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = true;
  m_editipctrl.m_strmask&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &quot;999.999.999.999&quot;;
  m_editipctrl.m_strliteral&nbsp;&nbsp;&nbsp;&nbsp; = &quot;___.___.___.___&quot;;
  m_editipctrl.m_str&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &quot;209.66 .99 .126&quot;;
  m_editipctrl.m_strmaskliteral = m_editipctrl.m_str;
  m_editipctrl.setwindowtext(m_editipctrl.m_str);
</tt></font></pre>
  <p><strong>post code<br>
  </strong></p>
  <p>create a cmaskedit control called for example m_editpcodectrl. then in oninitdialog
  write...<br>
  </p>
  <pre><font color="#990000"><tt>
  //cmaskedit - ipost code initialisation

  m_editpcodectrl.m_bistime&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = false;
  m_editpcodectrl.m_isdate&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = false;
  m_editpcodectrl.m_busemask&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = true;
  m_editpcodectrl.m_strmask&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &quot;ll00 0ll&quot;;
  m_editpcodectrl.m_strliteral&nbsp;&nbsp;&nbsp;&nbsp; = &quot;____ ___&quot;;
  m_editpcodectrl.m_str&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &quot;le12 7at&quot;;
  m_editpcodectrl.m_strmaskliteral = m_editpcodectrl.m_str;
  m_editpcodectrl.setwindowtext(m_editpcodectrl.m_str);
</tt></font></pre>
</blockquote>

<blockquote>
  <p align="left"><strong>cmaskedit m_strmask<br>
  </strong>the member variable m_strmask specifies what type of characters can be written
  and where.</p>
  <table border="0" width="31%">
    <tr>
      <td width="20%"><strong>0</strong></td>
      <td width="50%">digit only</td>
    </tr>
    <tr>
      <td width="20%"><strong>9</strong></td>
      <td width="50%">digit or space</td>
    </tr>
    <tr>
      <td width="20%"><strong>#</strong></td>
      <td width="50%">digit or space or + or -</td>
    </tr>
    <tr>
      <td width="20%"><strong>l</strong></td>
      <td width="50%">alpha only</td>
    </tr>
    <tr>
      <td width="20%"><strong>?</strong></td>
      <td width="50%">alpha or space</td>
    </tr>
    <tr>
      <td width="20%"><strong>a</strong></td>
      <td width="50%">alphanumeric</td>
    </tr>
    <tr>
      <td width="20%"><strong>a</strong></td>
      <td width="50%">alphanumeric or space</td>
    </tr>
    <tr>
      <td width="20%"><strong>&amp;</strong></td>
      <td width="50%">all printable characters</td>
    </tr>
  </table>
</blockquote>

<p><a name="updates"></a><strong>updates</strong></p>

<p><strong>12th august 1998<br>
</strong>&nbsp;&nbsp; cmaskedit : added the use of backspace to replace what has already
been typed with another string (by <a href="mailto::rfujimoto@oceania.com">rodney fujimoto</a>).
the examples use the original string as a replacement,&nbsp; however by default the
replacement is blank, thus nothing will be replaced by the backspace key.<br>
&nbsp;&nbsp; provided separate .zip file of masked.cpp and masked.h to demo .zip file.<br>
&nbsp;&nbsp; updated demo .exe.</p>

<p><strong>7th august 1998<br>
</strong>&nbsp;&nbsp; ctimeedit : added settime(cstring date), and cstring gettimestr().<br>
&nbsp;&nbsp; cmaskedit : cured bug with &quot;9&quot; masks not allowing spaces.<br>
&nbsp;&nbsp; updated article and demo .exe, added examples.</p>

<p><strong>27th july 1998<br>
&nbsp;&nbsp; </strong>original version</p>

<p>last updated: 12 august 1998 </p>
<!--comments-->
</body>
</html>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲大片免费看| 91激情在线视频| 色噜噜狠狠成人网p站| 69堂成人精品免费视频| 久久精品一区八戒影视| 天堂成人免费av电影一区| 成人黄动漫网站免费app| 在线综合+亚洲+欧美中文字幕| 国产精品久久久久影院老司| 免费视频最近日韩| 在线亚洲免费视频| 成人免费在线观看入口| 国产一区二区三区在线观看免费视频| 色狠狠桃花综合| 亚洲欧洲一区二区三区| 国产成人精品免费| 337p粉嫩大胆噜噜噜噜噜91av | 免费亚洲电影在线| 欧美三级视频在线播放| 中文字幕中文乱码欧美一区二区| 国精产品一区一区三区mba视频 | 色狠狠桃花综合| 国产精品你懂的在线| 国产一区二区主播在线| 欧美一区二区国产| 丝袜美腿亚洲综合| 欧美日韩亚州综合| 偷拍一区二区三区四区| 在线播放中文一区| 亚洲www啪成人一区二区麻豆| 色94色欧美sute亚洲13| 亚洲欧美激情在线| 色国产精品一区在线观看| 亚洲精品国产第一综合99久久| av网站一区二区三区| 国产精品久久久久久久蜜臀 | 欧美性色黄大片| 亚洲午夜激情网页| 欧美日韩久久久一区| 午夜精彩视频在线观看不卡| 欧美一卡2卡三卡4卡5免费| 奇米精品一区二区三区在线观看| 91精品一区二区三区在线观看| 日本强好片久久久久久aaa| 91精品久久久久久久99蜜桃 | 亚洲成av人片在线观看无码| 欧美美女一区二区三区| 免费看欧美美女黄的网站| 26uuu精品一区二区三区四区在线 26uuu精品一区二区在线观看 | 亚洲国产精品久久久男人的天堂| 欧美日韩亚洲丝袜制服| 久久精品久久综合| 欧美国产一区二区| 欧美亚洲一区二区在线观看| 日韩电影免费一区| 久久久精品中文字幕麻豆发布| 成人av网址在线| 午夜精品久久久久久久| 久久综合色之久久综合| 99麻豆久久久国产精品免费优播| 洋洋成人永久网站入口| 日韩一区二区三区视频在线| 国产成人亚洲综合a∨婷婷图片| 亚洲精品欧美综合四区| 91精品国产综合久久蜜臀| 国产麻豆视频精品| 一区二区三区在线高清| 精品欧美乱码久久久久久1区2区| a4yy欧美一区二区三区| 日韩电影在线观看网站| 亚洲国产精品黑人久久久| 欧美视频一区在线观看| 国产毛片精品国产一区二区三区| 亚洲欧美日韩国产综合| 日韩精品最新网址| 色欧美88888久久久久久影院| 精品一区二区三区香蕉蜜桃| 1区2区3区欧美| 日韩免费一区二区| 欧洲人成人精品| 懂色av噜噜一区二区三区av| 日韩中文字幕区一区有砖一区 | 精品国产1区二区| 欧美性受xxxx黑人xyx| 国产91在线看| 久久精品国产久精国产爱| 洋洋成人永久网站入口| 国产欧美日本一区视频| 日韩一区二区三区电影在线观看 | 欧美xingq一区二区| 欧美在线视频全部完| 成人免费黄色大片| 精品一区二区三区香蕉蜜桃| 性欧美大战久久久久久久久| 国产精品黄色在线观看| 精品va天堂亚洲国产| 91精品黄色片免费大全| 欧美性猛交xxxxxx富婆| 99riav一区二区三区| 国产精品亚洲一区二区三区在线| 日av在线不卡| 日韩精品欧美精品| 亚洲精品ww久久久久久p站 | 91香蕉视频在线| 国产99精品国产| 国产激情视频一区二区在线观看| 狠狠狠色丁香婷婷综合激情 | 97久久精品人人做人人爽50路| 国产原创一区二区三区| 激情综合网av| 久久精品999| 国产在线精品不卡| 狠狠网亚洲精品| 国产一区二三区| 高清视频一区二区| 成人午夜av影视| 丁香啪啪综合成人亚洲小说| 成人黄页毛片网站| 播五月开心婷婷综合| av一本久道久久综合久久鬼色| av在线这里只有精品| 91老司机福利 在线| 在线欧美日韩国产| 欧美日韩黄色一区二区| 9191久久久久久久久久久| 欧美一级理论性理论a| 精品国产亚洲在线| 国产精品女同一区二区三区| 亚洲欧美日韩中文播放 | 国产成人精品三级麻豆| 99麻豆久久久国产精品免费 | 一本大道综合伊人精品热热| 在线观看91视频| 欧美一区二区三区在线| 久久亚洲欧美国产精品乐播| 国产欧美一区二区精品性色超碰| 国产精品欧美一级免费| 一区二区视频在线| 蜜桃视频一区二区三区| 国产成人综合视频| 91国偷自产一区二区开放时间| 欧美日韩一区二区在线观看 | 欧美xxxxx裸体时装秀| 中文字幕乱码一区二区免费| 一区二区三区国产豹纹内裤在线| 日韩高清在线一区| 成人免费视频网站在线观看| 欧美在线一二三四区| 欧美mv和日韩mv国产网站| 国产精品美女久久久久aⅴ| 亚洲一区二区四区蜜桃| 国产一区二区看久久| 色就色 综合激情| 精品久久五月天| 亚洲精品五月天| 韩国欧美国产1区| 在线看不卡av| 久久久国产午夜精品| 亚洲成人综合在线| 成人美女在线观看| 制服丝袜日韩国产| 日韩美女视频19| 国产成人av电影| 欧美一级欧美三级在线观看| 亚洲卡通欧美制服中文| 国产一区二区三区在线观看免费 | 免费成人在线网站| 91亚洲精品久久久蜜桃| 久久久久久久久久久99999| 亚洲高清视频中文字幕| av一区二区三区四区| 久久精品一区二区三区不卡| 亚洲自拍另类综合| 91亚洲午夜精品久久久久久| 久久久精品国产免大香伊| 日本亚洲一区二区| 欧美日韩一本到| 亚洲狠狠丁香婷婷综合久久久| 国产成人亚洲综合色影视| 欧美草草影院在线视频| 日韩1区2区3区| 欧美午夜电影网| 一区二区成人在线| 91免费视频网址| 亚洲欧洲精品一区二区三区| 国产成人免费xxxxxxxx| 精品区一区二区| 久久se精品一区二区| 欧美一区在线视频| 婷婷成人综合网| 7777女厕盗摄久久久| 日日夜夜精品免费视频| 91精品在线观看入口| 午夜伊人狠狠久久| 欧美日韩亚州综合| 奇米综合一区二区三区精品视频| 欧美久久久影院| 青青草国产成人99久久| 日韩一区二区三区视频在线观看| 青青草精品视频|