Click here to Skip to main content
15,914,905 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problems scrolling in an edit box Pin
Fredrik Skog1-Jan-02 23:48
Fredrik Skog1-Jan-02 23:48 
GeneralList of id's in a NetWork Pin
San21-Dec-01 0:16
San21-Dec-01 0:16 
GeneralTab Control for switching documents, like Office, VC++ etc. (Newbie) Pin
20-Dec-01 23:26
suss20-Dec-01 23:26 
GeneralRe: Tab Control for switching documents, like Office, VC++ etc. (Newbie) Pin
Michael P Butler20-Dec-01 23:45
Michael P Butler20-Dec-01 23:45 
GeneralRe: Tab Control for switching documents, like Office, VC++ etc. (Newbie) Pin
21-Dec-01 0:59
suss21-Dec-01 0:59 
GeneralChange the Bakground color of a Text Box Pin
San20-Dec-01 22:17
San20-Dec-01 22:17 
GeneralRe: Change the Bakground color of a Text Box Pin
Michael P Butler20-Dec-01 23:49
Michael P Butler20-Dec-01 23:49 
GeneralRe: Change the Bakground color of a Text Box Pin
James R. Twine21-Dec-01 6:45
James R. Twine21-Dec-01 6:45 
   You can also check http://www.codeproject.com/editctrl/enhfocusedit.asp.  Not meant to be a self-plug, but I really do not see the need for (1) a potential dynamic memory allocation whenever a paint cycle happens, or (2) the need to draw the text yourself...

   You can just handle the correct messages, and let Windows do all of the work for you.  Functions of interest in the code are CFocusEditCtrl::CtlColor(...) and CFocusEditCtrl::OnEraseBkgnd(...).  The code also handles Disabled and Read-Only edit controls.

-=- James.
GeneralODBC Pin
HarrySolsem20-Dec-01 19:41
HarrySolsem20-Dec-01 19:41 
GeneralRe: ODBC Pin
Nish Nishant20-Dec-01 20:37
sitebuilderNish Nishant20-Dec-01 20:37 
GeneralGetting MSN list into dialog app Pin
Ashman20-Dec-01 19:27
Ashman20-Dec-01 19:27 
Generalmfc help file Pin
20-Dec-01 18:57
suss20-Dec-01 18:57 
GeneralRe: mfc help file Pin
Jon Hulatt20-Dec-01 23:30
Jon Hulatt20-Dec-01 23:30 
Generaleasy question Pin
cheb20-Dec-01 18:27
cheb20-Dec-01 18:27 
GeneralRe: easy question Pin
Nish Nishant20-Dec-01 18:51
sitebuilderNish Nishant20-Dec-01 18:51 
GeneralRe: easy question Pin
cheb20-Dec-01 18:54
cheb20-Dec-01 18:54 
GeneralRe: easy question Pin
Derek Waters20-Dec-01 18:52
Derek Waters20-Dec-01 18:52 
GeneralTAPI Problem Pin
Sandeep Shetty20-Dec-01 18:16
Sandeep Shetty20-Dec-01 18:16 
GeneralRe: TAPI Problem Pin
Vini21-Dec-01 17:59
Vini21-Dec-01 17:59 
Generalstrcpy & UNICODE Pin
Matt Newman20-Dec-01 16:45
Matt Newman20-Dec-01 16:45 
GeneralRe: strcpy & UNICODE Pin
Jon Sagara20-Dec-01 17:20
Jon Sagara20-Dec-01 17:20 
GeneralRe: strcpy & UNICODE Pin
Matt Newman21-Dec-01 9:50
Matt Newman21-Dec-01 9:50 
GeneralRe: strcpy & UNICODE Pin
Nish Nishant20-Dec-01 18:55
sitebuilderNish Nishant20-Dec-01 18:55 
GeneralRe: strcpy & UNICODE Pin
Michael Dunn20-Dec-01 19:28
sitebuilderMichael Dunn20-Dec-01 19:28 
GeneralNewbie Pin
20-Dec-01 16:09
suss20-Dec-01 16:09 

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.