Click here to Skip to main content
15,913,027 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionMaximize Function Pin
Brian Deragon24-Oct-07 3:24
Brian Deragon24-Oct-07 3:24 
AnswerRe: Maximize Function Pin
led mike24-Oct-07 5:03
led mike24-Oct-07 5:03 
QuestionWhy FindTextW fails when RICHEDIT20W ctrl is used... Pin
nagamohan_p24-Oct-07 3:05
nagamohan_p24-Oct-07 3:05 
QuestionRe: Why FindTextW fails when RICHEDIT20W ctrl is used... Pin
David Crow24-Oct-07 3:31
David Crow24-Oct-07 3:31 
AnswerRe: Why FindTextW fails when RICHEDIT20W ctrl is used... Pin
nagamohan_p24-Oct-07 4:51
nagamohan_p24-Oct-07 4:51 
GeneralRe: Why FindTextW fails when RICHEDIT20W ctrl is used... Pin
David Crow24-Oct-07 5:02
David Crow24-Oct-07 5:02 
GeneralRe: Why FindTextW fails when RICHEDIT20W ctrl is used... Pin
nagamohan_p24-Oct-07 21:12
nagamohan_p24-Oct-07 21:12 
QuestionRe: Why FindTextW fails when RICHEDIT20W ctrl is used... Pin
David Crow25-Oct-07 2:43
David Crow25-Oct-07 2:43 
nagamohan_p wrote:
FindTextW() returns -1...
AFter calling FindTextW(), immediately GetLastError() is called.


So you have something like:

long lResult = m_richedit.FindTextW(...);
if (lResult == -1)
    DWORD dwError = GetLastError(); // this returns 0?



What happens if you use FindText() with RICHEDIT?


"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman

"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne


QuestionCListCtrl help: Pin
Hakan Bulut24-Oct-07 3:04
Hakan Bulut24-Oct-07 3:04 
AnswerRe: CListCtrl help: Pin
David Crow24-Oct-07 3:34
David Crow24-Oct-07 3:34 
GeneralRe: CListCtrl help: Pin
Hakan Bulut25-Oct-07 7:11
Hakan Bulut25-Oct-07 7:11 
QuestionMy Application crashes when change the language Pin
swtyabbi24-Oct-07 2:46
swtyabbi24-Oct-07 2:46 
AnswerRe: My Application crashes when change the language Pin
KarstenK24-Oct-07 3:02
mveKarstenK24-Oct-07 3:02 
QuestionRe: My Application crashes when change the language Pin
Hamid_RT24-Oct-07 3:38
Hamid_RT24-Oct-07 3:38 
QuestionHow to detect Shutdown Pin
VC_RYK24-Oct-07 2:17
VC_RYK24-Oct-07 2:17 
AnswerRe: How to detect Shutdown Pin
Nibu babu thomas24-Oct-07 2:33
Nibu babu thomas24-Oct-07 2:33 
AnswerRe: How to detect Shutdown Pin
Prasann Mayekar24-Oct-07 2:45
Prasann Mayekar24-Oct-07 2:45 
GeneralRe: How to detect Shutdown Pin
VC_RYK24-Oct-07 3:32
VC_RYK24-Oct-07 3:32 
GeneralRe: How to detect Shutdown Pin
Mark Salsbery24-Oct-07 5:44
Mark Salsbery24-Oct-07 5:44 
GeneralWeb Browser Hosting / Focus Problem Pin
Steve Thresher24-Oct-07 2:00
Steve Thresher24-Oct-07 2:00 
QuestionThere is no source code available for the current location Pin
akira3224-Oct-07 1:51
akira3224-Oct-07 1:51 
AnswerRe: There is no source code available for the current location Pin
KarstenK24-Oct-07 2:01
mveKarstenK24-Oct-07 2:01 
Generalvirtual memory allocation Pin
Jagadeesh Musham24-Oct-07 1:18
Jagadeesh Musham24-Oct-07 1:18 
GeneralRe: virtual memory allocation Pin
Cedric Moonen24-Oct-07 1:28
Cedric Moonen24-Oct-07 1:28 
GeneralRe: virtual memory allocation Pin
Nemanja Trifunovic24-Oct-07 8:15
Nemanja Trifunovic24-Oct-07 8:15 

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.