Click here to Skip to main content
15,908,020 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: SWF in VC++ Pin
Axonn Echysttas6-Oct-05 22:38
Axonn Echysttas6-Oct-05 22:38 
QuestionSerial Communication in MFC Pin
vikas amin6-Oct-05 21:30
vikas amin6-Oct-05 21:30 
AnswerRe: Serial Communication in MFC Pin
Roger Stoltz6-Oct-05 21:42
Roger Stoltz6-Oct-05 21:42 
GeneralRe: Serial Communication in MFC Pin
vikas amin7-Oct-05 2:08
vikas amin7-Oct-05 2:08 
Questionwhite remnant occur when scroll bar is click. Pin
babyspidy6-Oct-05 21:20
babyspidy6-Oct-05 21:20 
AnswerRe: white remnant occur when scroll bar is click. Pin
KaЯl7-Oct-05 2:02
KaЯl7-Oct-05 2:02 
GeneralRe: white remnant occur when scroll bar is click. Pin
babyspidy7-Oct-05 4:28
babyspidy7-Oct-05 4:28 
GeneralRe: white remnant occur when scroll bar is click. Pin
KaЯl7-Oct-05 4:44
KaЯl7-Oct-05 4:44 
You could do this by catching the messages WM_HSCROLL and WM_VSCROLL

<code>
void CMyView::OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar) 
{
	InvalidateRect(NULL);
	<CBaseView>::OnHScroll(nSBCode, nPos, pScrollBar);	
}

void CMyView::OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar) 
{
	InvalidateRect(NULL);
	<CBaseView>::OnVScroll(nSBCode, nPos, pScrollBar);	
}


Replace CBaseView by the name of the base class view you use (CHtlmView I presume)
This code will ensure all the window will be marked as to be redrawn.

Hope this work Smile | :)

K.






The great error of nearly all studies of war has been to consider war as an episode in foreign policies, when it is an act of interior politics - Simone Weil
Fold with us! ¤ flickr

GeneralRe: white remnant occur when scroll bar is click. Pin
babyspidy7-Oct-05 5:00
babyspidy7-Oct-05 5:00 
GeneralRe: white remnant occur when scroll bar is click. Pin
babyspidy7-Oct-05 4:47
babyspidy7-Oct-05 4:47 
QuestionMFC Radio Buttons issue Pin
Axonn Echysttas6-Oct-05 21:18
Axonn Echysttas6-Oct-05 21:18 
AnswerRe: MFC Radio Buttons issue Pin
Roger Stoltz6-Oct-05 21:37
Roger Stoltz6-Oct-05 21:37 
AnswerRe: MFC Radio Buttons issue Pin
Mircea Puiu6-Oct-05 21:41
Mircea Puiu6-Oct-05 21:41 
GeneralRe: MFC Radio Buttons issue Pin
Axonn Echysttas6-Oct-05 22:11
Axonn Echysttas6-Oct-05 22:11 
QuestionSetWindowLong throwing ERROR_ACCESS_DENIED Pin
Anonymous6-Oct-05 21:14
Anonymous6-Oct-05 21:14 
QuestionDialog box Static text Pin
karmendra_js6-Oct-05 20:44
karmendra_js6-Oct-05 20:44 
AnswerRe: Dialog box Static text Pin
toxcct6-Oct-05 20:59
toxcct6-Oct-05 20:59 
AnswerRe: Dialog box Static text Pin
Cedric Moonen6-Oct-05 21:00
Cedric Moonen6-Oct-05 21:00 
GeneralRe: Dialog box Static text Pin
ThatsAlok6-Oct-05 21:08
ThatsAlok6-Oct-05 21:08 
AnswerRe: Dialog box Static text Pin
ThatsAlok6-Oct-05 21:07
ThatsAlok6-Oct-05 21:07 
QuestionHelp needed on Activex Control Pin
_anil_6-Oct-05 20:35
_anil_6-Oct-05 20:35 
QuestionRotating a MetaFile Pin
ashwin206-Oct-05 20:01
ashwin206-Oct-05 20:01 
QuestionCreating a VxD Pin
Abraham.Varghese6-Oct-05 19:22
Abraham.Varghese6-Oct-05 19:22 
AnswerRe: Creating a VxD Pin
Gary R. Wheeler9-Oct-05 4:20
Gary R. Wheeler9-Oct-05 4:20 
QuestionSerialize Tree Info Pin
swarnamanoo6-Oct-05 19:10
swarnamanoo6-Oct-05 19:10 

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.