Click here to Skip to main content
15,899,679 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to get the size of cursor? Pin
simonchen.net8-Dec-05 20:19
simonchen.net8-Dec-05 20:19 
QuestionLook for:source code for Database table design Pin
wxshzf8-Dec-05 14:57
wxshzf8-Dec-05 14:57 
AnswerRe: Look for:source code for Database table design Pin
wxshzf8-Dec-05 20:11
wxshzf8-Dec-05 20:11 
AnswerRe: Look for:source code for Database table design Pin
kakan8-Dec-05 21:06
professionalkakan8-Dec-05 21:06 
QuestionCEdit transparent background - text gets screwy Pin
Christian Graus8-Dec-05 11:48
protectorChristian Graus8-Dec-05 11:48 
AnswerRe: CEdit transparent background - text gets screwy Pin
Christian Graus8-Dec-05 12:02
protectorChristian Graus8-Dec-05 12:02 
GeneralRe: CEdit transparent background - text gets screwy Pin
PJ Arends8-Dec-05 12:34
professionalPJ Arends8-Dec-05 12:34 
GeneralRe: CEdit transparent background - text gets screwy Pin
Christian Graus8-Dec-05 12:42
protectorChristian Graus8-Dec-05 12:42 
G'day, PJ Smile | :)

OK, in the first instance, the samples I found just passed back a transparent brush and set transparent mode in WM_CTLCOLOR ( as you also suggested ), and then called an Invalidate on the area in the parent when the mouse was clicked, or text is updated ( EN_UPDATE, from memory ). This worked in the samples, but not for me. I initially draw my background in WM_PAINT, but moved it to WM_ERASEBKGND, and the overall effect was great, excepting that if I used the arrows, or tried to select, no text was ever erased, it just went over itself.

So, I changed the code to use WM_PAINT again ( I tried going back and it doesn't work ), and I basically just draw my background, then draw the text over the top. I also need to figure out the selected area, and redraw that with a solid background, and now it all looks great.


Christian Graus - Microsoft MVP - C++
QuestionWindows Enumeration Pin
Manu_818-Dec-05 9:52
Manu_818-Dec-05 9:52 
Questionclass subclass instance problem Pin
tbrake8-Dec-05 9:14
tbrake8-Dec-05 9:14 
AnswerRe: class subclass instance problem Pin
Bob Stanneveld8-Dec-05 9:41
Bob Stanneveld8-Dec-05 9:41 
GeneralRe: class subclass instance problem Pin
tbrake8-Dec-05 9:52
tbrake8-Dec-05 9:52 
GeneralRe: class subclass instance problem Pin
Bob Stanneveld8-Dec-05 10:44
Bob Stanneveld8-Dec-05 10:44 
QuestionCannot hook FindNextFile Pin
gamitech8-Dec-05 6:37
gamitech8-Dec-05 6:37 
AnswerRe: Cannot hook FindNextFile Pin
Chris Losinger8-Dec-05 7:51
professionalChris Losinger8-Dec-05 7:51 
GeneralRe: Cannot hook FindNextFile Pin
gamitech8-Dec-05 8:46
gamitech8-Dec-05 8:46 
GeneralRe: Cannot hook FindNextFile Pin
Chris Losinger8-Dec-05 8:56
professionalChris Losinger8-Dec-05 8:56 
GeneralRe: Cannot hook FindNextFile Pin
ThatsAlok8-Dec-05 20:06
ThatsAlok8-Dec-05 20:06 
GeneralRe: Cannot hook FindNextFile Pin
gamitech10-Dec-05 4:27
gamitech10-Dec-05 4:27 
GeneralRe: Cannot hook FindNextFile Pin
ThatsAlok11-Dec-05 19:27
ThatsAlok11-Dec-05 19:27 
GeneralRe: Cannot hook FindNextFile Pin
gamitech15-Dec-05 3:16
gamitech15-Dec-05 3:16 
GeneralRe: Cannot hook FindNextFile Pin
ThatsAlok15-Dec-05 17:11
ThatsAlok15-Dec-05 17:11 
QuestionHalt processing until button is clicked Pin
Simon Cornish8-Dec-05 5:40
Simon Cornish8-Dec-05 5:40 
AnswerRe: Halt processing until button is clicked Pin
toxcct8-Dec-05 5:55
toxcct8-Dec-05 5:55 
GeneralRe: Halt processing until button is clicked Pin
Simon Cornish8-Dec-05 6:40
Simon Cornish8-Dec-05 6:40 

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.