Click here to Skip to main content
16,006,013 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Creating new object from type_info (typeid) Pin
Bram van Kampen18-Jul-09 15:35
Bram van Kampen18-Jul-09 15:35 
QuestionHow to save a bitmap in Visual c++ (mfc)? Pin
Sakthi.Gs :-)18-Jul-09 0:43
Sakthi.Gs :-)18-Jul-09 0:43 
AnswerRe: How to save a bitmap in Visual c++ (mfc)? Pin
Iain Clarke, Warrior Programmer18-Jul-09 1:05
Iain Clarke, Warrior Programmer18-Jul-09 1:05 
AnswerRe: How to save a bitmap in Visual c++ (mfc)? Pin
ravidborse20-Jul-09 3:17
ravidborse20-Jul-09 3:17 
QuestionCRECT height Pin
kumar sanghvi18-Jul-09 0:03
kumar sanghvi18-Jul-09 0:03 
AnswerRe: CRECT height Pin
Naveen18-Jul-09 0:11
Naveen18-Jul-09 0:11 
GeneralRe: CRECT height Pin
kumar sanghvi18-Jul-09 0:40
kumar sanghvi18-Jul-09 0:40 
GeneralRe: CRECT height Pin
Iain Clarke, Warrior Programmer18-Jul-09 1:02
Iain Clarke, Warrior Programmer18-Jul-09 1:02 
Try reading the documentation for DrawText / DT_CALCRECT a bit more carefully.

With this flag, you are asking the function to calculate the rectangle it would have used, not to draw the text.

If this was not the case, then you could not do the calculation without leaving graffiti all over the place.

You are allowed to call this function twice, once to calculate your rectangle, and once to actually draw. It is not rationed. Quite a few windows functions work in this way - once to get how bit a chunk of memory you need, and then to use that memory, and so on.

Good luck,

Iain.

I have now moved to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), or need cotract work done, give me a job! http://cv.imcsoft.co.uk/[^]

Questiondoc file processing Pin
alashara17-Jul-09 23:47
alashara17-Jul-09 23:47 
AnswerRe: doc file processing Pin
Iain Clarke, Warrior Programmer18-Jul-09 1:10
Iain Clarke, Warrior Programmer18-Jul-09 1:10 
GeneralRe: doc file processing Pin
alashara18-Jul-09 1:46
alashara18-Jul-09 1:46 
GeneralRe: doc file processing Pin
Bram van Kampen18-Jul-09 15:46
Bram van Kampen18-Jul-09 15:46 
AnswerRe: doc file processing Pin
Alain Rist18-Jul-09 22:50
Alain Rist18-Jul-09 22:50 
AnswerRe: doc file processing Pin
Randor 19-Jul-09 13:45
professional Randor 19-Jul-09 13:45 
QuestionConversion from char * to LPWSTR Pin
Pardhu_M17-Jul-09 22:27
Pardhu_M17-Jul-09 22:27 
AnswerRe: Conversion from char * to LPWSTR Pin
Naveen17-Jul-09 23:05
Naveen17-Jul-09 23:05 
AnswerRe: Conversion from char * to LPWSTR Pin
ThatsAlok18-Jul-09 7:43
ThatsAlok18-Jul-09 7:43 
Questionsearch a list control Pin
rahuljin17-Jul-09 20:08
rahuljin17-Jul-09 20:08 
AnswerRe: search a list control Pin
carter200017-Jul-09 22:29
carter200017-Jul-09 22:29 
GeneralRe: search a list control Pin
rahuljin17-Jul-09 23:08
rahuljin17-Jul-09 23:08 
GeneralRe: search a list control Pin
carter200017-Jul-09 23:22
carter200017-Jul-09 23:22 
GeneralRe: search a list control Pin
rahuljin17-Jul-09 23:45
rahuljin17-Jul-09 23:45 
GeneralRe: search a list control Pin
carter200017-Jul-09 23:58
carter200017-Jul-09 23:58 
GeneralRe: search a list control Pin
rahuljin18-Jul-09 2:20
rahuljin18-Jul-09 2:20 
GeneralRe: search a list control Pin
carter200018-Jul-09 3:09
carter200018-Jul-09 3:09 

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.