Click here to Skip to main content
15,885,707 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Getting ERROR_INSUFFICIENT_BUFFER error in DeviceIoControl Function Pin
Andrew Brock10-Jan-11 19:57
Andrew Brock10-Jan-11 19:57 
QuestionFont in CWnd Pin
includeh1010-Jan-11 17:31
includeh1010-Jan-11 17:31 
AnswerRe: Font in CWnd Pin
Richard MacCutchan10-Jan-11 23:28
mveRichard MacCutchan10-Jan-11 23:28 
AnswerRe: Font in CWnd Pin
User 742933810-Jan-11 23:47
professionalUser 742933810-Jan-11 23:47 
AnswerRe: Font in CWnd Pin
User 742933810-Jan-11 23:43
professionalUser 742933810-Jan-11 23:43 
AnswerRe: Font in CWnd Pin
jk chan11-Jan-11 0:48
jk chan11-Jan-11 0:48 
Questionusing ADO to get a clob out value through store procedure in oracle Pin
white jungle10-Jan-11 15:55
white jungle10-Jan-11 15:55 
QuestionRefresh/redraw controls in CFormView Pin
jaknupp10-Jan-11 11:17
jaknupp10-Jan-11 11:17 
I have a CFormView with 2 CStatic bitmaps used for backgrounds. One has an ActiveX graph control above it and the other has another bitmap. Z order is set so background bitmaps are on the bottom. Clip children and clip siblings are set. When first displayed everything looks good. After minimize/restore or covered by another window the background bitmaps display above the other controls.

To test I added a button and have the handler in CFormView that does m_graph.Invalidate() and m_foregroundbitmap.Invalidate(). When pushed the graph and forground bitmap display correctly. I also tried having the button handler just do Invalidate() (for the form view) which also displays correctly. Putting Invalidate() in any other handler (i.e. OnSize, OnActivate) doesn't work. It seems that the graph and foreground bitmap update but then the background bitmaps update and draw over the others. Setting Invalidate() in OnParentNotify() from the graph control does work but unless the mouse is over the control there's no notify messages so no update. I've also tried SetWindowPos(&CWnd::wndTopMost... which didn't seem to change anything.

Are there any ideas on what I might be missing or maybe another way to have controls over an image? (I need the background image because it gives a quick view to what changed in the control.) Thanks,

John
AnswerRe: Refresh/redraw controls in CFormView Pin
KingsGambit10-Jan-11 19:18
KingsGambit10-Jan-11 19:18 
QuestionConvert Windows application to Linux application Pin
Stephane-M10-Jan-11 4:01
Stephane-M10-Jan-11 4:01 
GeneralRe: Convert Windows application to Linux application Pin
User 742933810-Jan-11 4:07
professionalUser 742933810-Jan-11 4:07 
GeneralRe: Convert Windows application to Linux application Pin
Stephane-M10-Jan-11 4:17
Stephane-M10-Jan-11 4:17 
GeneralRe: Convert Windows application to Linux application Pin
User 742933810-Jan-11 4:41
professionalUser 742933810-Jan-11 4:41 
GeneralRe: Convert Windows application to Linux application Pin
Stephane-M10-Jan-11 23:09
Stephane-M10-Jan-11 23:09 
GeneralRe: Convert Windows application to Linux application Pin
Richard MacCutchan10-Jan-11 23:23
mveRichard MacCutchan10-Jan-11 23:23 
GeneralRe: Convert Windows application to Linux application Pin
Stephane-M11-Jan-11 2:15
Stephane-M11-Jan-11 2:15 
GeneralRe: Convert Windows application to Linux application Pin
Rozis11-Jan-11 9:56
Rozis11-Jan-11 9:56 
GeneralRe: Convert Windows application to Linux application Pin
Stephane-M11-Jan-11 23:33
Stephane-M11-Jan-11 23:33 
AnswerRe: Convert Windows application to Linux application Pin
Nemanja Trifunovic10-Jan-11 7:00
Nemanja Trifunovic10-Jan-11 7:00 
QuestionNTFS MFT Directory Index Pin
Chris Copeland10-Jan-11 3:12
mveChris Copeland10-Jan-11 3:12 
AnswerRe: NTFS MFT Directory Index Pin
Richard MacCutchan10-Jan-11 4:00
mveRichard MacCutchan10-Jan-11 4:00 
GeneralRe: NTFS MFT Directory Index Pin
Chris Copeland10-Jan-11 4:09
mveChris Copeland10-Jan-11 4:09 
QuestionCan we set any time limit for a thread to run Pin
pandit8410-Jan-11 2:46
pandit8410-Jan-11 2:46 
AnswerRe: Can we set any time limit for a thread to run Pin
Chris Meech10-Jan-11 3:25
Chris Meech10-Jan-11 3:25 
AnswerRe: Can we set any time limit for a thread to run Pin
User 742933810-Jan-11 3:30
professionalUser 742933810-Jan-11 3:30 

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.