• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
  • 有關屬性對話框(property sheet )的幾個提示

    發表于:2007-07-14來源:作者:點擊數: 標簽:
    下面的所有例子,都假定你從CPropertySheet中派生了新類。 1、隱藏APPLY按鈕 使用 PSH_NOAPPLYNOW 標志. propsheet.m_psh.dwFlags |= PSH_NOAPPLYNOW; 2、增加新的子窗口 使用成員變量。CEdit m_edit. BOOL CMyPropSheet::OnInitDialog() { BOOL bResult = C
    下面的所有例子,都假定你從CPropertySheet中派生了新類。

    1、隱藏APPLY按鈕

    使用 PSH_NOAPPLYNOW 標志.

    propsheet.m_psh.dwFlags |= PSH_NOAPPLYNOW;
    2、增加新的子窗口
    使用成員變量。CEdit m_edit.
    BOOL CMyPropSheet::OnInitDialog()
    {
    BOOL bResult = CPropertySheet::OnInitDialog();

    CRect rectWnd;
    GetWindowRect(rectWnd);
    SetWindowPos(NULL, 0, 0,
    rectWnd.Width() + 100,
    rectWnd.Height(),
    SWP_NOMOVE | SWP_NOZORDER | SWP_NOACTIVATE);

    m_edit.CreateEx( WS_EX_CLIENTEDGE, _T("EDIT"), NULL,
    WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_BORDER,
    rectWnd.Width(), 20, 80, 24, m_hWnd, 0, 0 );

    m_edit.SetFont( GetFont() );

    CenterWindow();
    return bResult;
    }
    3、改變頁片上的字體
    在 OnInitDialog() 中:

    // m_fontEdit is a member variable
    // Create a bold font
    m_fontEdit.CreateFont( -8, 0, 0, 0, 700, 0, 0, 0, 1,
    0, 0, 0, 0, _T("MS Sans Serif") );
    GetTabControl()->SetFont( &m_fontEdit );
    4、使用Image

    m_imageTab為成員變量。
    BOOL CMyPropSheet::OnInitDialog()
    {
    BOOL bResult = CPropertySheet::OnInitDialog();

    m_imageTab.Create( IDB_TABIMAGES, 13, 1, RGB(255,255,255) );
    CTabCtrl *pTab = GetTabControl();
    pTab->SetImageList( &m_imageTab );

    TC_ITEM tcItem;
    tcItem.mask = TCIF_IMAGE;
    for( int i = 0; i < 3; i++ )
    {
    tcItem.iImage = i;
    pTab->SetItem( i, &tcItem );
    }
    return bResult;
    }

    原文轉自:http://www.kjueaiud.com

    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>