www.pudn.com > showstr.rar > ExPort_Fuctions.cpp
// ExPort_Fuctions.cpp: implementation of the CExPort_Fuctions class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "printWnd.h"
#include "ExPort_Fuctions.h"
#include "PrintWnd1.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CExPort_Fuctions::CExPort_Fuctions()
{
}
CExPort_Fuctions::~CExPort_Fuctions()
{
}
BOOL ShowString (char * _str,HWND hWnd)
{
AFX_MANAGE_STATE(AfxGetStaticModuleState());
if(!strlen(_str))
return false;
static CPrintWnd wnd;
if(!wnd.GetSafeHwnd())
wnd.CreateWndEx(CWnd::FromHandle(hWnd));
wnd.ShowString(_str);
return true;
}