MFC 常见问题

1 如何改变ccombox的高度

    LOGFONT lf;

    // clear out structure
    memset(&lf, 0, sizeof(LOGFONT));     
    // request a 12-pixel-height font
    lf.lfHeight = 25;           
    // request a face name "Arial"
    _tcscpy(lf.lfFaceName, L"Arial");
    //strcpy(lf.lfFaceName, "Arial");
    // create the font
    HFONT hfont = ::CreateFontIndirect(&lf);  
    ::SendMessage(m_cbxHesu.m_hWnd,WM_SETFONT,(WPARAM)hfont,MAKELPARAM(TRUE,0));



你可能感兴趣的:(C++/C)