Click here to Skip to main content
15,888,454 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to add horizontal scrollbar to dropdown list Pin
Chris Vischer29-Jun-00 0:09
Chris Vischer29-Jun-00 0:09 
AnswerRe: How to add horizontal scrollbar to dropdown list Pin
Paolo Messina30-Jun-00 13:43
professionalPaolo Messina30-Jun-00 13:43 
GeneralSetup Q: How to install a DSN Pin
Matthias29-Jun-00 0:08
Matthias29-Jun-00 0:08 
GeneralRe: Setup Q: How to install a DSN Pin
Yaron29-Jun-00 3:45
Yaron29-Jun-00 3:45 
GeneralCFileDialog Pin
Tenacious28-Jun-00 22:47
Tenacious28-Jun-00 22:47 
GeneralRe: CFileDialog Pin
cmulcay28-Jun-00 23:18
cmulcay28-Jun-00 23:18 
Questionhow to set the font used for button/label Pin
mactan28-Jun-00 22:28
sussmactan28-Jun-00 22:28 
AnswerRe: how to set the font used for button/label Pin
Mike Dunn29-Jun-00 0:38
Mike Dunn29-Jun-00 0:38 
Here's an example that makes the font bold. This is untested, and it's 3:25 AM, so please test before checking the code in. Wink | ;)
HFONT hCurrFont, hNewFont;
LOGFONT lf;

// 1. Get the button's current font.
hCurrFont = (HFONT) SendDlgItemMessage ( hMyDlg, IDC_MY_BUTTON, WM_GETFONT, 0, 0 );
GetObject ( hCurrFont, sizeof(LOGFONT), &lf );

// 2. Change the font however you want by tweaking the LOGFONT members.
lf.lfWeight = FW_BOLD;

// 3. Create a new font.  Note that in "real" code, you should save this HFONT somewhere and delete the font when the dialog closes.
hNewFont = CreateFontIndirect ( &lf );

// 4. Make the button use this new font.
SendDlgItemMessage ( hMyDlg, IDC_MY_BUTTON, WM_SETFONT, (WPARAM) hNewFont, TRUE );

Questionhow to set the font used for button/label Pin
mactan28-Jun-00 22:28
sussmactan28-Jun-00 22:28 
GeneralWindows Firewalls Pin
FunkBoy28-Jun-00 21:20
sussFunkBoy28-Jun-00 21:20 
QuestionHow to read cpu temperature? Pin
Farzad B.28-Jun-00 20:41
sussFarzad B.28-Jun-00 20:41 
GeneralWhen a DLL unload from physical memory?? Pin
Ryan Park2-Jul-00 23:56
Ryan Park2-Jul-00 23:56 
GeneralRe: When a DLL unload from physical memory?? Pin
Pere Mitjavila15-Jul-00 0:50
Pere Mitjavila15-Jul-00 0:50 
General_AfxGetComCtlVersion Pin
28-Jun-00 9:19
suss28-Jun-00 9:19 
GeneralRe: _AfxGetComCtlVersion Pin
Mike Dunn29-Jun-00 0:27
Mike Dunn29-Jun-00 0:27 
GeneralInterface Pin
WinJr28-Jun-00 7:00
sussWinJr28-Jun-00 7:00 
GeneralRe: Interface Pin
Mike Dunn28-Jun-00 8:33
Mike Dunn28-Jun-00 8:33 
QuestionHow to get the domain name Pin
Member 135628-Jun-00 6:15
Member 135628-Jun-00 6:15 
AnswerRe: How to get the domain name Pin
Sam Hobbs29-Jun-00 18:30
Sam Hobbs29-Jun-00 18:30 
GeneralAdding an menuitem runtime Pin
KNEI28-Jun-00 6:13
sussKNEI28-Jun-00 6:13 
QuestionHow to view the files from a zip files Pin
Member 316528-Jun-00 4:50
Member 316528-Jun-00 4:50 
AnswerRe: How to view the files from a zip files Pin
Blake Miller28-Jun-00 7:09
Blake Miller28-Jun-00 7:09 
GeneralLNK2001 in MFC Extension DLL's Pin
Hans-Peter Warter28-Jun-00 2:43
Hans-Peter Warter28-Jun-00 2:43 
GeneralRe: LNK2001 in MFC Extension DLL's Pin
GBO28-Jun-00 4:47
GBO28-Jun-00 4:47 
GeneralCWnd and scrolling... Pin
Member 91827-Jun-00 15:49
Member 91827-Jun-00 15:49 

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.