Click here to Skip to main content
15,040,743 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionout-of-proc server COM Pin
George_George5-Sep-07 18:04
MemberGeorge_George5-Sep-07 18:04 
AnswerRe: out-of-proc server COM Pin
DevMentor.org6-Sep-07 8:23
MemberDevMentor.org6-Sep-07 8:23 
GeneralRe: out-of-proc server COM Pin
George_George6-Sep-07 17:28
MemberGeorge_George6-Sep-07 17:28 
QuestionBinary Search Trees Pin
sirtimid5-Sep-07 17:36
Membersirtimid5-Sep-07 17:36 
Questionweekday in number Pin
includeh105-Sep-07 16:52
Memberincludeh105-Sep-07 16:52 
AnswerRe: weekday in number Pin
bob169725-Sep-07 17:00
Memberbob169725-Sep-07 17:00 
AnswerRe: weekday in number Pin
Michael Dunn5-Sep-07 17:16
sitebuilderMichael Dunn5-Sep-07 17:16 
QuestionExtremely weird: CEdit scrollbar not redrawn after SetBitmap() operation Pin
abiemann5-Sep-07 14:58
Memberabiemann5-Sep-07 14:58 
Description of the Dialog
-------------------------
the Dialog contains a static image that stretches the entire Dialog window.
Ontop of the static image a CEdit box is located. (Auto VScroll = true, Vertical Scroll = true, Multiline = true, Readonly = true, visible = true)


What the code does
------------------
when the user presses a button, the hex code of the key is shown in the edit box on a new line.
Also, the image behind the edit box updates (gets DC, does a BitBlt of entire image, and finishes with SetBitmap).
The BitBlt() draws over the edit box, hence, I have to call CEdit::RedrawWindow.


Expected Results after the RedrawWindow method is called
--------------------------------------------------------
I was expecting the background image to be underneath the edit box, with the edit box containing the text and if necessary, a scrollbar to show so that I can scroll up and down in the edit box.


Actual Results after the RedrawWindow method is called
--------------------------------------------------------
The background image is indeed behind the edit box, however, when the vertical scrollbar needs to show it is not seen after RedrawWindow() is called. Basically, the vertical scrollbar part of the edit box doesn't redraw - it is still there (I can guess where it is and click it and scroll up and down).

I've tried ShowScrollBar(TRUE) followed with RedrawWindow(), but this doesn't redraw the scrollbar either.

Is there anything I can do to force it to redraw the entire edit box ?
AnswerRe: Extremely weird: CEdit scrollbar not redrawn after SetBitmap() operation Pin
Naveen5-Sep-07 16:36
MemberNaveen5-Sep-07 16:36 
GeneralRe: Extremely weird: CEdit scrollbar not redrawn after SetBitmap() operation Pin
abiemann6-Sep-07 6:27
Memberabiemann6-Sep-07 6:27 
GeneralRe: Extremely weird: CEdit scrollbar not redrawn after SetBitmap() operation Pin
Naveen6-Sep-07 14:02
MemberNaveen6-Sep-07 14:02 
QuestionGetPrivateProfileString method: problems on Windows Vista Pin
Cris5-Sep-07 10:10
MemberCris5-Sep-07 10:10 
AnswerRe: GetPrivateProfileString method: problems on Windows Vista Pin
David Crow5-Sep-07 10:38
MemberDavid Crow5-Sep-07 10:38 
GeneralRe: GetPrivateProfileString method: problems on Windows Vista Pin
Cris5-Sep-07 10:41
MemberCris5-Sep-07 10:41 
GeneralRe: GetPrivateProfileString method: problems on Windows Vista Pin
David Crow5-Sep-07 10:52
MemberDavid Crow5-Sep-07 10:52 
GeneralRe: GetPrivateProfileString method: problems on Windows Vista Pin
El Corazon5-Sep-07 12:59
MemberEl Corazon5-Sep-07 12:59 
GeneralRe: GetPrivateProfileString method: problems on Windows Vista Pin
Michael Dunn5-Sep-07 14:23
sitebuilderMichael Dunn5-Sep-07 14:23 
GeneralRe: GetPrivateProfileString method: problems on Windows Vista Pin
El Corazon5-Sep-07 14:30
MemberEl Corazon5-Sep-07 14:30 
GeneralRe: GetPrivateProfileString method: problems on Windows Vista Pin
Michael Dunn5-Sep-07 17:19
sitebuilderMichael Dunn5-Sep-07 17:19 
GeneralRe: GetPrivateProfileString method: problems on Windows Vista Pin
El Corazon5-Sep-07 19:03
MemberEl Corazon5-Sep-07 19:03 
QuestionCView MFC Printing Pin
NorGUI5-Sep-07 7:19
MemberNorGUI5-Sep-07 7:19 
AnswerRe: CView MFC Printing Pin
led mike5-Sep-07 7:39
Memberled mike5-Sep-07 7:39 
AnswerRe: CView MFC Printing Pin
bob169725-Sep-07 17:05
Memberbob169725-Sep-07 17:05 
QuestionFile I/O: What is the best approach Pin
KenThompson5-Sep-07 6:15
MemberKenThompson5-Sep-07 6:15 
AnswerRe: File I/O: What is the best approach Pin
led mike5-Sep-07 7:38
Memberled mike5-Sep-07 7:38 

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.