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

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

?? apb.htm

?? 好的教程Vc++21 天
?? 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一区二区三区免费野_久草精品视频
亚洲图片欧美激情| 国产色产综合色产在线视频| 蜜桃视频第一区免费观看| 26uuu亚洲综合色欧美| 国产精品网站在线观看| 亚洲精品久久嫩草网站秘色| 欧美午夜电影一区| gogogo免费视频观看亚洲一| 日韩精品1区2区3区| 成人av片在线观看| 欧美一级日韩免费不卡| 天天综合天天综合色| 91蝌蚪国产九色| 这里只有精品电影| 久久日韩精品一区二区五区| 国产欧美久久久精品影院| 一区二区三区美女视频| 99精品一区二区| 色乱码一区二区三区88| 国产精品国产a| 丁香婷婷综合激情五月色| 91激情五月电影| 亚洲欧洲无码一区二区三区| 理论片日本一区| 久久婷婷久久一区二区三区| 美女视频网站久久| 日韩欧美的一区| 亚洲自拍偷拍网站| 欧美性xxxxx极品少妇| 欧美成人乱码一区二区三区| 国产在线视频一区二区| 久久99精品国产.久久久久久| 无码av中文一区二区三区桃花岛| 一区二区三区小说| 五月综合激情日本mⅴ| 日韩av不卡在线观看| 久久精品网站免费观看| 欧美一卡二卡在线观看| 亚洲欧洲制服丝袜| 欧美性感一类影片在线播放| 中文字幕一区二区三区蜜月| 国产一区二区在线电影| 欧美日韩国产首页| 亚洲精品成人少妇| 91精品国模一区二区三区| 一区二区在线免费| 精久久久久久久久久久| 国产日韩欧美激情| 欧美性色欧美a在线播放| 日韩美女视频一区| 日韩一区二区免费电影| 成人午夜视频在线| 欧美国产日韩a欧美在线观看| 91久久国产综合久久| 亚洲裸体在线观看| 日本久久一区二区| 亚洲日本va午夜在线影院| 欧美精品丝袜中出| 成人动漫中文字幕| 亚洲欧美日韩在线| 97超碰欧美中文字幕| 另类综合日韩欧美亚洲| 日韩理论片中文av| 色网综合在线观看| 亚洲欧美一区二区久久| 91精品国产手机| 色哟哟亚洲精品| 午夜精品视频一区| 欧美激情一区二区三区四区| 国产精品天美传媒| 欧美色区777第一页| 亚洲成av人片| 91麻豆免费在线观看| 丁香婷婷深情五月亚洲| 国产成人av自拍| 久久亚洲一级片| 国产清纯白嫩初高生在线观看91 | 精品va天堂亚洲国产| 亚洲综合视频网| 欧美高清在线视频| 欧美mv和日韩mv的网站| 欧美久久久久免费| 精品女同一区二区| 国产精品久久久久久久第一福利 | 成人国产在线观看| 欧美一区二区三区的| 午夜日韩在线观看| 日韩精品中午字幕| 国产成人在线影院| 欧美午夜一区二区三区免费大片| 这里只有精品电影| 久久久蜜臀国产一区二区| 日本在线播放一区二区三区| 中文在线免费一区三区高中清不卡| 蜜臀av一区二区在线免费观看| 亚洲精品视频免费观看| www日韩大片| av资源网一区| 精品一区二区三区在线观看| 丁香六月综合激情| 中文字幕佐山爱一区二区免费| 国产电影精品久久禁18| 免费日本视频一区| 中文字幕一区在线观看视频| 中文字幕欧美三区| 国产午夜精品一区二区三区四区| 精品嫩草影院久久| 久久综合色8888| 国产精品麻豆欧美日韩ww| 欧美日韩国产欧美日美国产精品| 久久精品国产在热久久| 一区二区三区波多野结衣在线观看| 99久久免费视频.com| 麻豆91在线观看| 色综合天天综合狠狠| 美女精品一区二区| 久久精品国产网站| 国产真实乱子伦精品视频| 欧洲精品一区二区三区在线观看| 久久精品人人爽人人爽| 欧美日韩成人一区| 欧美日本一道本在线视频| 美女一区二区三区| 国产精品99久久久久久有的能看| 国产激情精品久久久第一区二区| 亚洲午夜激情网页| 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆| 色婷婷国产精品综合在线观看| 欧美日韩一区二区三区四区| 成人av影视在线观看| 色8久久精品久久久久久蜜| 国内精品伊人久久久久av一坑| 粉嫩一区二区三区在线看| 91免费版在线看| 成人激情综合网站| 国产成人精品影院| 国产精品影音先锋| av动漫一区二区| 欧美日韩国产片| 久久精品在线观看| 一区二区三区中文字幕电影| 亚洲成人精品影院| 美腿丝袜亚洲一区| 精品在线播放免费| 日韩电影免费在线观看网站| 国产成人午夜高潮毛片| 欧美自拍偷拍一区| 亚洲精品在线电影| 亚洲黄色av一区| 一区二区三区丝袜| 精品影院一区二区久久久| 99精品桃花视频在线观看| 欧美一区二区精品在线| 日本在线不卡视频一二三区| 婷婷激情综合网| 奇米亚洲午夜久久精品| 亚洲aⅴ怡春院| 国产成人亚洲综合a∨婷婷 | 精品国产一区二区三区忘忧草 | 成人手机在线视频| 国产999精品久久久久久绿帽| 国产在线不卡视频| 亚洲欧美aⅴ...| 久久99国产精品免费| 成人短视频下载| 一区二区三区影院| 国产超碰在线一区| 日韩免费一区二区三区在线播放| 亚洲精品高清在线| 成人亚洲精品久久久久软件| 欧美一区二区三区婷婷月色| 欧美视频在线一区| 91黄色免费看| 国内精品第一页| 日本韩国精品在线| 91在线国内视频| 国产成人精品影视| 在线一区二区三区| 久久香蕉国产线看观看99| 亚洲曰韩产成在线| 成人av动漫网站| 欧美三级电影在线看| 欧美一级在线视频| 性久久久久久久| 欧美午夜在线观看| 一区二区三区欧美日| 成人一区二区三区在线观看 | 夫妻av一区二区| 久久久久9999亚洲精品| 九九精品一区二区| 播五月开心婷婷综合| 亚洲欧洲精品一区二区三区| 一区二区在线看| 欧美日韩美女一区二区| 久久精品72免费观看| 波多野结衣精品在线| 亚洲欧美激情小说另类| 色88888久久久久久影院野外| 91精品国产乱码久久蜜臀| 中文乱码免费一区二区|