Click here to Skip to main content
15,922,419 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to delete a memory on Heap if it is holded by a reference Pin
Cedric Moonen22-Jul-10 20:45
Cedric Moonen22-Jul-10 20:45 
GeneralRe: How to delete a memory on Heap if it is holded by a reference Pin
Emilio Garavaglia22-Jul-10 21:28
Emilio Garavaglia22-Jul-10 21:28 
GeneralRe: How to delete a memory on Heap if it is holded by a reference Pin
pandit8422-Jul-10 21:31
pandit8422-Jul-10 21:31 
QuestionHow can show a long string in Muliline in the Static Text Control? Pin
Le@rner22-Jul-10 19:44
Le@rner22-Jul-10 19:44 
AnswerRe: How can show a long string in Muliline in the Static Text Control? Pin
Madhu Nair22-Jul-10 20:14
Madhu Nair22-Jul-10 20:14 
GeneralRe: How can show a long string in Muliline in the Static Text Control? Pin
Le@rner22-Jul-10 20:25
Le@rner22-Jul-10 20:25 
GeneralRe: How can show a long string in Muliline in the Static Text Control? Pin
Madhu Nair22-Jul-10 20:27
Madhu Nair22-Jul-10 20:27 
AnswerRe: How can show a long string in Muliline in the Static Text Control? Pin
«_Superman_»22-Jul-10 20:27
professional«_Superman_»22-Jul-10 20:27 
Without spaces text will not wrap in a static control.
You will have to do it yourself by inserting a newline or space at the appropriate place.
The NoWrap property is to tell the static control not to wrap the text even if there is a space or newline character in the text.

I would recommend you use an edit control instead.
Set its Auto HScroll property to False, Read Only to True and Border to False to get a similar visual effect as that of a static control.
Setting Auto HScroll to False will wrap the text even if there is no space or newline characters.

The only difference is that, in a static control you cannot select text and in an edit control you will be able to select text using the mouse.
Also for a static control you can set the text from the property window, while you cannot for an edit control. You will need to use the SetWindowText API to set the text for an edit control.
«_Superman

I love work. It gives me something to do between weekends.


Microsoft MVP (Visual C++)

Polymorphism in C







QuestionRe: How can show a long string in Muliline in the Static Text Control? Pin
Cool_Dev22-Jul-10 20:57
Cool_Dev22-Jul-10 20:57 
AnswerRe: How can show a long string in Muliline in the Static Text Control? Pin
«_Superman_»22-Jul-10 21:18
professional«_Superman_»22-Jul-10 21:18 
GeneralRe: How can show a long string in Muliline in the Static Text Control? Pin
Cool_Dev22-Jul-10 22:33
Cool_Dev22-Jul-10 22:33 
QuestionCDateTimeCtrl Pin
john563222-Jul-10 16:56
john563222-Jul-10 16:56 
QuestionReading id3 frame header from mp3 file Pin
Danzy8322-Jul-10 7:56
Danzy8322-Jul-10 7:56 
AnswerRe: Reading id3 frame header from mp3 file Pin
Maximilien22-Jul-10 10:04
Maximilien22-Jul-10 10:04 
AnswerRe: Reading id3 frame header from mp3 file Pin
Cool_Dev22-Jul-10 18:02
Cool_Dev22-Jul-10 18:02 
GeneralRe: Reading id3 frame header from mp3 file Pin
Danzy8322-Jul-10 23:57
Danzy8322-Jul-10 23:57 
GeneralRe: Reading id3 frame header from mp3 file Pin
Cool_Dev3-Aug-10 2:22
Cool_Dev3-Aug-10 2:22 
QuestionHow to monitor Network connections Pin
Vijjuuu.22-Jul-10 7:21
Vijjuuu.22-Jul-10 7:21 
AnswerRe: How to monitor Network connections Pin
David Crow22-Jul-10 9:42
David Crow22-Jul-10 9:42 
GeneralRe: How to monitor Network connections Pin
Vijjuuu.22-Jul-10 17:31
Vijjuuu.22-Jul-10 17:31 
AnswerRe: How to monitor Network connections Pin
Luc Pattyn22-Jul-10 11:09
sitebuilderLuc Pattyn22-Jul-10 11:09 
GeneralRe: How to monitor Network connections Pin
Vijjuuu.22-Jul-10 17:30
Vijjuuu.22-Jul-10 17:30 
QuestionHow to execute tab and newline? Pin
Joseph8222-Jul-10 4:04
Joseph8222-Jul-10 4:04 
QuestionRe: How to execute tab and newline? Pin
David Crow22-Jul-10 4:15
David Crow22-Jul-10 4:15 
AnswerRe: How to execute tab and newline? Pin
Joseph8222-Jul-10 4:22
Joseph8222-Jul-10 4:22 

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.