Click here to Skip to main content
16,010,351 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralWindows Add/Remove programs dialog Pin
Shah Shehpori3-Dec-03 23:14
sussShah Shehpori3-Dec-03 23:14 
GeneralRe: Windows Add/Remove programs dialog Pin
Mike Dimmick4-Dec-03 2:50
Mike Dimmick4-Dec-03 2:50 
GeneralHelp me please!!! Deconvolution Pin
Angeluna3-Dec-03 23:12
sussAngeluna3-Dec-03 23:12 
Generalhex to decimal Pin
styve3-Dec-03 22:13
styve3-Dec-03 22:13 
GeneralRe: hex to decimal Pin
murali_utr3-Dec-03 22:22
murali_utr3-Dec-03 22:22 
Generalcystal report problem. Pin
murali_utr3-Dec-03 21:36
murali_utr3-Dec-03 21:36 
GeneralRe: cystal report problem. Pin
murali_utr3-Dec-03 23:41
murali_utr3-Dec-03 23:41 
GeneralGetClipBox Pin
R. Thomas3-Dec-03 21:27
R. Thomas3-Dec-03 21:27 
hi..
i am making a grid..and i am doin it like this
    for(int x = 10 ; x <= 2000 ; x += 10) {<br />
    pDC->MoveTo(x, -10);<br />
    pDC->LineTo(x, -1000/*pDoc->GetGridWidth()*/);<br />
}<br />
<br />
for(int y = -10 ; y >= -1000 ; y -=10) {<br />
    pDC->MoveTo(10, y);<br />
    pDC->LineTo(2000, y);

the grid is fine...
i am uing a CScrollView and so when i scroll the whole thing blinks and looks bad...
so i want to use GetClipBox..
if i use it..can someone pls help me out as to how should i implement it in my above code???
CRect clipBoxRect;<br />
pDC->GetClipBox(&clipBoxRect);//what should i do with it???<br />
for(int x = 10 ; x <= 2000 ; x += 10) {<br />
    pDC->MoveTo(x, -10);<br />
    pDC->LineTo(x, -1000/*pDoc->GetGridWidth()*/);<br />
}<br />
<br />
for(int y = -10 ; y >= -1000 ; y -=10) {<br />
    pDC->MoveTo(10, y);<br />
    pDC->LineTo(2000, y);

i dont know how to incorporate the clipBoxRect with my code in order to make the blinking go away.
can someone pls help??
tks for your time..really appreciate it..

Have a Super Blessed Day!
-------------------------
For God has not given us a spirit of fear, but of power and of love and of a sound mind.
2 Timothy 1:7
"For God so loved the world that He gave His only begotten Son, that whoever believes in Him should not perish but have everlasting life."
John 3:16
"Therefore you also be ready, for the Son of Man is coming at an hour you do not expet."
Luke 12:40

GeneralRe: GetClipBox Pin
Monty24-Dec-03 1:59
Monty24-Dec-03 1:59 
GeneralRe: GetClipBox Pin
KaЯl4-Dec-03 11:34
KaЯl4-Dec-03 11:34 
GeneralRe: GetClipBox Pin
R. Thomas4-Dec-03 15:38
R. Thomas4-Dec-03 15:38 
GeneralRe: GetClipBox Pin
KaЯl4-Dec-03 21:24
KaЯl4-Dec-03 21:24 
GeneralRe: GetClipBox Pin
R. Thomas7-Dec-03 4:51
R. Thomas7-Dec-03 4:51 
GeneralRe: GetClipBox Pin
KaЯl7-Dec-03 6:20
KaЯl7-Dec-03 6:20 
GeneralRe: GetClipBox Pin
R. Thomas7-Dec-03 6:37
R. Thomas7-Dec-03 6:37 
GeneralRe: GetClipBox Pin
KaЯl7-Dec-03 7:24
KaЯl7-Dec-03 7:24 
GeneralConfiguring remotely Pin
Jeremy Pullicino3-Dec-03 21:22
Jeremy Pullicino3-Dec-03 21:22 
GeneralRe: Configuring remotely Pin
Peter Molnar4-Dec-03 14:12
Peter Molnar4-Dec-03 14:12 
Questionhow to vary the size of the view using SDI formview? Pin
coda_x3-Dec-03 21:19
coda_x3-Dec-03 21:19 
AnswerRe: how to vary the size of the view using SDI formview? Pin
Roger Allen4-Dec-03 2:27
Roger Allen4-Dec-03 2:27 
GeneralRe: how to vary the size of the view using SDI formview? Pin
coda_x4-Dec-03 18:51
coda_x4-Dec-03 18:51 
GeneralWhether a is Socket alive question Pin
Stan the man3-Dec-03 19:43
Stan the man3-Dec-03 19:43 
GeneralRe: Whether a is Socket alive question Pin
Johnny ²3-Dec-03 21:56
Johnny ²3-Dec-03 21:56 
GeneralLogin Password Pin
Member 6488283-Dec-03 18:38
Member 6488283-Dec-03 18:38 
GeneralRe: Login Password Pin
Shanmuga Sundar3-Dec-03 18:43
Shanmuga Sundar3-Dec-03 18:43 

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.