Click here to Skip to main content
16,014,634 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionNewbie - odbc/mysql Pin
antonaras_marcou15-Mar-06 1:14
antonaras_marcou15-Mar-06 1:14 
AnswerRe: Newbie - odbc/mysql Pin
David Crow15-Mar-06 2:44
David Crow15-Mar-06 2:44 
AnswerRe: Newbie - odbc/mysql Pin
Dennis Gourjii15-Mar-06 3:26
Dennis Gourjii15-Mar-06 3:26 
QuestionLSA API's Pin
Putta_V15-Mar-06 0:19
Putta_V15-Mar-06 0:19 
AnswerRe: LSA API's Pin
Hamid_RT15-Mar-06 0:39
Hamid_RT15-Mar-06 0:39 
AnswerRe: LSA API's Pin
Hamid_RT18-Mar-06 2:41
Hamid_RT18-Mar-06 2:41 
Questionfax with oulook Pin
martina7615-Mar-06 0:06
martina7615-Mar-06 0:06 
QuestionHow do I know which font is used in dialog box Pin
IlanTal14-Mar-06 23:44
IlanTal14-Mar-06 23:44 
I would expect that if I use:
CClientDC dc(this);
inside the code for a dialog box it would pick up the font used for that dialog box. In fact, it doesn't. I had to add:

currFont.CreatePointFont(80, "MS Sans Serif", &dc);
oldFont = dc.SelectObject(&currFont);

and then it measured the text extent correctly. (I got the font name and size from the dialog template.)
Clearly, it won't change unless I change it in the project, but I am curious to know how to pick up the information "automatically".

Any suggestions? Thanks,
Ilan



AnswerRe: How do I know which font is used in dialog box Pin
grigsoft14-Mar-06 23:50
grigsoft14-Mar-06 23:50 
GeneralRe: How do I know which font is used in dialog box Pin
IlanTal15-Mar-06 0:25
IlanTal15-Mar-06 0:25 
GeneralRe: How do I know which font is used in dialog box Pin
grigsoft15-Mar-06 0:44
grigsoft15-Mar-06 0:44 
GeneralRe: How do I know which font is used in dialog box Pin
cmk15-Mar-06 20:42
cmk15-Mar-06 20:42 
QuestionException occurs when dynamically creating control Pin
Naveen14-Mar-06 23:43
Naveen14-Mar-06 23:43 
AnswerRe: Exception occurs when dynamically creating control Pin
Nibu babu thomas14-Mar-06 23:53
Nibu babu thomas14-Mar-06 23:53 
GeneralRe: Exception occurs when dynamically creating control Pin
Naveen15-Mar-06 0:07
Naveen15-Mar-06 0:07 
AnswerRe: Exception occurs when dynamically creating control Pin
Nibu babu thomas15-Mar-06 0:48
Nibu babu thomas15-Mar-06 0:48 
GeneralRe: Exception occurs when dynamically creating control Pin
Naveen15-Mar-06 1:05
Naveen15-Mar-06 1:05 
GeneralRe: Exception occurs when dynamically creating control Pin
Nibu babu thomas15-Mar-06 1:33
Nibu babu thomas15-Mar-06 1:33 
GeneralRe: Exception occurs when dynamically creating control Pin
Naveen15-Mar-06 16:03
Naveen15-Mar-06 16:03 
AnswerRe: Exception occurs when dynamically creating control Pin
Trollslayer15-Mar-06 1:38
mentorTrollslayer15-Mar-06 1:38 
GeneralRe: Exception occurs when dynamically creating control Pin
Naveen15-Mar-06 16:08
Naveen15-Mar-06 16:08 
QuestionBuild Error: VS 7 Pin
luhfluh14-Mar-06 22:32
luhfluh14-Mar-06 22:32 
AnswerRe: Build Error: VS 7 Pin
Naveen14-Mar-06 22:44
Naveen14-Mar-06 22:44 
AnswerRe: Build Error: VS 7 Pin
Nibu babu thomas14-Mar-06 22:44
Nibu babu thomas14-Mar-06 22:44 
AnswerRe: Build Error: VS 7 Pin
Nibu babu thomas15-Mar-06 1:11
Nibu babu thomas15-Mar-06 1:11 

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.