如何打印列表框的内容 [英] How do I print the content of my listbox

查看:110
本文介绍了如何打印列表框的内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我对视觉C很新,在我早期做了一些C / turbo C OOP。在Visual C ++ 6中使用MFC APP向导创建了一个程序,所有功能似乎都有效,除了我不知道如何将程序输出从列表框打印到打印机。很抱歉,如果这个论坛的查询太简单了。



MFC创建了以下代码,但我不知道大括号之间有什么代码。 />






Void CTensionAnalyserDLg :: OnPrintbut()

{



// TODO:在这里添加您的控制修改处理程序代码



}



不幸的是我不能在这里附上程序的对话框,但很高兴将它转发给任何可以提供帮助的人。



干杯,
Rob



我尝试过:



看了几个样本但无济于事

解决方案

打印就像绘图一样简单。阅读 Microsoft打印文档以获取概述。



在这里您可以找到底漆打印示例以及关于使用MFC轻松打印的更复杂的示例。

Hi,

I am fairly new to visual C, have done some C / turbo C OOP in my early days. Have created a program using MFC APP Wizard in visual C++ 6, all functions seem to work, except I don't know how to print the program output from a list-box to a printer. Sorry if this is too simple a query for this forum.

MFC has created the following code, but I have no idea what code goes between the curly brackets.



Void CTensionAnalyserDLg::OnPrintbut()
{

//TODO: Add your control modification handler code here

}

Unfortunately I can't attach the program's dialogue box here, but happy to forward it to anyone that could help.

Cheers,
Rob

What I have tried:

Looked at a few samples but to no avail

解决方案

Printing is as easy as drawing. Read the Microsoft print documentation for an overview.

Here you find a primer print example and this more sophisticated example about Printing with MFC Made Easy.


这篇关于如何打印列表框的内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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