标题:求解读代码者
只看楼主
tianbian210
Rank: 1
等 级:新手上路
帖 子:46
专家分:1
注 册:2008-12-25
结帖率:87.5%
 问题点数:0 回复次数:0 
求解读代码者
程序代码:
{CRect rect;

      CSize winSize;

      int  cx, cy = 0;

      CControlBar*  pBar;

      pBar = GetControlBar(AFX_IDW_STATUS_BAR);


 

       if((pBar ! =NULL) && (pBar -> IsWindowVisible())){

              pBar ->GetWindowRect (rect);

              winSize = rect. Size ();

              cy+=(winSize. cy);}

        pBar=GetControlBar(AFX_IDW_ TOOLBAR);

        if((pBar!=NULL)&&(pBar ->IsWindowVisible())){

            pBar -> GetWindowRect(rect);

            winSize = rect.Size ();

            cy+=(winSize. Cy*2);}

        cx = 384+(384-m_clientSize. cx);

        cy += (192+(192-m_clientSize. cy));

        GetWindowRect(rect);

    SetWindowPos(this,rect. left,rect.top, cx, cy, SWP_ NOZORDER);}

OnViewStatusBar(){

    CFrameWnd::OnBarCheck(ID_VIEW_STATUS_BAR);

              SetClientSize();}

CDC* pDC=GetDC();

        LOGFONT  m _lFont;

        COLORREF  m_cTextColor;

        CFont  myFont;

        CFont* pOldFont;

        CFontDialog  FontDlg;

        FontDlg. m_cf. lpLogFont=&m_lFont;

        FontDlg.m_cf.rgbColors=m_cTextColor;

        FontDlg. m_cf. Flags!=CF_INITTOLOGFONTSTRUCT;


 

if ( FontDlg. DoModal() = =IDOK)

{

FontDlg.GetCurrentFont(&m_1Font);

m_cTextColor  = FontDlg.GetColor();


 }
搜索更多相关主题的帖子: 代码 求解 
2010-04-13 23:04



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-302900-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.146493 second(s), 7 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved