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

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

?? apb.htm

?? 好的教程Vc++21 天
?? 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一区二区三区免费野_久草精品视频
a美女胸又www黄视频久久| 五月天久久比比资源色| 欧美日韩电影在线播放| 精品一区二区免费在线观看| 亚洲色图色小说| 精品少妇一区二区| 欧美在线小视频| 岛国一区二区在线观看| 日本欧美肥老太交大片| 亚洲激情综合网| 中文字幕不卡的av| 日韩女同互慰一区二区| 欧美在线不卡视频| 成人深夜福利app| 激情综合一区二区三区| 亚洲电影第三页| 一区二区三区日韩| 中文字幕在线不卡国产视频| 久久九九久久九九| 日韩西西人体444www| 欧美日韩在线观看一区二区| 91天堂素人约啪| 成人性生交大片免费看中文| 国产在线精品不卡| 麻豆精品国产91久久久久久| 肉色丝袜一区二区| 午夜不卡在线视频| 亚洲国产精品尤物yw在线观看| 国产精品久久久久久久久图文区| 精品国产91九色蝌蚪| 欧美一区国产二区| 这里只有精品99re| 欧美一区二区在线不卡| 欧美电影一区二区| 欧美电影一区二区| 欧美另类久久久品| 4438成人网| 日韩欧美精品在线| 日韩免费高清电影| 欧美成人性战久久| 精品国产一区二区三区av性色| 欧美国产乱子伦| 国产日韩欧美一区二区三区综合| 欧美精品一区二区三区蜜臀 | 成人开心网精品视频| 国产精品亚洲成人| 国产精品一区二区免费不卡| 国产一区二区中文字幕| 国产在线观看免费一区| 国产一区二区三区不卡在线观看| 精品一区二区日韩| 成人黄色电影在线| 色婷婷国产精品久久包臀| 91麻豆国产精品久久| 日本道精品一区二区三区| 欧美日韩国产bt| 欧美日韩国产精品成人| 欧美一区二区三区在线观看| 日韩欧美aaaaaa| 久久久国产午夜精品| 国产精品麻豆欧美日韩ww| 国产精品成人午夜| 亚洲第一狼人社区| 蜜臀精品一区二区三区在线观看| 蜜桃av噜噜一区二区三区小说| 国产原创一区二区三区| 99久久精品国产一区二区三区| 在线欧美日韩精品| 这里只有精品99re| 中文字幕精品—区二区四季| 一区二区久久久| 精品亚洲成a人| 91影院在线观看| 欧美狂野另类xxxxoooo| 精品久久久久久久人人人人传媒| 国产欧美精品一区二区色综合| 国产精品国产自产拍在线| 夜色激情一区二区| 狠狠v欧美v日韩v亚洲ⅴ| 成人在线视频首页| 91视频xxxx| 欧美成人一区二区三区| 一区二区三区在线观看动漫| 久久精品久久精品| 在线亚洲一区二区| 久久一二三国产| 亚洲午夜私人影院| 欧美区在线观看| 国产精品免费网站在线观看| 天天免费综合色| 91免费国产在线| 精品国一区二区三区| 亚洲精品美国一| 国产成人高清视频| 欧美一区二区三区在线观看视频| 国产精品女主播在线观看| 免费在线观看成人| 色婷婷综合久久| 国产日韩av一区| 日日夜夜免费精品| 国内一区二区视频| 欧美色中文字幕| 18欧美亚洲精品| 国产精品综合在线视频| 91精品国产一区二区三区蜜臀| 亚洲日穴在线视频| 国产电影一区在线| 在线不卡一区二区| 一区二区三区中文字幕电影| 国产91清纯白嫩初高中在线观看| 3d成人动漫网站| 亚洲一区二区在线播放相泽 | 蜜臀久久99精品久久久久久9| 91亚洲精华国产精华精华液| 久久久无码精品亚洲日韩按摩| 日韩中文字幕亚洲一区二区va在线 | 国产精品视频免费看| 国产在线日韩欧美| 日韩欧美成人午夜| 日韩极品在线观看| 911精品产国品一二三产区| 亚洲一区二区三区在线看| 一本一道波多野结衣一区二区| 欧美激情自拍偷拍| 国产成人福利片| 国产欧美日韩在线观看| 国产一区二区在线观看视频| 日韩欧美的一区二区| 免费高清在线一区| 日韩视频永久免费| 日韩1区2区日韩1区2区| 69av一区二区三区| 日韩激情一二三区| 欧美一级片免费看| 久久精品av麻豆的观看方式| 欧美一区二区三区四区在线观看| 日韩二区三区在线观看| 这里只有精品免费| 久久精品国产亚洲a| 精品国一区二区三区| 国产精品一区二区免费不卡| 国产欧美一区二区三区鸳鸯浴 | 亚洲自拍偷拍麻豆| 在线观看免费亚洲| 国内外成人在线| 日本一区二区免费在线| 懂色中文一区二区在线播放| 中文字幕精品一区| 91国产精品成人| 天堂在线一区二区| 欧美成人精品3d动漫h| 国产精选一区二区三区| 国产精品国产三级国产普通话蜜臀 | 久久疯狂做爰流白浆xx| 久久伊人中文字幕| 99国内精品久久| 亚洲一区二区三区四区五区中文 | 色婷婷香蕉在线一区二区| 亚洲一二三专区| 日韩美女一区二区三区四区| 国产精品99久久久| 1024成人网| 91精品国产入口在线| 国产精品一区二区不卡| 1区2区3区精品视频| 91精品婷婷国产综合久久| 国产一区欧美二区| 亚洲精品免费在线播放| 欧美一区二区不卡视频| 成人中文字幕电影| 日韩精品三区四区| 欧美国产在线观看| 欧美日韩精品福利| 国产成人精品1024| 五月天中文字幕一区二区| 久久天堂av综合合色蜜桃网| 色综合 综合色| 韩国一区二区三区| 一区二区三区四区激情| 精品处破学生在线二十三| 91麻豆国产福利精品| 久草中文综合在线| 亚洲免费观看高清在线观看| 日韩久久久精品| 在线亚洲人成电影网站色www| 国产在线播精品第三| 亚洲成人一区二区在线观看| 久久精品亚洲乱码伦伦中文| 欧美午夜一区二区三区| 欧美在线视频你懂得| 精品在线亚洲视频| 一区二区日韩av| 中文一区二区完整视频在线观看| 欧美日韩国产综合一区二区三区| 国产成a人亚洲| 久久国产人妖系列| 亚洲国产欧美在线人成| 中文字幕制服丝袜成人av| 日韩精品一区二区在线观看| 精品视频1区2区3区|