Click here to Skip to main content
16,005,037 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to get the user group in win NT/2000/XP Pin
David Crow29-Dec-03 3:00
David Crow29-Dec-03 3:00 
GeneralRe: How to get the user group in win NT/2000/XP Pin
C-lviu29-Dec-03 4:11
C-lviu29-Dec-03 4:11 
GeneralRe: How to get the user group in win NT/2000/XP Pin
David Crow29-Dec-03 5:17
David Crow29-Dec-03 5:17 
GeneralRe: How to get the user group in win NT/2000/XP Pin
C-lviu29-Dec-03 5:40
C-lviu29-Dec-03 5:40 
GeneralRe: How to get the user group in win NT/2000/XP Pin
David Crow29-Dec-03 5:54
David Crow29-Dec-03 5:54 
AnswerRe: How to get the user group in win NT/2000/XP Pin
Brian Shifrin29-Dec-03 7:26
Brian Shifrin29-Dec-03 7:26 
QuestionHow could print a line without ending the page? Pin
shooterlily29-Dec-03 2:32
shooterlily29-Dec-03 2:32 
AnswerRe: How could print a line without ending the page? Pin
Roger Allen29-Dec-03 4:48
Roger Allen29-Dec-03 4:48 
When printing, anything rendered to the printer HDC between calls to the StartPage()/EndPage() calls will be printed for that page (as long as its on the actual printable area).

So you would be doing something like:
StartDoc()
while (pages_to_print)
{
	StartPage()
	while (output_for_this_page)
	{
		print_a_line
	}
	EndPage()
}
EndDoc()

If you need to print like a terminal, you need to keep track of the current Y position on the page. After every line printed, you increment y value by the height of the line. When y > pageHeight, you end the current page and start a new one.
StartDoc()
while (pages_to_print)
{
	StartPage()
	y = 0
	while (output_for_this_page)
	{
		print_a_line at 0,y
		y += lineHeight
	}
	EndPage()
}
EndDoc()



Roger Allen - Sonork 100.10016
If your dead and reading this, then you have no life!
GeneralRe: How could print a line without ending the page? Pin
shooterlily29-Dec-03 18:37
shooterlily29-Dec-03 18:37 
AnswerRe: How could print a line without ending the page? Pin
Brian Shifrin29-Dec-03 7:56
Brian Shifrin29-Dec-03 7:56 
GeneralRestore netwerk connection Pin
JensB29-Dec-03 1:49
JensB29-Dec-03 1:49 
GeneralSecurity code for a piece of code Pin
Anonymous29-Dec-03 1:18
Anonymous29-Dec-03 1:18 
GeneralRe: Security code for a piece of code Pin
Monty229-Dec-03 1:52
Monty229-Dec-03 1:52 
GeneralFailing to register custom ActiceX control Pin
Raghunandan S28-Dec-03 23:28
Raghunandan S28-Dec-03 23:28 
GeneralRe: Failing to register custom ActiceX control Pin
Monty229-Dec-03 0:07
Monty229-Dec-03 0:07 
GeneralRe: Failing to register custom ActiceX control Pin
Prakash Nadar29-Dec-03 0:26
Prakash Nadar29-Dec-03 0:26 
GeneralRe: Failing to register custom ActiceX control Pin
Nitron29-Dec-03 11:06
Nitron29-Dec-03 11:06 
GeneralRe: Failing to register custom ActiceX control Pin
Raghunandan S29-Dec-03 16:41
Raghunandan S29-Dec-03 16:41 
GeneralUsing CDatabase * in dll Pin
gabriel dina28-Dec-03 23:13
gabriel dina28-Dec-03 23:13 
GeneralRe: Using CDatabase * in dll Pin
David Crow29-Dec-03 3:02
David Crow29-Dec-03 3:02 
GeneralRe: Using CDatabase * in dll Pin
gabriel dina29-Dec-03 3:08
gabriel dina29-Dec-03 3:08 
GeneralRe: Using CDatabase * in dll Pin
gabriel dina29-Dec-03 3:34
gabriel dina29-Dec-03 3:34 
GeneralRe: Using CDatabase * in dll Pin
gabriel dina29-Dec-03 4:05
gabriel dina29-Dec-03 4:05 
Generalmsout headers Pin
BaldwinMartin28-Dec-03 23:05
BaldwinMartin28-Dec-03 23:05 
GeneralOnDraw with CHtmlView Pin
Anonymous28-Dec-03 21:56
Anonymous28-Dec-03 21:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.