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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? apb.htm

?? 21天學(xué)會(huì)VC的英文版
?? HTM
?? 第 1 頁(yè) / 共 5 頁(yè)
字號(hào):
<PRE> 1: void CMouseDlg::OnMouseMove(UINT nFlags, CPoint point) 2: { 3:     // TODO: Add your message handler code here and/or call default 4: 5:     /////////////////////// 6:     // MY CODE STARTS HERE 7:     /////////////////////// 8: 9:         // Check to see if the left mouse button is down10:     if ((nFlags &amp; MK_LBUTTON) == MK_LBUTTON)11:     {12:         // Get the Device Context13:         CClientDC dc(this);14:15:         // Create a new pen16:         CPen lpen(PS_SOLID, 16, RGB(255, 0, 0));17:18:         // Use the new pen19:         dc.SelectObject(&amp;lpen);20:21:         // Draw a line from the previous point to the current point22:         dc.MoveTo(m_iPrevX, m_iPrevY);23:         dc.LineTo(point.x, point.y);24: 25:         // Save the current point as the previous point26:         m_iPrevX = point.x;27:         m_iPrevY = point.y;28:     }29:30:     // Check to see if the right mouse button is down31:     if ((nFlags &amp; MK_RBUTTON) == MK_RBUTTON)32:     {33:         // Get the Device Context34:         CClientDC rdc(this);35:36:         // Create a new pen37:         CPen rpen(PS_SOLID, 16, RGB(0, 0, 255));38: 39:         // Use the new pen40:         rdc.SelectObject(&amp;rpen);41: 42:         // Draw a line from the previous point to the current point43:         rdc.MoveTo(m_iPrevX, m_iPrevY);44:         rdc.LineTo(point.x, point.y);45: 46:         // Save the current point as the previous point47:         m_iPrevX = point.x;48:         m_iPrevY = point.y;49:     }50:51:     ///////////////////////52:     // MY CODE ENDS HERE53:     ///////////////////////54:55:     CDialog::OnMouseMove(nFlags, point);</PRE><PRE>56: }</PRE><DL>	<DT></DT>	<DD><B>2. </B>Extend the OnKeyDown function to add some of the following standard	cursors:	<P></DL><UL>	<LI>IDC_CROSS	<P>	<LI>IDC_UPARROW	<P>	<LI>IDC_SIZEALL	<P>	<LI>IDC_SIZENWSE	<P>	<LI>IDC_SIZENESW	<P>	<LI>IDC_SIZEWE	<P>	<LI>IDC_SIZENS	<P>	<LI>IDC_NO	<P>	<LI>IDC_APPSTARTING	<P>	<LI>IDC_HELP</UL><DL>	<DT></DT>	<DD>Your modified OnKeyDown function can look something like the following:	<P></DL><PRE>void CMouseDlg::OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags){    // TODO: Add your message handler code here and/or call default    ///////////////////////    // MY CODE STARTS HERE    ///////////////////////    char lsChar;        // The current character being pressed    HCURSOR lhCursor;    // The handle to the cursor to be displayed    // Convert the key pressed to a character    lsChar = char(nChar);    // Is the character &quot;A&quot;    if (lsChar == `A')    {        // Load the arrow cursor        lhCursor = AfxGetApp()-&gt;LoadStandardCursor(IDC_ARROW);        // Set the cursor flag        m_bCursor = TRUE;        // Set the screen cursor        SetCursor(lhCursor);    }    // Is the character &quot;B&quot;    if (lsChar == `B')    {        // Load the I beam cursor        lhCursor = AfxGetApp()-&gt;LoadStandardCursor(IDC_IBEAM);        // Set the cursor flag        m_bCursor = TRUE;        // Set the screen cursor        SetCursor(lhCursor);    }    // Is the character &quot;C&quot;    if (lsChar == `C')    {        // Load the hourglass cursor        lhCursor = AfxGetApp()-&gt;LoadStandardCursor(IDC_WAIT);        // Set the cursor flag        m_bCursor = TRUE;        // Set the screen cursor        SetCursor(lhCursor);    }    // Is the character &quot;D&quot;    if (lsChar == `D')    {        // Load the cross hair cursor        lhCursor = AfxGetApp()-&gt;LoadStandardCursor(IDC_CROSS);        // Set the cursor flag        m_bCursor = TRUE;        // Set the screen cursor        SetCursor(lhCursor);    }    // Is the character &quot;E&quot;    if (lsChar == `E')    {        // Load the up arrow cursor        lhCursor = AfxGetApp()-&gt;LoadStandardCursor(IDC_UPARROW);        // Set the cursor flag        m_bCursor = TRUE;        // Set the screen cursor        SetCursor(lhCursor);    }    // Is the character &quot;F&quot;    if (lsChar == `F')    {        // Load the size cursor        lhCursor = AfxGetApp()-&gt;LoadStandardCursor(IDC_SIZEALL);        // Set the cursor flag        m_bCursor = TRUE;        // Set the screen cursor        SetCursor(lhCursor);    }    // Is the character &quot;G&quot;    if (lsChar == `G')    {        // Load the up/right-down/left size cursor        lhCursor = AfxGetApp()-&gt;LoadStandardCursor(IDC_SIZENWSE);        // Set the cursor flag        m_bCursor = TRUE;        // Set the screen cursor        SetCursor(lhCursor);    }    // Is the character &quot;H&quot;    if (lsChar == `H')    {        // Load the up/left-down/right size cursor        lhCursor = AfxGetApp()-&gt;LoadStandardCursor(IDC_SIZENESW);        // Set the cursor flag        m_bCursor = TRUE;        // Set the screen cursor        SetCursor(lhCursor);    }    // Is the character &quot;I&quot;    if (lsChar == `I')    {        // Load the left-right size cursor        lhCursor = AfxGetApp()-&gt;LoadStandardCursor(IDC_SIZEWE);        // Set the cursor flag        m_bCursor = TRUE;        // Set the screen cursor        SetCursor(lhCursor);    }    // Is the character &quot;J&quot;    if (lsChar == `J')    {        // Load the up-down size cursor        lhCursor = AfxGetApp()-&gt;LoadStandardCursor(IDC_SIZENS);        // Set the cursor flag        m_bCursor = TRUE;        // Set the screen cursor        SetCursor(lhCursor);    }    if (lsChar == `K')    {        // Load the no cursor        lhCursor = AfxGetApp()-&gt;LoadStandardCursor(IDC_NO);        // Set the cursor flag        m_bCursor = TRUE;        // Set the screen cursor        SetCursor(lhCursor);    }    if (lsChar == `L')    {        // Load the app starting cursor        lhCursor = AfxGetApp()-&gt;LoadStandardCursor(IDC_APPSTARTING);        // Set the cursor flag        m_bCursor = TRUE;        // Set the screen cursor        SetCursor(lhCursor);    }    if (lsChar == `M')    {        // Load the help cursor        lhCursor = AfxGetApp()-&gt;LoadStandardCursor(IDC_HELP);        // Set the cursor flag        m_bCursor = TRUE;        // Set the screen cursor        SetCursor(lhCursor);    }    // Is the character &quot;X&quot;    if (lsChar == `X')    {        // Load the arrow cursor        lhCursor = AfxGetApp()-&gt;LoadStandardCursor(IDC_ARROW);        // Set the cursor flag        m_bCursor = TRUE;        // Set the screen cursor        SetCursor(lhCursor);        // Exit the application        OnOK();    }    ///////////////////////    // MY CODE ENDS HERE    ///////////////////////    CDialog::OnKeyDown(nChar, nRepCnt, nFlags);</PRE><PRE>}</PRE><H2><A NAME="Heading10"></A>Day 4</H2><H3>Quiz</H3><DL>	<DT></DT>	<DD><B>1. </B>What did you accomplish by adding the two timer IDs to the resource	symbols?	<P>	<DT></DT>	<DD>You defined the two IDs so that they were available as constants throughout the	application.	<P>	<DT></DT>	<DD><B>2. </B>What is another way to add these two IDs to the application?	<P>	<DT></DT>	<DD>Add them as #define constants in the class header file (Day2Dlg.h), as follows:	<P></DL><PRE>/////////////////////////////////////////////////////////////////////// CTimersDlg dialog#define ID_CLOCK_TIMER 1#define ID_COUNT_TIMER 2class CTimersDlg : public CDialog{..</PRE><PRE>.</PRE><DL>	<DT></DT>	<DD><B>3. </B>How can you tell two timers apart in the OnTimer function?	<P>	<DT></DT>	<DD>You use the timer ID to determine which timer triggered the event.	<P>	<DT></DT>	<DD><B>4. </B>How many timer events does your application receive if the timer is	set for one second and your application has been busy for one minute, preventing	it from receiving any timer event messages?	<P>	<DT></DT>	<DD>One.	<P></DL><H2>Exercise</H2><P>Update your application so that when the counter timer is started, the clock timeris reset to run at the same interval as the counter timer. When the counter timeris stopped, return the clock timer to a one-second interval.</P><P>To change the interval at which a timer is running, you need to first stop thetimer and then restart it, as in Listing B.6.</P><P><H4>LISTING B.6. THE REVISED OnStarttime AND OnStoptimer FUNCTIONS.</H4><PRE> 1: void CTimersDlg::OnStarttime() 2: { 3:     // TODO: Add your control notification handler code here 4:  5:     /////////////////////// 6:     // MY CODE STARTS HERE 7:     /////////////////////// 8:  9:     // Update the variables10:     UpdateData(TRUE);11: 12:     // Initialize the count13:     m_iCount = 0;14:     // Format the count for displaying15:     m_sCount.Format(&quot;%d&quot;, m_iCount);16: 17:     // Update the dialog18:     UpdateData(FALSE);19:     // Start the timer20:     SetTimer(ID_COUNT_TIMER, m_iInterval, NULL);21: 22:     // Stop the clock timer23:     KillTimer(ID_CLOCK_TIMER);24:     // Restart the clock timer with the counter interval25:     SetTimer(ID_CLOCK_TIMER, m_iInterval, NULL);26: 27:     // Enable the Stop Timer button28:     m_cStopTime.EnableWindow(TRUE);29:     // Disable the Start Timer button30:     m_cStartTime.EnableWindow(FALSE);31: 32:     ///////////////////////33:     // MY CODE ENDS HERE34:     ///////////////////////35: }36: 37: void CTimersDlg::OnStoptimer()38: {39:     // TODO: Add your control notification handler code here40: 41:     ///////////////////////42:     // MY CODE STARTS HERE43:     ///////////////////////44: 45:     // Stop the timer46:     KillTimer(ID_COUNT_TIMER);47: 48:     // Stop the clock timer49:     KillTimer(ID_CLOCK_TIMER);50:     // Restart the clock timer with 1 second interval51:     SetTimer(ID_CLOCK_TIMER, 1000, NULL);52: 53:     // Disable the Stop Timer button54:     m_cStopTime.EnableWindow(FALSE);55:     // Enable the Start Timer button56:     m_cStartTime.EnableWindow(TRUE);57: 58:     ///////////////////////59:     // MY CODE ENDS HERE60:     ///////////////////////</PRE><PRE>61: }</PRE><P><H2><A NAME="Heading13"></A>Day 5</H2><H3>Quiz</H3><DL>	<DT></DT>	<DD><B>1. </B>What are the possible return codes that your application might receive	from the MessageBox function call when you specify the MB_RETRYCANCEL button combination?	<P>	<DT></DT>	<DD>IDRETRY and IDCANCEL.	<P>	<DT></DT>	<DD><B>2. </B>What are the common dialogs that are built into the Windows operating	systems that are defined as MFC classes?	<P>	<DT></DT>	<DD>The common Windows dialogs that are defined as MFC classes are	<P></DL><UL>	<LI>File selection	<P>	<LI>Font selection	<P>	<LI>Color selection	<P>	<LI>Page setup for printing	<P>	<LI>Printing	<P>	<LI>Find and replace</UL><DL>	<DT></DT>	<DD><B>3. </B>What is the difference between a modal dialog and a modeless dialog?	<P>	<DT></DT>	<DD>A modal dialog stops all application processing until the user responds to the	dialog. A modeless dialog allows the user to continue working with the rest of the	application while the dialog is open for use.	<P>	<DD><B>4. </B>How can you display a File Save dialog for the user instead of the	File Open dialog that you did have in your application?	<DT></DT>	<DD>In the class instance variable declaration, pass FALSE instead of TRUE. This	makes the variable declaration look like this:	<P></DL><PRE>CFileDialog m_ldFile(FALSE);</PRE><DL>	<DT></DT>	<DD><B>5. </B>Why did you not need to create any functions and add any code to your	custom dialog?	<P>	<DT></DT>	<DD>The only functionality that was needed on the custom dialog was calling UpdateData	before closing the dialog. Because the OK and Cancel buttons were never deleted from	the dialog, the OK button automatically performed this functionality.	<P></DL><H3>Exercises</H3><DL>	<DT></DT>	<DD><B>1. </B>Modify your application so that it includes the directory with the	filename in the application. (Hint: The GetFileName function returns the path and	filename that was selected in the File Open dialog.)	<P>	<DT></DT>	<DD>Modify the OnFileopen function as follows:	<P></DL><PRE>void CDialogsDlg::OnFileopen() {    // TODO: Add your control notification handler code here    ///////////////////////    // MY CODE STARTS HERE

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人av免费观看| 中文字幕一区二区三区av| 欧美日韩视频第一区| 91首页免费视频| av电影一区二区| 成人网男人的天堂| 成人黄色免费短视频| 成人av资源网站| 91在线视频18| 在线观看欧美黄色| 欧美日韩国产高清一区二区 | 丁香亚洲综合激情啪啪综合| 国产精品99久| 久久奇米777| 国产亚洲1区2区3区| 日本一区二区成人在线| 国产精品人妖ts系列视频| 国产精品国产自产拍高清av| 中文字幕在线不卡视频| 亚洲女人****多毛耸耸8| 一区二区三区四区在线播放| 香蕉乱码成人久久天堂爱免费| 亚洲bt欧美bt精品777| 美女国产一区二区三区| 精品一区二区三区在线播放| 懂色av噜噜一区二区三区av| 色综合久久天天| 777午夜精品视频在线播放| 26uuu欧美日本| 国产精品国产成人国产三级| 亚洲精品v日韩精品| 日韩高清在线电影| 国产成人av电影在线观看| 91首页免费视频| 91精品国产入口| 国产欧美精品一区| 一级日本不卡的影视| 美女视频免费一区| 成人av在线观| 欧美日韩夫妻久久| 国产片一区二区| 香蕉影视欧美成人| 懂色一区二区三区免费观看| 欧美在线影院一区二区| 久久综合色一综合色88| 亚洲欧洲日本在线| 美脚の诱脚舐め脚责91| 91网站在线观看视频| 日韩一区二区在线观看视频播放| 国产精品人妖ts系列视频| 日日摸夜夜添夜夜添亚洲女人| 国产白丝网站精品污在线入口| 欧美性大战久久久久久久蜜臀| 久久久激情视频| 午夜精品久久一牛影视| 成人av免费在线观看| 欧美一区二区视频在线观看2020| 1000精品久久久久久久久| 毛片av中文字幕一区二区| 91免费国产在线观看| 精品剧情在线观看| 亚洲第一综合色| 福利一区福利二区| 日韩欧美另类在线| 亚洲国产精品久久久久婷婷884| 国产成人精品免费网站| 在线观看91av| 亚洲免费av观看| 福利一区二区在线| 日韩欧美国产小视频| 亚洲一区二区av在线| 成人高清在线视频| 欧美精品一区二区三区蜜桃| 日韩专区中文字幕一区二区| 色伊人久久综合中文字幕| 中文字幕欧美日本乱码一线二线| 久久精工是国产品牌吗| 欧美日本在线视频| 亚洲综合一区二区| 99精品热视频| 亚洲国产电影在线观看| 国产精品亚洲午夜一区二区三区| 日韩视频免费直播| 日韩高清不卡一区二区三区| 日本韩国欧美在线| 亚洲欧美在线另类| 成人美女在线观看| 国产日本亚洲高清| 激情综合色播激情啊| 欧美一级高清片在线观看| 舔着乳尖日韩一区| 欧美日韩免费在线视频| 亚洲国产人成综合网站| 欧美亚洲一区二区在线| 亚洲制服丝袜av| 91久久精品一区二区| 亚洲人成网站影音先锋播放| 91看片淫黄大片一级在线观看| 国产精品免费看片| www.成人网.com| 亚洲私人影院在线观看| 色综合久久久网| 一区二区三区四区激情 | 欧美大片在线观看一区二区| 日本成人在线不卡视频| 欧美一区二区三区四区视频| 免费黄网站欧美| 欧美mv日韩mv| 国产乱对白刺激视频不卡| 国产亚洲一本大道中文在线| 国产高清精品久久久久| 国产精品午夜免费| aa级大片欧美| 亚洲精品一二三| 欧美日本一区二区三区四区| 日韩福利视频导航| 欧美精品一区二区三区蜜桃视频| 国产精品一区二区视频| 国产日产精品一区| 99久久精品免费看| 亚洲福利一区二区| 日韩欧美综合在线| 国产成人午夜高潮毛片| 中文字幕一区二区三区色视频| 在线看国产日韩| 日本va欧美va精品发布| 久久久精品影视| 91色.com| 日韩av网站在线观看| 久久蜜桃香蕉精品一区二区三区| 成人爱爱电影网址| 亚洲成国产人片在线观看| 精品欧美一区二区在线观看 | 久久尤物电影视频在线观看| 粉嫩蜜臀av国产精品网站| 怡红院av一区二区三区| 欧美一区二区在线免费观看| 岛国精品在线观看| 一区二区三区在线观看欧美| 日韩欧美区一区二| 97国产一区二区| 日本不卡一区二区三区高清视频| 国产丝袜美腿一区二区三区| 在线视频你懂得一区二区三区| 欧美a级一区二区| 亚洲欧洲在线观看av| 51精品秘密在线观看| 丰满放荡岳乱妇91ww| 天天色天天操综合| 国产日韩欧美麻豆| 欧美日韩国产一区| 国产成人亚洲综合a∨婷婷图片| 一区二区三区鲁丝不卡| 精品国产乱码久久久久久久久| 色综合久久中文综合久久97| 韩国成人福利片在线播放| 一区二区三区四区视频精品免费| 精品久久一区二区三区| 欧美午夜视频网站| 国产福利视频一区二区三区| 亚洲成人久久影院| 国产精品免费视频一区| 日韩视频一区二区| 欧美午夜精品久久久久久孕妇 | 欧美人成免费网站| 高清不卡在线观看av| 蜜臀久久99精品久久久久久9| 亚洲精品水蜜桃| 国产午夜精品美女毛片视频| 91精品一区二区三区久久久久久| voyeur盗摄精品| 国产精品资源在线| 日韩高清中文字幕一区| 亚洲在线免费播放| 一区免费观看视频| 国产性天天综合网| 精品福利在线导航| 欧美丰满高潮xxxx喷水动漫| 色婷婷国产精品综合在线观看| 国产福利精品一区| 久久精工是国产品牌吗| 五月婷婷激情综合网| 亚洲黄色片在线观看| 国产精品久久影院| 久久久久免费观看| 日韩欧美另类在线| 3d动漫精品啪啪1区2区免费| 欧美性高清videossexo| 91久久精品午夜一区二区| eeuss鲁片一区二区三区| 粉嫩高潮美女一区二区三区 | 色综合久久综合中文综合网| 成人av片在线观看| 风间由美性色一区二区三区| 国产精品一色哟哟哟| 国产综合色视频| 国模少妇一区二区三区| 国产一区二区三区四区在线观看| 精品一区二区三区在线观看国产| 另类小说综合欧美亚洲|