Click here to Skip to main content
15,908,776 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Getting the menu option from CMenu Pin
Niklas L17-Apr-02 4:17
Niklas L17-Apr-02 4:17 
GeneralRe: Getting the menu option from CMenu Pin
Roger Allen17-Apr-02 5:46
Roger Allen17-Apr-02 5:46 
GeneralRe: Getting the menu option from CMenu Pin
Lilian Chan-Grant17-Apr-02 9:53
Lilian Chan-Grant17-Apr-02 9:53 
GeneralPrinter Forms Pin
Steve Thresher17-Apr-02 2:30
Steve Thresher17-Apr-02 2:30 
Generalproblem with CTreeView Pin
Luis Reina17-Apr-02 1:57
Luis Reina17-Apr-02 1:57 
GeneralRich Edit Control and Release builds Pin
Derek Lakin17-Apr-02 1:53
Derek Lakin17-Apr-02 1:53 
GeneralRe: Rich Edit Control and Release builds Pin
-Dy17-Apr-02 2:52
-Dy17-Apr-02 2:52 
GeneralRe: Rich Edit Control and Release builds Pin
Derek Lakin17-Apr-02 3:34
Derek Lakin17-Apr-02 3:34 
I haven't overridden GetLine. The only things it handles are ENM_CHANGE (registered using SetEventMask in PresubclassWindow and OnCreate) and WM_CHAR.

Whilst trying to debug the problem I added several OutputDebugString calls in the OnChange handler. Bizarely enough if I output the window text in this call, the colourising succeeds becuase GetLine returns the correct text. I tried outputing smaller amounts of text thinking it may be timing related and found that it wouldn't work with anything less than half of the control text.

Even more bizarrely, following on from the timing thoughts, using Sleep or SetTimer to reparse the text after a specified time interval didn't work either. Even waiting for as long as 5 seconds.

It's really weirdConfused | :confused:

Derek Lakin.

I wish I was what I thought I was when I wished I was what I am.

Salamander Software Ltd.
GeneralRe: Rich Edit Control and Release builds Pin
Niklas L17-Apr-02 4:51
Niklas L17-Apr-02 4:51 
GeneralRe: Rich Edit Control and Release builds Pin
16-May-02 5:24
suss16-May-02 5:24 
GeneralUser Breakpoint called from code Pin
XAlien17-Apr-02 0:45
XAlien17-Apr-02 0:45 
GeneralRe: User Breakpoint called from code Pin
Pere LLibre17-Apr-02 4:14
Pere LLibre17-Apr-02 4:14 
GeneralRe: User Breakpoint called from code Pin
XAlien17-Apr-02 4:38
XAlien17-Apr-02 4:38 
GeneralRe: User Breakpoint called from code Pin
Thomas Freudenberg17-Apr-02 5:44
Thomas Freudenberg17-Apr-02 5:44 
QuestionSearch strategy for LoadLibrary...? Pin
Tommy Svensson17-Apr-02 0:40
Tommy Svensson17-Apr-02 0:40 
AnswerRe: Search strategy for LoadLibrary...? Pin
l a u r e n17-Apr-02 1:48
l a u r e n17-Apr-02 1:48 
GeneralRe: Search strategy for LoadLibrary...? Pin
Tommy Svensson17-Apr-02 3:05
Tommy Svensson17-Apr-02 3:05 
GeneralRe: Search strategy for LoadLibrary...? Pin
Joaquín M López Muñoz17-Apr-02 3:13
Joaquín M López Muñoz17-Apr-02 3:13 
AnswerRe: Search strategy for LoadLibrary...? Pin
Nish Nishant17-Apr-02 4:11
sitebuilderNish Nishant17-Apr-02 4:11 
GeneralRe: Search strategy for LoadLibrary...? Pin
Tommy Svensson17-Apr-02 4:16
Tommy Svensson17-Apr-02 4:16 
QuestionSQL statement to take a string value after FROM?? Pin
Aoife17-Apr-02 0:27
Aoife17-Apr-02 0:27 
AnswerRe: SQL statement to take a string value after FROM?? Pin
l a u r e n17-Apr-02 1:52
l a u r e n17-Apr-02 1:52 
GeneralRe: SQL statement to take a string value after FROM?? Pin
Aoife17-Apr-02 2:09
Aoife17-Apr-02 2:09 
GeneralSystem Tray - Dialog Please Help Pin
Sameer Maggon17-Apr-02 0:17
Sameer Maggon17-Apr-02 0:17 
GeneralRe: System Tray - Dialog Please Help Pin
Jon Hulatt17-Apr-02 3:07
Jon Hulatt17-Apr-02 3:07 

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.