Click here to Skip to main content
15,898,134 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionSHBrowseForFolder - start up dir Pin
YaronNir8-May-06 4:25
YaronNir8-May-06 4:25 
AnswerRe: SHBrowseForFolder - start up dir Pin
David Crow8-May-06 4:39
David Crow8-May-06 4:39 
GeneralRe: SHBrowseForFolder - start up dir Pin
YaronNir8-May-06 4:43
YaronNir8-May-06 4:43 
GeneralRe: SHBrowseForFolder - start up dir Pin
David Crow8-May-06 4:46
David Crow8-May-06 4:46 
GeneralRe: SHBrowseForFolder - start up dir Pin
YaronNir8-May-06 4:50
YaronNir8-May-06 4:50 
General[OT] Re: SHBrowseForFolder - start up dir Pin
David Crow8-May-06 5:31
David Crow8-May-06 5:31 
GeneralRe: [OT] Re: SHBrowseForFolder - start up dir Pin
YaronNir8-May-06 5:40
YaronNir8-May-06 5:40 
GeneralRe: [OT] Re: SHBrowseForFolder - start up dir Pin
David Crow8-May-06 9:08
David Crow8-May-06 9:08 
Try:

CMyButton::CMyButton()
{
    LOGFONT lf = {0};

    _tcscpy(lf.lfFaceName, _T("MS Sans Serif"));
    lf.lfHeight = 28;
    lf.lfWeight = FW_BOLD;

    m_font.CreateFontIndirect(&lf);
}
 
void CMyButton::PreSubclassWindow() 
{
    SetFont(&m_font);	
    CButton::PreSubclassWindow();
}



"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain

"We will be known forever by the tracks we leave." - Native American Proverb


GeneralRe: SHBrowseForFolder - start up dir Pin
YaronNir8-May-06 5:06
YaronNir8-May-06 5:06 
QuestionRe: SHBrowseForFolder - start up dir Pin
David Crow8-May-06 5:33
David Crow8-May-06 5:33 
AnswerRe: SHBrowseForFolder - start up dir Pin
YaronNir8-May-06 5:51
YaronNir8-May-06 5:51 
AnswerRe: SHBrowseForFolder - start up dir Pin
jhwurmbach8-May-06 4:42
jhwurmbach8-May-06 4:42 
GeneralRe: SHBrowseForFolder - start up dir Pin
YaronNir8-May-06 4:44
YaronNir8-May-06 4:44 
QuestionDLL-problem: memory leaks Pin
hoelrich8-May-06 4:22
hoelrich8-May-06 4:22 
AnswerRe: DLL-problem: memory leaks Pin
Laxman Auti8-May-06 4:33
Laxman Auti8-May-06 4:33 
GeneralRe: DLL-problem: memory leaks Pin
hoelrich8-May-06 6:19
hoelrich8-May-06 6:19 
QuestionUsing unmanaged MFC classes from C# Pin
Kurt _B8-May-06 4:03
Kurt _B8-May-06 4:03 
AnswerRe: Using unmanaged MFC classes from C# Pin
Chris Losinger8-May-06 4:08
professionalChris Losinger8-May-06 4:08 
GeneralRe: Using unmanaged MFC classes from C# Pin
Kurt _B8-May-06 4:14
Kurt _B8-May-06 4:14 
QuestionInfo about Installing Delegate Pin
Girish6018-May-06 3:42
Girish6018-May-06 3:42 
QuestionC++ chat program, How to start? Pin
moloza8-May-06 3:27
moloza8-May-06 3:27 
AnswerRe: C++ chat program, How to start? Pin
David Crow8-May-06 3:35
David Crow8-May-06 3:35 
GeneralRe: C++ chat program, How to start? Pin
Eytukan8-May-06 3:42
Eytukan8-May-06 3:42 
GeneralRe: C++ chat program, How to start? Pin
led mike8-May-06 6:28
led mike8-May-06 6:28 
Questionconnecting two same-model webcams in win XP Pin
V_shr8-May-06 3:22
V_shr8-May-06 3:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.