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

C / C++ / MFC

 
GeneralRe: Setting focus ... Pin
Nish Nishant4-Nov-01 8:40
sitebuilderNish Nishant4-Nov-01 8:40 
GeneralRe: Setting focus ... Pin
Hadi Rezaee4-Nov-01 8:53
Hadi Rezaee4-Nov-01 8:53 
QuestionSquare function? Pin
Chambers4-Nov-01 2:03
Chambers4-Nov-01 2:03 
AnswerRe: Square function? Pin
Nish Nishant4-Nov-01 6:47
sitebuilderNish Nishant4-Nov-01 6:47 
GeneralRe: Square function? Pin
Chambers5-Nov-01 2:40
Chambers5-Nov-01 2:40 
Generalopening a new window with large fonts Pin
Aviv Halperin4-Nov-01 1:40
Aviv Halperin4-Nov-01 1:40 
GeneralURGENT ODBC and Printing problems Pin
4-Nov-01 0:34
suss4-Nov-01 0:34 
GeneralWinXP Visual Styles (Themes) Pin
Rui Lopes3-Nov-01 23:31
Rui Lopes3-Nov-01 23:31 
Hello all!

I’m trying to use the new Windows XP Visual Styles API (the themes stuff) to draw a toolbar, but I’m stuck Dead | X| I’m trying to get the font to draw the buttons but I have no idea of what is a PropId or where to get it from..... and the help of online help helps nothing...... So my question is, what is a PropId and where are they defined?


My code snipped,



HWND m_hWnd;
HDC hDc;
...
HTHEME hThemeToolBar= ::OpenThemeData(m_hWnd, L"TOOLBAR");
LOGFONT log;

// the propid (?) that I’ve copied from the TmSchema.h file
int iPropId= TMT_CAPTIONFONT; // What value to place here? I’ve also tried to make a for with all possible values but only one (PropId 12) returned a valid hr result Frown | :( and that one with a strange LONGFONT result…..
HRESULT hr= ::GetThemeFont(hThemeToolBar, hDc, TP_BUTTON, TS_NORMAL, iPropId, &log);
...


The error returned has always 0x80070490 (Element not found.)... the PropId 12 is the only one that returned a hr of 0, but I have no idea of what is it.... since the font returned is very strange.... and also with the call to GetThemeFont the Theme handle (hThemeToolBar) becomes invalid!? Confused | :confused:


Anyone can help me with this?

Thanks in advance!
Rui Lopes
GeneralRe: WinXP Visual Styles (Themes) Pin
shiraztk7-Jun-07 3:55
shiraztk7-Jun-07 3:55 
GeneralRe: WinXP Visual Styles (Themes) Pin
Rui Lopes7-Jun-07 6:04
Rui Lopes7-Jun-07 6:04 
Generalsimple question about Menu Pin
Maer7273-Nov-01 19:40
Maer7273-Nov-01 19:40 
GeneralRe: simple question about Menu Pin
Michael Dunn3-Nov-01 19:57
sitebuilderMichael Dunn3-Nov-01 19:57 
GeneralRe: simple question about Menu Pin
Maer7274-Nov-01 17:59
Maer7274-Nov-01 17:59 
GeneralGuideline/Ruler Control Pin
v_krishnan3-Nov-01 19:16
v_krishnan3-Nov-01 19:16 
GeneralBitmap Editor for Image Lists Pin
3-Nov-01 17:01
suss3-Nov-01 17:01 
Generalincludes Pin
Stephen Caldwell3-Nov-01 16:41
Stephen Caldwell3-Nov-01 16:41 
GeneralRe: includes Pin
Christian Graus3-Nov-01 22:20
protectorChristian Graus3-Nov-01 22:20 
GeneralRe: includes Pin
Chambers4-Nov-01 2:44
Chambers4-Nov-01 2:44 
GeneralRe: includes Pin
Anders Molin4-Nov-01 3:38
professionalAnders Molin4-Nov-01 3:38 
GeneralRe: includes Pin
Chambers5-Nov-01 2:55
Chambers5-Nov-01 2:55 
GeneralRe: includes Pin
Michael P Butler4-Nov-01 4:47
Michael P Butler4-Nov-01 4:47 
GeneralRe: includes Pin
Stephen Caldwell4-Nov-01 5:39
Stephen Caldwell4-Nov-01 5:39 
GeneralRe: includes Pin
Chambers5-Nov-01 2:54
Chambers5-Nov-01 2:54 
GeneralLinux operation system ! Pin
Hadi Rezaee3-Nov-01 16:22
Hadi Rezaee3-Nov-01 16:22 
GeneralRe: Linux operation system ! Pin
Stephen Caldwell3-Nov-01 16:45
Stephen Caldwell3-Nov-01 16:45 

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.