在资源里改吧.
IDD_MYDLG_DIALOG DIALOGEX 0, 0, 236, 166 // 这四个数字决定对话框大小
STYLE WS_POPUP | WS_CHILD | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "文字边框和底纹"
FONT 9, "宋体"  // 这儿设置字体和大小
BEGIN
  ...
END

解决方案 »

  1.   

    CFont font;
    .....
    pointer->SendMessage(WM_SETFONT,(DWORD)&font,0);
    就可以了
      

  2.   

    The property sheet is not resizable by the user. That is, the user cannot drag an edge of the property sheet dialog to resize it. However, resizing the property sheet programmatically is the same as resizing any other window - get the window dimension by calling GetWindowRect(), modify the dimension and then resize the window by calling the MoveWindow() or the SetWindowPos() function. The code fragment below is from a member function of a CPropertySheet derived class. It increases the width of the property sheet by 100 pixels.  CRect rectWnd;
    GetWindowRect(rectWnd);
    SetWindowPos(NULL, 0, 0,
    rectWnd.Width() + 100,
    rectWnd.Height(),
    SWP_NOMOVE | SWP_NOZORDER | SWP_NOACTIVATE);
    字体是标签上的字体?如果是的话
    We can change the font used by the tab control to draw the labels by using the SetFont() function in the CWnd class. The code given below is very simple and does not bother with resizing the tab control or the property sheet. This works fine for fonts that are smaller than the font being used by the tab control or about the same size. A good place to put this code in is the OnInitDialog() of the CPropertySheet derived class. 
    // 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 );
    摘自vckbase
      

  3.   

    在资源里面改是无效的,我试过。最好是建立好字体后,用GetTabControl()->SetFont(&font)。直接对属性页改字体没有作用。
      

  4.   

    用GetTabControl()->SetFont(&font)智能修改标签上的字体,而属性页内各个控件的字体却不能修改,不知道这个怎么做到?
      

  5.   

    各位,对不起,也许我没说清楚。
    我要改的不是标题栏的字体,而是属性页里面所有控件的字体。
    在资源里改是没有用的。
    我用了SetFont,但没有效果,不知道对字体是不是有什么限制?
      

  6.   

    改变控件中的字体,我认为应该先初始化,创建字体对象CFont m_font;
    然后在初始化中创建字体,添加控件时使用这个字体
      pCtrl->SetFont(&m_font);