q:
C++筆記 - MFC LOGFONT lfEscapement (vertical) not working,字型無法垂直顯示
sol:
改變字體:
curLogFont.lfEscapement = 900; // rotate 90 degree
strcpy(curLogFont.lfFaceName, "Arial");//set font as Arial fixed vertical problem,
CFont newFont;
newFont.CreateFontIndirect(&curLogFont);
CFont* pOldFont = pdc->SelectObject(&newFont);
試過以下都無效 |
https://social.msdn.microsoft.com/Forums/en-US/46930bf1-a886-4b05-9a8c-29063b2e9ece/how-to-rotate-a-text-or-number-90-in-windows-forms-c?forum=vcgeneral |
https://stackoverflow.com/questions/2397005/vertical-text-wont-be-bold-in-win32-gdi-c
|
CFont font; // Do something with the font just created... // Done with the font. Delete the font object.
https://social.msdn.microsoft.com/Forums/vstudio/en-US/2103e308-65c3-49d6-b3e3-9e35bc0fa019/logfont-lfescapement-vertical-not-working-on-windows-7?forum=vcgeneral |
https://stackoverflow.com/questions/7617199/mfc-dynamically-change-control-font-size |
試過:
留言列表