Win32 RichEdit垂直对齐段落 [英] Win32 RichEdit align paragraph vertically

查看:234
本文介绍了Win32 RichEdit垂直对齐段落的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在RichEdit中垂直对齐段落(顶部,中心,底部).
我在Google上搜索了一下,但没有发现任何有关此问题的信息.有人知道解决方法吗?
实现这一点.我使用C ++ Builder 2010,是否有任何VCL或Windows API方式解决方案?

I need to align paragraph vertically (top, center, bottom) in a RichEdit.
I googled it and found nothing about this issue. Does anybody know a workaround
to achive this. I use C++ Builder 2010, are there any VCL or Windows API way solution?

推荐答案

这里没有为您编写很多代码,这是一个建议:如果您有一个字处理器程序,启动一个新的文件文档.检查控件,尤其是与您有关段落格式及其正当性问题有关的功能,例如左,右,中和完整以及该段落的缩进.然后是页面设置,您可以在其中设置顶部,底部,左侧和右侧的页边距以及页眉和页脚大小.调用CRichEditCntl m_textWnd时,会在下拉列表中找到C ++ Builder 2010中是否具有智能或其他完成函数,那么您应该找到各种可能适合您的预构建变量和函数.

CRichEditCntl m_textWnd;

m_textWnd.@@@@@@@ = ="******";例如,@@@@@@@@是某些函数或变量,将为您提供页面设置和段落对齐方式.
Without writing a lot of code here for you, here is a sugestion: IF you have a Word processor program, start a new file document. Examine the controls, especially the functions that relate to your question about Paragraph Formating and its Justification, such as left, right, center and full, and indentation of said paragraph. Then there is Page Setup, where you set the margins for top, bottom, left, and right, as well as a header and footer size. When you invoke the CRichEditCntl m_textWnd, you will find in the dropdown, if you have intellitype or some other completing function in the C++ Builder 2010, then you should find various prebuilt varibles and functions that may work for you.

CRichEditCntl m_textWnd;

m_textWnd.@@@@@@@ = "******"; as an example, where @@@@@@@ is some function or varible that will have the pagesetup and paragraph alignment made available to you.


这篇关于Win32 RichEdit垂直对齐段落的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆