Click here to Skip to main content
15,887,987 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: frequent memory allocation processing cost Pin
Luc Pattyn23-Aug-10 8:48
sitebuilderLuc Pattyn23-Aug-10 8:48 
AnswerRe: frequent memory allocation processing cost Pin
Paul Michalik23-Aug-10 22:51
Paul Michalik23-Aug-10 22:51 
GeneralRe: frequent memory allocation processing cost Pin
Blake Miller3-Sep-10 13:00
Blake Miller3-Sep-10 13:00 
QuestionDetecting I/O errors in Gdiplus Bitmap::Save [modified] Pin
HAJM23-Aug-10 5:02
HAJM23-Aug-10 5:02 
AnswerRe: Detecting I/O errors in Gdiplus Bitmap::Save Pin
Niklas L23-Aug-10 5:30
Niklas L23-Aug-10 5:30 
GeneralRe: Detecting I/O errors in Gdiplus Bitmap::Save Pin
HAJM24-Aug-10 8:44
HAJM24-Aug-10 8:44 
GeneralRe: Detecting I/O errors in Gdiplus Bitmap::Save Pin
Niklas L24-Aug-10 9:02
Niklas L24-Aug-10 9:02 
QuestionEdit control not drawing contents in Windows 7 when text exceeds a certain length Pin
Paul Vickery23-Aug-10 4:57
professionalPaul Vickery23-Aug-10 4:57 
Hi,

I have a very strange problem with edit controls in Windows 7 (Ultimate), where once the number of characters exceeds a certain number, the contents become invisible. The text is still there, and can be copied, edited etc, but it is just not shown. Deleting characters makes it re-appear.

I have reproduced this in a new MFC project, using Visual Studio 2010, just by making a dialog app which has a single-line edit control on its dialog.

I have found that the exact number of characters required to make the text disappear depends on the text. For instance, filling the control with the letter 'i', it takes 16379 chars to become invisible, but for the letter 'W' it takes 3275. For '_', it takes 5459. I wondered if it was the size in pixels that caused the problem, and found (using GetTextExtent on the edit control's DC) that for the letter 'i' the width was 65516 pixels, 'W' was 45850 pixels, and for '_' was 43672 pixels, so I can't see any relationship there.

(I am building the app in Visual Studio 2010 on Vista, though that doesn't make any difference, as an old version of our app built in VS2005 behaves the same in Win7).

Does anyone have any ideas of what is going on?

Paul.

"The way of a fool seems right to him, but a wise man listens to advice" - Proverbs 12:15 (NIV)
"A problem well defined is a problem half-solved" – John Dewey

QuestionSometimes Print and PrintPreview Function not responding. Pin
Le@rner22-Aug-10 23:23
Le@rner22-Aug-10 23:23 
QuestionOutPutDebugStringW Issue Pin
gothic_coder22-Aug-10 22:58
gothic_coder22-Aug-10 22:58 
AnswerRe: OutPutDebugStringW Issue Pin
Iain Clarke, Warrior Programmer23-Aug-10 0:53
Iain Clarke, Warrior Programmer23-Aug-10 0:53 
AnswerRe: OutPutDebugStringW Issue Pin
Richard MacCutchan23-Aug-10 1:07
mveRichard MacCutchan23-Aug-10 1:07 
GeneralRe: OutPutDebugStringW Issue Pin
gothic_coder23-Aug-10 1:37
gothic_coder23-Aug-10 1:37 
GeneralRe: OutPutDebugStringW Issue Pin
Richard MacCutchan23-Aug-10 1:50
mveRichard MacCutchan23-Aug-10 1:50 
QuestionHow to overrdide CHtmlView to specify the browser to be used Pin
shankgreen22-Aug-10 21:06
shankgreen22-Aug-10 21:06 
AnswerRe: How to overrdide CHtmlView to specify the browser to be used Pin
Niklas L22-Aug-10 22:36
Niklas L22-Aug-10 22:36 
GeneralRe: How to overrdide CHtmlView to specify the browser to be used Pin
shankgreen23-Aug-10 23:14
shankgreen23-Aug-10 23:14 
GeneralRe: How to overrdide CHtmlView to specify the browser to be used Pin
Niklas L24-Aug-10 8:04
Niklas L24-Aug-10 8:04 
GeneralRe: How to overrdide CHtmlView to specify the browser to be used Pin
stevehoang24-Mar-11 11:25
stevehoang24-Mar-11 11:25 
QuestionHow can export data from CListCtrl to excel? Pin
Le@rner22-Aug-10 20:02
Le@rner22-Aug-10 20:02 
AnswerRe: How can export data from CListCtrl to excel? Pin
Richard MacCutchan22-Aug-10 21:28
mveRichard MacCutchan22-Aug-10 21:28 
AnswerRe: How can export data from CListCtrl to excel? Pin
Niklas L22-Aug-10 22:29
Niklas L22-Aug-10 22:29 
QuestionRe: How can export data from CListCtrl to excel? Pin
David Crow23-Aug-10 3:08
David Crow23-Aug-10 3:08 
AnswerRe: How can export data from CListCtrl to excel? Pin
KarstenK23-Aug-10 3:32
mveKarstenK23-Aug-10 3:32 
QuestionSetting Cursor in MDI Application Pin
Kyudos22-Aug-10 15:05
Kyudos22-Aug-10 15:05 

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.