I need font help!
I have asked this before, many many a time. If there is anyone out there who can kindly help me on either making a font engine to let me display numbers, or a way to either use GDI or some other function, please do not hold back. I am at a standstill for the moment, and Ineed this help. Thanks in advance! I need to learn how to display int variables.....hope someone can help!
HFONT fnt;
fnt = CreateFont(40,0,0,0,0,0,0,0,0,0,0,0,0, "Arial");
HDC dc;
backsurf->GetDC(&dc);
SetBkMode(dc, TRANSPARENT);
SelectObject(dc, fnt);
SetTextColor(dc, RGB(255,255,255));
char buffer[200];
int u=10;
int m= 15;
int s= 666;
int length= sprintf( buffer , "%dh:%dm:%ds", u,m,s );
TextOut(dc, 400, 150+l*40, buffer, length);
backsurf->ReleaseDC(dc);
///////////////////////////////////////
Hope this helps
fnt = CreateFont(40,0,0,0,0,0,0,0,0,0,0,0,0, "Arial");
HDC dc;
backsurf->GetDC(&dc);
SetBkMode(dc, TRANSPARENT);
SelectObject(dc, fnt);
SetTextColor(dc, RGB(255,255,255));
char buffer[200];
int u=10;
int m= 15;
int s= 666;
int length= sprintf( buffer , "%dh:%dm:%ds", u,m,s );
TextOut(dc, 400, 150+l*40, buffer, length);
backsurf->ReleaseDC(dc);
///////////////////////////////////////
Hope this helps
April 14, 2000 08:02 AM
HFONT fnt;
fnt = CreateFont(40,0,0,0,0,0,0,0,0,0,0,0,0, "Arial");
HDC dc;
backsurf->GetDC(&dc);
SetBkMode(dc, TRANSPARENT);
SelectObject(dc, fnt);
SetTextColor(dc, RGB(255,255,255));
char buffer[200];
int u=10;
int m= 15;
int s= 666;
int length= sprintf( buffer , "%dh:%dm:%ds", u,m,s );
TextOut(dc, 400, 150+l*40, buffer, length);
backsurf->ReleaseDC(dc);
///////////////////////////////////////
Hope this helps
fnt = CreateFont(40,0,0,0,0,0,0,0,0,0,0,0,0, "Arial");
HDC dc;
backsurf->GetDC(&dc);
SetBkMode(dc, TRANSPARENT);
SelectObject(dc, fnt);
SetTextColor(dc, RGB(255,255,255));
char buffer[200];
int u=10;
int m= 15;
int s= 666;
int length= sprintf( buffer , "%dh:%dm:%ds", u,m,s );
TextOut(dc, 400, 150+l*40, buffer, length);
backsurf->ReleaseDC(dc);
///////////////////////////////////////
Hope this helps
HFONT fnt;
fnt = CreateFont(40,0,0,0,0,0,0,0,0,0,0,0,0, "Arial");
HDC dc;
backsurf->GetDC(&dc);
SetBkMode(dc, TRANSPARENT);
SelectObject(dc, fnt);
SetTextColor(dc, RGB(255,255,255));
char buffer[200];
int u=10;
int m= 15;
int s= 666;
int length= sprintf( buffer , "%dh:%dm:%ds", u,m,s );
TextOut(dc, 400, 150+l*40, buffer, length);
backsurf->ReleaseDC(dc);
///////////////////////////////////////
Hope this helps
fnt = CreateFont(40,0,0,0,0,0,0,0,0,0,0,0,0, "Arial");
HDC dc;
backsurf->GetDC(&dc);
SetBkMode(dc, TRANSPARENT);
SelectObject(dc, fnt);
SetTextColor(dc, RGB(255,255,255));
char buffer[200];
int u=10;
int m= 15;
int s= 666;
int length= sprintf( buffer , "%dh:%dm:%ds", u,m,s );
TextOut(dc, 400, 150+l*40, buffer, length);
backsurf->ReleaseDC(dc);
///////////////////////////////////////
Hope this helps
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement