印刷終了 戻り値 : true 成功, false 失敗 拡張子:txtvbswsfjsphpjavahtmlutf8sjis BOOL EndPrint( void ); 拡張子:txtvbswsfjsphpjavahtmlutf8sjis // ********************************************************* // 印刷終了 // 戻り値 : true 成功, false 失敗 // ********************************************************* BOOL LboxPrint::EndPrint( void ) { if ( this->hDC == NULL ) { return false; } EndPage( this->hDC ); EndDoc( this->hDC ); this->HandleClear(); return true; } 拡張子:txtvbswsfjsphpjavahtmlutf8sjis // ********************************************************* // 取得ハンドルクリア // 戻り値 : 無し // ********************************************************* 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; } }
BOOL EndPrint( void );
// ********************************************************* // 印刷終了 // 戻り値 : true 成功, false 失敗 // ********************************************************* BOOL LboxPrint::EndPrint( void ) { if ( this->hDC == NULL ) { return false; } EndPage( this->hDC ); EndDoc( this->hDC ); this->HandleClear(); return true; }
// ********************************************************* // 取得ハンドルクリア // 戻り値 : 無し // ********************************************************* 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; } }