Click here to Skip to main content
15,909,440 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Hide and show dialogs Pin
«_Superman_»30-Jan-09 23:27
professional«_Superman_»30-Jan-09 23:27 
Questionconvert row elements from two dimensional array to one dimensional arrays Pin
emira6730-Jan-09 21:15
emira6730-Jan-09 21:15 
AnswerWrong forum Pin
CPallini30-Jan-09 22:36
mveCPallini30-Jan-09 22:36 
AnswerRe: convert row elements from two dimensional array to one dimensional arrays Pin
David Crow31-Jan-09 16:34
David Crow31-Jan-09 16:34 
QuestionProblem in printing- Please help me. Pin
Le@rner30-Jan-09 21:02
Le@rner30-Jan-09 21:02 
AnswerRe: Problem in printing- Please help me. Pin
Roger Allen4-Feb-09 14:15
Roger Allen4-Feb-09 14:15 
GeneralRe: Problem in printing- Please help me. Pin
Le@rner4-Feb-09 18:52
Le@rner4-Feb-09 18:52 
Questionproblem in [Insert Bitmap] , [Text utf-8 FONT] print Pin
mohammadmot30-Jan-09 19:27
mohammadmot30-Jan-09 19:27 
1. I try to print text with this macro _T("") 'UTF-8' with this code:

// use CQprint class codeproject;
CQPrint m_ocQPrint;
m_ocQPrint.Print(hFont,_T("محمد"),FORMAT_NORMAL);

but print bad-words - i found printing text out in CQPrint::Print function & with this code:

// now print the text...
m_DC.TextOut(lx,m_y,strSubText);
if (!(Format & FORMAT_NOLF)) {
m_y += Size.cy + CALCY(m_Abstand);
}

if can soulve the problem with 'DrawText' Api Function ???
what's the solution ?

/////////////////////////////////////////////////////////////
2. I want print bitmap file & have problem then wrote this function

// Print path of bitmap file.
int CQPrint::InsertBitmap (CString StringPath, int ResColor, int fmt, CSize *dest, int left)

this is same InsertBitmap orginal function but change :

this part: ------

// load the bitmap from the resource
if (bmp.LoadBitmap (resbit) == 0) {
m_LastErrNo = PRERR_LOADBITMAPFAILED;
return (-1);
}

to: ------

if (StringPath.IsEmpty())
StringPath = "chart.bmp";

HBITMAP m_hBmp = ( HBITMAP )LoadImage( 0, StringPath, IMAGE_BITMAP, 0, 0,
LR_LOADFROMFILE | LR_CREATEDIBSECTION);

bmp.Attach(m_hBmp);

it't work but picture print tall, then change size to:

CSize size[1];
size[0].cx = 1600;
size[0].cy = 77;

m_ocQPrint.InsertBitmap("chart.bmp", IDB_BITMAP__CHART, FORMAT_CENTER, size);

but now a little stretch, what's the solution ?
/////////////////////////////////////////////////////////////
thanks.
QuestionI HAVE SOME QUESTION..... Pin
arad.moradi30-Jan-09 10:04
arad.moradi30-Jan-09 10:04 
AnswerRe: I HAVE SOME QUESTION..... Pin
CPallini30-Jan-09 11:08
mveCPallini30-Jan-09 11:08 
GeneralRe: I HAVE SOME QUESTION..... Pin
Code-o-mat30-Jan-09 23:21
Code-o-mat30-Jan-09 23:21 
QuestionXML/XPATH which C++ libraries? Pin
ntnass30-Jan-09 8:08
ntnass30-Jan-09 8:08 
AnswerRe: XML/XPATH which C++ libraries? Pin
Nemanja Trifunovic30-Jan-09 8:47
Nemanja Trifunovic30-Jan-09 8:47 
GeneralRe: XML/XPATH which C++ libraries? Pin
ntnass30-Jan-09 11:39
ntnass30-Jan-09 11:39 
QuestionRe: XML/XPATH which C++ libraries? Pin
CPallini30-Jan-09 11:10
mveCPallini30-Jan-09 11:10 
AnswerRe: XML/XPATH which C++ libraries? Pin
ntnass30-Jan-09 11:36
ntnass30-Jan-09 11:36 
GeneralRe: XML/XPATH which C++ libraries? Pin
CPallini30-Jan-09 12:27
mveCPallini30-Jan-09 12:27 
GeneralRe: XML/XPATH which C++ libraries? Pin
ntnass30-Jan-09 23:41
ntnass30-Jan-09 23:41 
GeneralRe: XML/XPATH which C++ libraries? Pin
Stephen Hewitt31-Jan-09 5:00
Stephen Hewitt31-Jan-09 5:00 
AnswerRe: XML/XPATH which C++ libraries? Pin
Stuart Dootson31-Jan-09 0:01
professionalStuart Dootson31-Jan-09 0:01 
GeneralRe: XML/XPATH which C++ libraries? [modified] Pin
ntnass31-Jan-09 0:05
ntnass31-Jan-09 0:05 
AnswerRe: XML/XPATH which C++ libraries? Pin
ntnass31-Jan-09 1:01
ntnass31-Jan-09 1:01 
GeneralRe: XML/XPATH which C++ libraries? [modified] Pin
ntnass31-Jan-09 3:22
ntnass31-Jan-09 3:22 
QuestionSetting CEdit tabstop to false at runtime Pin
sabapathy_8030-Jan-09 5:54
sabapathy_8030-Jan-09 5:54 
QuestionRe: Setting CEdit tabstop to false at runtime Pin
David Crow30-Jan-09 6:33
David Crow30-Jan-09 6:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.