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

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

?? apb.htm

?? 21天學會VC的英文版
?? HTM
?? 第 1 頁 / 共 5 頁
字號:
    ///////////////////////    CFileDialog m_ldFile(TRUE);    // Show the File open dialog and capture the result    if (m_ldFile.DoModal() == IDOK)    {        // Get the filename selected        m_sResults = m_ldFile.GetPathName();        // Update the dialog        UpdateData(FALSE);    }    ///////////////////////    // MY CODE ENDS HERE    ///////////////////////</PRE><PRE>}</PRE><DL>	<DT></DT>	<DD>The GetPathName function returns the path and filename, so changing the function	call from GetFileName to GetPathName alters the display to include the path with	the filename.	<P>	<DT></DT>	<DD><B>2. </B>Add a button on the custom dialog that calls the MessageBox function	with a Yes or No selection. Pass the result back to the main application dialog.	<P>	<DT></DT>	<DD>Follow these steps:	<P>	<DT></DT>	<DD><B>1. </B>Using the Class View, add a member variable to the CMsgDlg class. Specify	the variable type as int, the name as m_iYesNo, and the access as Public.	<P>	<DT></DT>	<DD><B>2. </B>Using the Resource View, bring the custom dialog into the editor area.	Add a command button to the window, named IDC_YESNO with a caption &amp;Yes or No.	<P>	<DT></DT>	<DD><B>3. </B>Using the Class Wizard, add a function to the new button you just added	and edit the function. Include the following code:	<P></DL><PRE>void CMsgDlg::OnYesno() {    // TODO: Add your control notification handler code here    ///////////////////////    // MY CODE STARTS HERE    ///////////////////////    // Ask the user    m_iYesNo = MessageBox(&quot;Choose Yes or No&quot;, &quot;Yes or No&quot;, &Acirc;MB_YESNO);    ///////////////////////    // MY CODE ENDS HERE    ///////////////////////</PRE><PRE>}</PRE><DL>	<DT></DT>	<DD><B>4. </B>Add a button to the main dialog window named IDC_YESNO with the caption	Y&amp;es or No.	<P>	<DT></DT>	<DD><B>5. </B>Using the Class Wizard, add a function to the new button, including	the following code:	<P></DL><PRE>void CDialogsDlg::OnYesno() {    // TODO: Add your control notification handler code here    ///////////////////////    // MY CODE STARTS HERE    ///////////////////////    // What did the user answer    switch (m_dMsgDlg.m_iYesNo)    {    case IDYES:    // Did the user answer YES?        m_sResults = &quot;Yes!&quot;;        break;    case IDNO:     // Did the user answer NO?        m_sResults = &quot;No!&quot;;        break;</PRE><PRE><B>}</B></PRE><P><PRE>    // Update the dialog    UpdateData(FALSE);    ///////////////////////    // MY CODE ENDS HERE    ///////////////////////</PRE><PRE>}</PRE><H2><A NAME="Heading16"></A>Day 6</H2><H3>Quiz</H3><DL>	<DT></DT>	<DD><B>1. </B>What event message does a menu selection send to the window message	queue?	<P>	<DT></DT>	<DD>COMMAND.	<P>	<DT></DT>	<DD><B>2. </B>How do you attach a menu to a dialog window?	<P>	<DT></DT>	<DD>In the dialog designer, open the properties dialog for the window, and choose	the menu from the drop-down list of menus.	<P>	<DT></DT>	<DD><B>3. </B>Which existing class do you specify for handling event messages for	the menu?	<P>	<DT></DT>	<DD>The dialog class for the window on which the menu appears.	<P>	<DT></DT>	<DD><B>4. </B>What event message should a pop-up menu be triggered by?	<P>	<DT></DT>	<DD>The WM_CONTEXTMENU event.	<P></DL><H3>Exercises</H3><DL>	<DT></DT>	<DD><B>1. </B>Add a button to the main window and have it call the same function	as the Hello menu entry.	<P>	<DT></DT>	<DD>Follow these steps:	<P>	<DT></DT>	<DD><B>1. </B>Add a button to the dialog screen. Supply a button ID of IDC_HELLO	and a caption of &amp;Hello.	<P>	<DT></DT>	<DD><B>2. </B>Using the Class Wizard, add a function to the button. Name the function	OnHello.	<P>	<DT></DT>	<DD><B>2. </B>Add a pop-up menu to your application that uses the Help drop-down	menu as the pop-up menu.	<P>	<DT></DT>	<DD>Follow these steps:	<P>	<DT></DT>	<DD><B>1. </B>Using the Class Wizard, add a function for the WM_CONTEXTMENU event	message in your dialog window.	<P>	<DT></DT>	<DD><B>2. </B>Edit the function, adding the following code:	<P></DL><PRE>void CMenusDlg::OnContextMenu(CWnd* pWnd, CPoint point){    // TODO: Add your message handler code here and/or call &Acirc;default    ///////////////////////    // MY CODE STARTS HERE    ///////////////////////    // Declare local variables    CMenu *m_lMenu;    // A pointer to the menu    CPoint m_pPoint;    // A copy of the mouse position    // Copy the mouse position to a local variable    m_pPoint = point;    // Convert the position to a screen position    ClientToScreen(&amp;m_pPoint);    // Get a pointer to the window menu    m_lMenu - GetMenu();    // Get a pointer to the first submenu    m_lMenu = m_lMenu-&gt;GetSubMenu(1);    // Show the Pop-up Menu    m_lMenu-&gt;TrackPopupMenu(TPM_CENTERALIGN + TPM_LEFTBUTTON,        m_pPoint.x, m_pPoint.y, this, NULL);    ///////////////////////    // MY CODE ENDS HERE    ///////////////////////    CDialog::OnRButtonDown(nFlags, point);</PRE><PRE>}</PRE><H2><A NAME="Heading19"></A>Day 7</H2><H3>Quiz</H3><DL>	<DT></DT>	<DD><B>1. </B>How can you specify that the text is to be underlined?	<P>	<DT></DT>	<DD>Pass 1 as the value for the bUnderline argument to the CreateFont function.	<P>	<DT></DT>	<DD><B>2. </B>How can you print your text upside down?	<P>	<DT></DT>	<DD>Pass 1800 as the nEscapement argument to the CreateFont function.	<P>	<DT></DT>	<DD><B>3. </B>How many times is the EnumFontFamProc callback function called by the	operating system?	<P>	<DD>The function is called once for each font that is available in the system, unless	the callback function returns 0 and stops the listing of fonts.</DL><H3>Exercises</H3><DL>	<DT></DT>	<DD><B>1. </B>Add a check box to switch between using the entered text to display	the font and using the font name to display the font, as in Figure 7.4.	<P>	<DT></DT>	<DD>Add the check box to the dialog. Set its properties as follows:	<P>	<DT></DT>	<DD>ID: IDC_CBUSETEXT	<P>	<DT></DT>	<DD>Caption: &amp;Use Entered Text	<P>	<DT></DT>	<DD>Using the Class Wizard, attach a variable to this control. Specify the variable	type as a boolean with the name m_bUseText.	<P>	<DT></DT>	<DD>Using the Class Wizard, add a function for the BN_CLICKED event message for the	check box. Edit the function, adding the following code:	<P></DL><PRE>void CDay7Dlg::OnCbusetext(){    // TODO: Add your control notification handler code here    ///////////////////////    // MY CODE STARTS HERE    ///////////////////////    // Update the variables with the dialog controls    UpdateData(TRUE);    // Using the font name for the font sample?    if (!m_bUseText)        // Using the font name        m_strDisplayText = m_strFontName;    else        // Using the entered text        m_strDisplayText = m_strSampText;    // Update the dialog    UpdateData(FALSE);    ///////////////////////    // MY CODE ENDS HERE    ///////////////////////</PRE><PRE>}</PRE><DL>	<DT></DT>	<DD>Modify the OnInitDialog function to initialize the check box as follows:	<P></DL><PRE>BOOL CDay7Dlg::OnInitDialog(){    CDialog::OnInitDialog();...    // TODO: Add extra initialization here    ///////////////////////    // MY CODE STARTS HERE    ///////////////////////    // Fill the font list box    FillFontList();    // Initialize the text to be entered    m_strSampText = &quot;Testing&quot;;    // Copy the text to the font sample area    m_strDisplayText = m_strSampText;    // Initialize the check box    m_bUseText = TRUE;    // Update the dialog    UpdateData(FALSE);    ///////////////////////    // MY CODE ENDS HERE    ///////////////////////    return TRUE;  // return TRUE  unless you set the focus                   // to a control</PRE><PRE>}</PRE><DL>	<DT></DT>	<DD>Modify the OnSelchangeLfonts function as follows:	<P></DL><PRE>void CDay7Dlg::OnSelchangeLfonts(){    // TODO: Add your control notification handler code here    ///////////////////////    // MY CODE STARTS HERE    ///////////////////////    // Update the variables with the dialog controls    UpdateData(TRUE);    // Using the font name for the font sample?    if (!m_bUseText)    {        // Copy the font name to the font sample        m_strDisplayText = m_strFontName;        // Update the dialog with the variables        UpdateData(FALSE);    }    // Set the font for the sample    SetMyFont();    ///////////////////////    // MY CODE ENDS HERE    ///////////////////////</PRE><PRE>}</PRE><DL>	<DT></DT>	<DD>Finally, modify the OnChangeEsamptext function as follows:	<P></DL><PRE>void CDay7Dlg::OnChangeEsamptext(){    // TODO: If this is a RICHEDIT control, the control will not    // send this notification unless you override the     // CDialog::OnInitialUpdate()    // function and call CRichEditCrtl().SetEventMask()    // with the EN_CHANGE flag ORed into the mask.    // TODO: Add your control notification handler code here    ///////////////////////    // MY CODE STARTS HERE    ///////////////////////    // Update the variables with the dialog controls    UpdateData(TRUE);    // Using the text for the font sample?    if (m_bUseText)    {        // Copy the current text to the font sample        m_strDisplayText = m_strSampText;        // Update the dialog with the variables        UpdateData(FALSE);    }    ///////////////////////    // MY CODE ENDS HERE    ///////////////////////</PRE><PRE>}</PRE><DL>	<DT></DT>	<DD><B>2. </B>Add a check box to display the font sample in italics, as in Figure	7.5.	<P>	<DT></DT>	<DD>Add the check box to the dialog. Set its properties as follows:	<P>	<DT></DT>	<DD>ID: IDC_CBITALIC	<P>	<DT></DT>	<DD>Caption: &amp;Italic	<P>	<DT></DT>	<DD>Using the Class Wizard, attach a variable to this control. Specify the variable	type as a boolean with the name m_bItalic.	<P>	<DT></DT>	<DD>Using the Class Wizard, add a function for the BN_CLICKED event message for the	check box. Edit the function, adding the following code:	<P></DL><PRE>void CDay7Dlg::OnCbitalic(){    // TODO: Add your control notification handler code here    ///////////////////////    // MY CODE STARTS HERE    ///////////////////////    // Update the variables with the dialog controls    UpdateData(TRUE);    // Set the font for the sample    SetMyFont();    ///////////////////////    // MY CODE ENDS HERE    ///////////////////////</PRE><PRE>}</PRE><DL>	<DT></DT>	<DD>Modify the SetMyFont function as in the following code:	<P></DL><PRE>void CDay7Dlg::SetMyFont(){    CRect rRect;        // The rectangle of the display area    int iHeight;        // The height of the display area    int iItalic = 0;    // Italicize the font?    // Has a font been selected?    if (m_strFontName != &quot;&quot;)    {        // Get the dimensions of the font sample display area        m_ctlDisplayText.GetWindowRect(&amp;rRect);        // Calculate the area height        iHeight = rRect.top - rRect.bottom;        // Make sure the height is positive        if (iHeight &lt; 0)            iHeight = 0 - iHeight;        // Should the font be italicized?        If (m_bItalic)            iItalic = 1;        // Create the font to be used        m_fSampFont.CreateFont((iHeight - 5), 0, 0, 0,                 FW_NORMAL, iItalic, 0, 0, DEFAULT_CHARSET,                 OUT_CHARACTER_PRECIS, CLIP_CHARACTER_PRECIS,                 DEFAULT_QUALITY, DEFAULT_PITCH |                FF_DONTCARE, m_strFontName);        // Set the font for the sample display area        m_ctlDisplayText.SetFont(&amp;m_fSampFont);    }</PRE><PRE>}</PRE><H2><A NAME="Heading22"></A>Day 8</H2><H3>Quiz</H3><DL>	<DT></DT>	<DD><B>1. </B>What are the three values that are combined to specify a color?	<P>	<DT></DT>	<DD>Red, green, and blue.	<P>	<DT></DT>	<DD><B>2. </B>What do you use to draw on windows without needing to know what graphics	card the user has?	<P>	<DT></DT>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91免费观看国产| 久久99精品国产| 欧美日韩一二三| 性做久久久久久免费观看| 欧美喷水一区二区| 精品一区二区在线看| www一区二区| 91香蕉国产在线观看软件| 一区二区三区丝袜| 欧美一二三四区在线| 国产精品996| 一区二区三区小说| 日韩女优制服丝袜电影| 丁香激情综合五月| 亚洲影院理伦片| 精品国产精品一区二区夜夜嗨| 国产美女娇喘av呻吟久久| 中文字幕在线不卡一区 | 国产精品夫妻自拍| 91国偷自产一区二区开放时间 | 成人精品国产免费网站| 亚洲乱码中文字幕| 日韩一区二区三区免费看| 国产69精品久久99不卡| 亚洲综合清纯丝袜自拍| 日韩一区二区三区电影在线观看| 国产精品一卡二卡| 亚洲综合无码一区二区| 精品国精品自拍自在线| 欧洲一区二区三区在线| 国产精品一区免费视频| 亚洲一区二区精品久久av| 国产亚洲1区2区3区| 欧美日韩第一区日日骚| 成人高清在线视频| 蜜臀av性久久久久蜜臀aⅴ四虎| 国产精品视频第一区| 欧美美女激情18p| 成人av动漫在线| 麻豆久久久久久久| 亚洲国产视频在线| 国产精品传媒在线| 日韩午夜在线观看| 欧美在线|欧美| 成人一级视频在线观看| 日韩avvvv在线播放| 亚洲精品免费视频| 中文字幕av一区二区三区高| 欧美一区2区视频在线观看| 一本大道久久a久久精品综合| 老司机免费视频一区二区| 亚洲网友自拍偷拍| 成人欧美一区二区三区小说| 久久久久国产精品麻豆| 日韩精品一区二区三区老鸭窝| 欧美性猛交一区二区三区精品| av电影在线观看一区| 国产一区高清在线| 美腿丝袜一区二区三区| 天天影视涩香欲综合网| 亚洲午夜一二三区视频| 亚洲男人的天堂在线aⅴ视频| 中文字幕的久久| 国产视频911| 久久久综合激的五月天| 欧美不卡在线视频| 日韩亚洲欧美在线| 欧美一区二区三级| 欧美一级国产精品| 日韩欧美一二三| 欧美一区二区三区喷汁尤物| 在线播放视频一区| 欧美午夜一区二区三区| 在线观看一区二区视频| 一本到不卡精品视频在线观看| av成人免费在线观看| 91麻豆免费在线观看| 色999日韩国产欧美一区二区| 99re成人精品视频| 99国产麻豆精品| 91免费看`日韩一区二区| 91美女蜜桃在线| 欧美在线免费观看视频| 欧美美女黄视频| 欧美一级搡bbbb搡bbbb| 日韩欧美国产1| 久久精品亚洲一区二区三区浴池 | 日本一区二区久久| 国产精品福利一区| 夜夜亚洲天天久久| 五月婷婷色综合| 精品影院一区二区久久久| 国产精品资源站在线| 成人aaaa免费全部观看| 欧美最猛黑人xxxxx猛交| 欧美日韩高清一区二区| 精品国产a毛片| 中文一区二区在线观看| 亚洲欧美乱综合| 日韩主播视频在线| 国产精品一区在线观看你懂的| 波多野结衣中文字幕一区二区三区 | 欧美一区二区三区小说| 久久久久久毛片| 中文字幕一区二区日韩精品绯色| 亚洲国产婷婷综合在线精品| 日日摸夜夜添夜夜添亚洲女人| 国产一区三区三区| 色综合久久六月婷婷中文字幕| 欧美日本在线播放| 久久久国产精品麻豆| 玉米视频成人免费看| 看电视剧不卡顿的网站| 成人丝袜视频网| 欧美电影在线免费观看| 国产精品丝袜一区| 日韩精品免费视频人成| 国产白丝网站精品污在线入口| 色婷婷综合久久久| 精品日韩一区二区| 一区二区国产视频| 国模冰冰炮一区二区| 欧美午夜片在线观看| 国产拍欧美日韩视频二区| 亚洲大片免费看| a在线欧美一区| 欧美一级国产精品| 一区二区三区四区在线| 国产成人久久精品77777最新版本 国产成人鲁色资源国产91色综 | 亚洲天堂av一区| 精品无人码麻豆乱码1区2区| 欧美性大战久久久久久久 | 国产精品美女久久久久久久久 | 亚洲欧美色图小说| 狠狠色丁香久久婷婷综合丁香| 色婷婷激情综合| 中文在线一区二区 | 日韩精品成人一区二区三区| 成人精品亚洲人成在线| 精品剧情在线观看| 日韩经典中文字幕一区| 色综合久久综合网欧美综合网| 国产网红主播福利一区二区| 麻豆传媒一区二区三区| 欧美色倩网站大全免费| 亚洲欧美日韩久久精品| 国产成人自拍网| 欧美成人vps| 美女一区二区视频| 777午夜精品免费视频| 亚洲无线码一区二区三区| 91网上在线视频| 中文字幕av免费专区久久| 国产乱码精品一区二区三区av | 欧美精品乱码久久久久久| 亚洲自拍偷拍九九九| 91免费视频网| 亚洲日本在线视频观看| 国产成人精品免费网站| 久久精品人人做人人综合 | 亚洲美女一区二区三区| 成人综合在线网站| 国产亚洲综合av| 国产精品一区二区在线观看不卡 | 欧美tk丨vk视频| 精油按摩中文字幕久久| 2欧美一区二区三区在线观看视频 337p粉嫩大胆噜噜噜噜噜91av | 欧美日韩国产欧美日美国产精品| 综合久久国产九一剧情麻豆| 99久久婷婷国产综合精品电影 | 日韩一区二区三区观看| 日韩电影网1区2区| 日韩欧美一区二区视频| 国内不卡的二区三区中文字幕| 欧美刺激午夜性久久久久久久| 麻豆专区一区二区三区四区五区| 日韩欧美国产精品| 国产揄拍国内精品对白| 日本一区二区综合亚洲| www.av亚洲| 亚洲最色的网站| 欧美电影一区二区三区| 国产资源精品在线观看| 国产三级三级三级精品8ⅰ区| 成人免费av在线| 亚洲一区二区三区四区中文字幕| 欧美嫩在线观看| 国产在线精品一区二区 | 亚洲黄色小说网站| 欧美日韩成人综合| 国内成人精品2018免费看| 中文字幕巨乱亚洲| 91国在线观看| 久久99国产精品尤物| 中文字幕av免费专区久久| 欧美视频中文字幕| 蜜乳av一区二区| 亚洲丝袜另类动漫二区| 欧美丰满高潮xxxx喷水动漫| 国产aⅴ综合色|