Click here to Skip to main content
15,890,897 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionAuto Scroll Vertical to the last line Pin
susanne131-May-09 5:48
susanne131-May-09 5:48 
AnswerRe: Auto Scroll Vertical to the last line Pin
«_Superman_»31-May-09 19:30
professional«_Superman_»31-May-09 19:30 
GeneralRe: Auto Scroll Vertical to the last line Pin
susanne12-Jun-09 4:56
susanne12-Jun-09 4:56 
QuestionI am gettin the E_DRM_SERVER_NOT_FOUND while doing the OnlinePublishing in AD RMS Application Pin
deadlyabbas31-May-09 2:48
deadlyabbas31-May-09 2:48 
Questiondlls compatibility Pin
prithaa31-May-09 1:17
prithaa31-May-09 1:17 
AnswerRe: dlls compatibility Pin
Stuart Dootson31-May-09 13:27
professionalStuart Dootson31-May-09 13:27 
QuestionI want no flicking this Dialog picture Please help! [modified] Pin
UGIF30-May-09 23:02
UGIF30-May-09 23:02 
AnswerRe: I want no flicking this Dialog picture Please help! Pin
asrelu1-Jun-09 13:41
asrelu1-Jun-09 13:41 
Your blog is in Chinese, a language most of us don't speak.

From your code you ommitted the most important part, the OnPaint function.

Not knowing what you have there I can only give you general advises.

If you have a picture in the window, when you paint the background you delete the picture, and after that you paint it again. That will cause flickering.

Repaint the background only in the portions where there is no other graphics. Basically make sure that during a repaint of the window, every pixel is repainted only once.

Never clear anything from the window. Just overwrite.

Double buffering is the best, just don't forget, dont delete anything from the screen and don't repaint the background where it's not necessary. Only overwrite.

Do not use ScrollWindow to scroll the image, repaint everything to the nev position. If your window is partially covered by another window, the portion of the image scrolled out from under the other window will be black (or whatever the background color is).

If you're trying to scroll the controls form a dialog box, you don't need graphics processing.
Each control in the dialog is a window. Obtain a CWnd* pointer to each of them using GetDlgItem, then move the control using MoveWindow.

Frankly I think scrolling controls is a very unusual way to deal with dialogs. If you have too many controls you should consider using multiple dialog boxes, or maybe, a property page.
GeneralRe: I want no flicking this Dialog picture Please help! Pin
UGIF2-Jun-09 2:22
UGIF2-Jun-09 2:22 
GeneralRe: I want no flicking this Dialog picture Please help! Pin
asrelu5-Jun-09 11:19
asrelu5-Jun-09 11:19 
QuestionGPU Pin
Michae_geffen30-May-09 21:29
Michae_geffen30-May-09 21:29 
QuestionSoftware HEAP bug Pin
transoft30-May-09 12:04
transoft30-May-09 12:04 
AnswerRe: Software HEAP bug Pin
Stuart Dootson30-May-09 12:51
professionalStuart Dootson30-May-09 12:51 
QuestionVisual Basics Program Ideas? Pin
carleyt30-May-09 6:22
carleyt30-May-09 6:22 
QuestionRe: Visual Basics Program Ideas? Pin
David Crow30-May-09 10:56
David Crow30-May-09 10:56 
Questiona socket problem Pin
tyr200029-May-09 22:46
tyr200029-May-09 22:46 
AnswerRe: a socket problem Pin
Rajesh R Subramanian30-May-09 0:08
professionalRajesh R Subramanian30-May-09 0:08 
AnswerRe: a socket problem Pin
CPallini30-May-09 2:30
mveCPallini30-May-09 2:30 
AnswerRe: a socket problem Pin
luxiaokang30-May-09 15:15
luxiaokang30-May-09 15:15 
GeneralRe: a socket problem Pin
Luc Pattyn30-May-09 15:45
sitebuilderLuc Pattyn30-May-09 15:45 
GeneralRe: a socket problem Pin
fanronghua30-May-09 22:36
fanronghua30-May-09 22:36 
AnswerRe: a socket problem Pin
tyr200031-May-09 0:00
tyr200031-May-09 0:00 
GeneralRe: a socket problem Pin
Luc Pattyn31-May-09 1:49
sitebuilderLuc Pattyn31-May-09 1:49 
GeneralRe: a socket problem Pin
tyr200031-May-09 23:14
tyr200031-May-09 23:14 
QuestionFile Saving Pin
trioum29-May-09 21:37
trioum29-May-09 21:37 

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.