i have 1 code that changes the menu bar font:
Code:
CHOOSEFONT cf={0};
LOGFONT *hf=new LOGFONT;
NONCLIENTMETRICS theMetrics;
cf=ShowSelectFont();//show us the dialog font for select the font
theMetrics.cbSize = sizeof(NONCLIENTMETRICS);
SystemParametersInfo(SPI_GETNONCLIENTMETRICS,sizeof(NONCLIENTMETRICS),
(PVOID) &theMetrics,0);
theMetrics.lfMenuFont=*cf.lpLogFont;
SystemParametersInfo(SPI_SETNONCLIENTMETRICS,sizeof(NONCLIENTMETRICS),
(PVOID) &theMetrics,0);
the menu bar font is changed, but not only on my application window. but on entire OS.
can anyone advice me more?
(in these situation, i don't want use OWNERDRAW)