Click here to Skip to main content
16,015,559 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: fastest way to do unix2dos Pin
Johann Gerell13-Nov-05 6:23
Johann Gerell13-Nov-05 6:23 
GeneralRe: fastest way to do unix2dos Pin
Chintoo72313-Nov-05 6:26
Chintoo72313-Nov-05 6:26 
GeneralRe: fastest way to do unix2dos Pin
grigsoft13-Nov-05 10:02
grigsoft13-Nov-05 10:02 
AnswerRe: fastest way to do unix2dos Pin
normanS13-Nov-05 19:02
normanS13-Nov-05 19:02 
QuestionHow to get a dynamic created control's dc Pin
paraGOD13-Nov-05 3:55
paraGOD13-Nov-05 3:55 
AnswerRe: How to get a dynamic created control's dc Pin
douglasjordan13-Nov-05 11:46
douglasjordan13-Nov-05 11:46 
GeneralRe: How to get a dynamic created control's dc Pin
paraGOD13-Nov-05 16:25
paraGOD13-Nov-05 16:25 
GeneralRe: How to get a dynamic created control's dc Pin
jhwurmbach13-Nov-05 21:58
jhwurmbach13-Nov-05 21:58 
paraGOD wrote:
Thank u , but this method can't draw the text in the edit contol.


SetWindowText() *can* draw the text in the edit-ctrl.
In fact, its the only way to do it this side from owner-drawing the whole control.

Your way paints the text at the exact place where the Edit-ctrl is located, triggering the edit-ctrls redraw.
Your text gets overwritten.
If what you want to acomplish is putting your Text into the Edit-ctrl, then SetWindowText() is the way to tell the Edit-ctrl what text it has to draw.
If you want something different, you should subclass CEdit and do it yourself, possibly delegating routine tasks to your baseclass CEdit.



"We trained hard, but it seemed that every time we were beginning to form up into teams we would be reorganised. I was to learn later in life that we tend to meet any new situation by reorganising: and a wonderful method it can be for creating the illusion of progress, while producing confusion, inefficiency and demoralisation."

-- Caius Petronius, Roman Consul, 66 A.D.

QuestionBad Loop help please Pin
B.F.13-Nov-05 1:51
B.F.13-Nov-05 1:51 
AnswerRe: Bad Loop help please Pin
Gary R. Wheeler13-Nov-05 1:55
Gary R. Wheeler13-Nov-05 1:55 
GeneralRe: Bad Loop help please Pin
B.F.13-Nov-05 2:17
B.F.13-Nov-05 2:17 
GeneralRe: Bad Loop help please Pin
Gary R. Wheeler13-Nov-05 2:44
Gary R. Wheeler13-Nov-05 2:44 
GeneralRe: Bad Loop help please (side note) Pin
Gary R. Wheeler13-Nov-05 2:47
Gary R. Wheeler13-Nov-05 2:47 
GeneralRe: Bad Loop help please (side note) Pin
B.F.13-Nov-05 4:37
B.F.13-Nov-05 4:37 
GeneralRe: Bad Loop help please Pin
lklf13-Nov-05 16:51
lklf13-Nov-05 16:51 
AnswerRe: Bad Loop help please Pin
chamilkab13-Nov-05 18:00
chamilkab13-Nov-05 18:00 
Questionproblems with ST_SplitterWnd and CFrameWnd Pin
#937013-Nov-05 1:34
#937013-Nov-05 1:34 
AnswerRe: problems with ST_SplitterWnd and CFrameWnd Pin
Gary R. Wheeler13-Nov-05 2:01
Gary R. Wheeler13-Nov-05 2:01 
GeneralRe: problems with ST_SplitterWnd and CFrameWnd Pin
#937013-Nov-05 4:18
#937013-Nov-05 4:18 
QuestionOPC XML DA Client - Managed C++ Implementation Pin
exetera13-Nov-05 0:38
exetera13-Nov-05 0:38 
QuestionDouble Buffering Pin
Akilez12-Nov-05 22:17
Akilez12-Nov-05 22:17 
AnswerRe: Double Buffering Pin
Jack Puppy13-Nov-05 1:37
Jack Puppy13-Nov-05 1:37 
AnswerRe: Double Buffering Pin
Michael Dunn13-Nov-05 12:31
sitebuilderMichael Dunn13-Nov-05 12:31 
QuestionHow to use _inp and _outp in VC++ Pin
vikas amin12-Nov-05 21:43
vikas amin12-Nov-05 21:43 
AnswerRe: How to use _inp and _outp in VC++ Pin
Gary R. Wheeler13-Nov-05 2:17
Gary R. Wheeler13-Nov-05 2:17 

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.