class LboxPrint
{
public:
BOOL EnumPrinter( LboxListview *Lview );
BOOL ColPrintBox(
int nCol, int nRow, int nCol2, int nRow2, UINT nFormat, LboxString *LData );
BOOL ColPrintBox(
int nCol, int nRow, int nCol2, int nRow2, UINT nFormat, LPTSTR lpData );
BOOL ColPaintBox(
int nCol, int nRow, int nCol2, int nRow2, int r, int g, int b );
BOOL ColPaintBox( int nCol, int nRow, int nCol2, int r, int g, int b );
BOOL ColBox( int nCol, int nRow, int nCol2, int nRow2 );
BOOL ColBox( int nCol, int nRow, int nCol2 );
BOOL ColFontPrint(
LboxString *LFont, int nPoint, int nCol, int nRow, LboxString *LData );
BOOL ColFontPrint(
LPTSTR lpFont, int nPoint, int nCol, int nRow, LPTSTR lpData );
BOOL ChangePageFont( LboxString *LFont, int nPoint );
BOOL ChangePageFont( LPTSTR lpFont, int nPoint );
BOOL ColPrint( int nCol, int nRow, LboxString *LData );
BOOL ColPrint( int nCol, int nRow, LPTSTR lpData );
BOOL NextPage( void );
BOOL EndPrint( void );
void HandleClear( void );
BOOL StartPrint( HWND hOwner, LboxString *LDocName );
BOOL StartPrint( HWND hOwner, LPTSTR lpDocName, BOOL bDefault );
LboxPrint();
virtual ~LboxPrint();
LONG nOrgPageWidth;
LONG nOrgPageLength;
LONG nPageWidth;
LONG nPageLength;
LONG nPageOffsetWidth;
LONG nPageOffset;
LONG nCharWidth;
LONG nLinePitch;
LONG nLines;
HANDLE hDevMode;
HANDLE hDevNames;
HDC hDC;
HFONT hPageFont;
HFONT hPageFontOld;
HFONT hPageFontOrg;
LboxString ErrMessage;
};
BOOL ColFontPrint( LboxString *LFont, int nPoint, int nCol, int nRow, LboxString *LData );
BOOL ColFontPrint( LPTSTR lpFont, int nPoint, int nCol, int nRow, LPTSTR lpData );
API 関数の DrawText のフォーマット指定を使用して指定領域に文字列を印刷する
戻り値 : true 成功, false 失敗
拡張子:
BOOL ColPrintBox( int nCol, int nRow, int nCol2, int nRow2, UINT nFormat, LboxString *LData );
BOOL ColPrintBox( int nCol, int nRow, int nCol2, int nRow2, UINT nFormat, LPTSTR lpData );
BOOL ColPaintBox( int nCol, int nRow, int nCol2, int nRow2, int r, int g, int b );
BOOL ColPaintBox( int nCol, int nRow, int nCol2, int r, int g, int b );