问题描述
我正在Windows控制台模式下开发Visual C ++应用程序,我想将控制台文本设置为Bold和Italic形式。我使用SetConsoleTextAttribute函数和系统(COLOR XX)函数更改了控制台文本颜色和背景颜色。但是没有Win32 API函数可以将文本模式更改为BOLD,Italic或Stroke。请提及在Windows环境中的C / C ++编程边界内实现它的任何功能或机制?谢谢。
我尝试了什么:
我在挣扎使用SetConsoleTextAttribute WinAPI函数
Hi,
I am developing an Visual C++ application in windows console mode, I want to set my console text in to Bold and Italic form. I changed console text color and background color using SetConsoleTextAttribute function and system("COLOR XX") functions. But there is no Win32 API function to changed text mode in to BOLD, Italic or Stroke. Please mention any function or mechanism to achieve it within C/C++ programming boundary in Windows enviornment? Thank you.
What I have tried:
I was struggling with SetConsoleTextAttribute WinAPI function
推荐答案
这篇关于如何在Windows中以粗体和斜体设置C / C ++控制台文本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!