Click here to Skip to main content
15,909,242 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Strange Code in MFC Source Pin
Mike Nordell17-Apr-02 13:55
Mike Nordell17-Apr-02 13:55 
GeneralRe: Strange Code in MFC Source Pin
Tim Smith18-Apr-02 2:09
Tim Smith18-Apr-02 2:09 
GeneralMultithreading :: MFC Pin
valikac17-Apr-02 11:23
valikac17-Apr-02 11:23 
GeneralRe: Multithreading :: MFC Pin
Joaquín M López Muñoz17-Apr-02 11:51
Joaquín M López Muñoz17-Apr-02 11:51 
GeneralRe: Multithreading :: MFC Pin
valikac17-Apr-02 13:33
valikac17-Apr-02 13:33 
GeneralRe: Multithreading :: MFC Pin
Joaquín M López Muñoz17-Apr-02 19:52
Joaquín M López Muñoz17-Apr-02 19:52 
GeneralRe: Multithreading :: MFC Pin
valikac17-Apr-02 20:42
valikac17-Apr-02 20:42 
GeneralChanging Font sizes Pin
17-Apr-02 11:19
suss17-Apr-02 11:19 
Hi there,

I have a pure win32 dialog with textboxes and static objects on it. The code is all done without MFC.

Now, the fonts seem rather huge, so I tried to modify them. I called
createfont at the beginning of my Dialog proc with various numbers
for the height variable and use various item for parameter 5. I do
as shown below:

SelectObject(hdc, CreateFont(12,2, 0, 0, FW_THIN, 0,0,0,
DEFAULT_CHARSET, OUT_CHARACTER_PRECIS, CLIP_CHARACTER_PRECIS, DEFAULT_QUALITY,DEFAULT_PITCH | FF_DONTCARE, _T("TimesNewRoman")));

and at the end of the proc, I delete it as following:

DeleteObject(SelectObject(hdc, GetStockObject(SYSTEM_FONT)));

But nothing changes. What am I doing wrong?

GeneralRe: Changing Font sizes Pin
Shog917-Apr-02 11:27
sitebuilderShog917-Apr-02 11:27 
GeneralRe: Changing Font sizes Pin
17-Apr-02 13:15
suss17-Apr-02 13:15 
GeneralVisual Studio .Net - files in workspace aren't alphabetical Pin
Brit17-Apr-02 10:14
Brit17-Apr-02 10:14 
GeneralRe: Visual Studio .Net - files in workspace aren't alphabetical Pin
Mike Nordell17-Apr-02 10:43
Mike Nordell17-Apr-02 10:43 
GeneralRe: Visual Studio .Net - files in workspace aren't alphabetical Pin
Anders Molin17-Apr-02 11:59
professionalAnders Molin17-Apr-02 11:59 
GeneralRe: Visual Studio .Net - files in workspace aren't alphabetical Pin
Mike Nordell17-Apr-02 12:22
Mike Nordell17-Apr-02 12:22 
QuestionVirtual desktops? Pin
generic_user_id17-Apr-02 9:35
generic_user_id17-Apr-02 9:35 
AnswerRe: Virtual desktops? Pin
Mike Nordell17-Apr-02 9:54
Mike Nordell17-Apr-02 9:54 
GeneralRe: Virtual desktops? Pin
generic_user_id17-Apr-02 11:10
generic_user_id17-Apr-02 11:10 
GeneralRe: Virtual desktops? Pin
Mike Nordell17-Apr-02 11:59
Mike Nordell17-Apr-02 11:59 
GeneralRe: Virtual desktops? Pin
generic_user_id18-Apr-02 4:02
generic_user_id18-Apr-02 4:02 
GeneralA CPropertySheet, a CPropertyPage and a thread. Oh dear. Pin
17-Apr-02 9:22
suss17-Apr-02 9:22 
GeneralRe: A CPropertySheet, a CPropertyPage and a thread. Oh dear. Pin
Joaquín M López Muñoz17-Apr-02 9:57
Joaquín M López Muñoz17-Apr-02 9:57 
QuestionCombo Box Uneditable? Pin
17-Apr-02 9:06
suss17-Apr-02 9:06 
AnswerRe: Combo Box Uneditable? Pin
Shog917-Apr-02 9:10
sitebuilderShog917-Apr-02 9:10 
GeneralRe: Combo Box Uneditable? Pin
17-Apr-02 9:14
suss17-Apr-02 9:14 
GeneralCArchive, Serialization and Versions Pin
Ted Christiansen17-Apr-02 8:44
Ted Christiansen17-Apr-02 8:44 

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.