Click here to Skip to main content
15,916,215 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: KeyDown message Pin
Atlence20-Dec-03 4:22
Atlence20-Dec-03 4:22 
GeneralSound Application Pin
M.Joshi20-Dec-03 2:41
M.Joshi20-Dec-03 2:41 
GeneralRe: Sound Application Pin
Jörgen Sigvardsson20-Dec-03 6:40
Jörgen Sigvardsson20-Dec-03 6:40 
QuestionSaving a file that has been received form another PC? Pin
Semnanian20-Dec-03 2:37
Semnanian20-Dec-03 2:37 
AnswerRe: Saving a file that has been received form another PC? Pin
Monty220-Dec-03 2:42
Monty220-Dec-03 2:42 
AnswerRe: Saving a file that has been received form another PC? Pin
valikac20-Dec-03 6:01
valikac20-Dec-03 6:01 
AnswerRe: Saving a file that has been received form another PC? Pin
Bob Stanneveld21-Dec-03 21:14
Bob Stanneveld21-Dec-03 21:14 
GeneralBad font used for buttons using the theme API for XP Pin
Jörgen Sigvardsson20-Dec-03 1:51
Jörgen Sigvardsson20-Dec-03 1:51 
This is really disturbing as I only have this problem with some themes (including the standard themes).

When I draw text using DrawThemeText and theme data for "Button, then the font is mismatched sometimes. Using the theme "Watercolor", the font is just like it should be. But with standard XP themes for instance, the font is System. You know.. the butt ugly font. Hmmm | :|

What am I missing here!?

I am using the WTL theme classes, and I did try using the raw API. In both cases I get the same result. If I do this:
hTheme = OpenThemeData(m_hWnd, L"Button");
DrawThemeText(hTheme, hdc, BP_PUSHBUTTON, BPS_NORMAL, CT2CW(szText), -1,
DT_VCENTER | DT_CENTER | DT_SINGLELINE | DT_WORD_ELLIPSIS, 0, &rcClient);
I end up with an ugly text drawn with the System font.

Help. Please?

--
"We shall crush you down to the point,
where there is no coming back,
things will happen to you from
which you could not recover if you
lived a thousand years, a thousand years."

GeneralRe: Bad font used for buttons using the theme API for XP Pin
Jörgen Sigvardsson20-Dec-03 6:37
Jörgen Sigvardsson20-Dec-03 6:37 
GeneralRe: Bad font used for buttons using the theme API for XP Pin
Michael Dunn20-Dec-03 7:48
sitebuilderMichael Dunn20-Dec-03 7:48 
Questionhow to get the total no of pages printed in one printing job in vc++/win32 application Pin
skpanda20-Dec-03 1:24
skpanda20-Dec-03 1:24 
AnswerRe: how to get the total no of pages printed in one printing job in vc++/win32 application Pin
Monty220-Dec-03 1:35
Monty220-Dec-03 1:35 
AnswerRe: how to get the total no of pages printed in one printing job in vc++/win32 application Pin
Duncan Edwards Jones20-Dec-03 11:01
professionalDuncan Edwards Jones20-Dec-03 11:01 
Questionhow to get the full path of the printed file in vc++ Pin
skpanda20-Dec-03 1:14
skpanda20-Dec-03 1:14 
AnswerRe: how to get the full path of the printed file in vc++ Pin
Monty220-Dec-03 1:36
Monty220-Dec-03 1:36 
Questionhow to register a dll ?? Pin
skpanda20-Dec-03 1:10
skpanda20-Dec-03 1:10 
AnswerRe: how to register a dll ?? Pin
Monty220-Dec-03 1:26
Monty220-Dec-03 1:26 
GeneralRe: how to register a dll ?? Pin
skpanda20-Dec-03 1:31
skpanda20-Dec-03 1:31 
GeneralRe: how to register a dll ?? Pin
Sarvesvara (BVKS) Dasa20-Dec-03 2:37
Sarvesvara (BVKS) Dasa20-Dec-03 2:37 
GeneralMFC app Pin
nukenuts20-Dec-03 0:45
nukenuts20-Dec-03 0:45 
GeneralRe: MFC app Pin
Monty220-Dec-03 0:54
Monty220-Dec-03 0:54 
GeneralRe: MFC app Pin
nukenuts20-Dec-03 10:47
nukenuts20-Dec-03 10:47 
GeneralRe: MFC app Pin
Monty220-Dec-03 19:36
Monty220-Dec-03 19:36 
GeneralRe: MFC app Pin
nukenuts20-Dec-03 22:58
nukenuts20-Dec-03 22:58 
GeneralRe: MFC app Pin
Roger Allen22-Dec-03 1:15
Roger Allen22-Dec-03 1:15 

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.