コメント |
[[印刷終了]]
戻り値 : true 成功, false 失敗
@DIV
BOOL EndPrint( void );
@END
@DIV
// *********************************************************
// 印刷終了
// 戻り値 : true 成功, false 失敗
// *********************************************************
BOOL LboxPrint::EndPrint( void )
{
if ( this->hDC == NULL ) {
return false;
}
EndPage( this->hDC );
EndDoc( this->hDC );
this->HandleClear();
return true;
}
@END
@DIV
// *********************************************************
// 取得ハンドルクリア
// 戻り値 : 無し
// *********************************************************
void LboxPrint::HandleClear( void )
{
if ( this->hDevMode != NULL ) {
GlobalFree( this->hDevMode );
this->hDevMode = NULL;
}
if ( this->hDevNames != NULL ) {
GlobalFree( this->hDevNames );
this->hDevNames = NULL;
}
if ( this->hPageFont != NULL ) {
SelectObject( this->hDC, this->hPageFontOrg );
DeleteObject( this->hPageFont );
this->hPageFont = NULL;
this->hPageFontOrg = NULL;
}
if ( this->hDC != NULL ) {
DeleteDC( this->hDC );
this->hDC = NULL;
}
}
@END
|