Click here to Skip to main content
15,887,336 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
General_T as well... Pin
ns24-Jan-03 10:15
ns24-Jan-03 10:15 
GeneralRe: Thank you! Pin
Jörgen Sigvardsson24-Jan-03 14:28
Jörgen Sigvardsson24-Jan-03 14:28 
GeneralRe: tcslen Pin
Michael Dunn24-Jan-03 16:14
sitebuilderMichael Dunn24-Jan-03 16:14 
GeneralIE type automatic scroll for menu... Pin
ns24-Jan-03 9:46
ns24-Jan-03 9:46 
GeneralRe: IE type automatic scroll for menu... Pin
Neville Franks24-Jan-03 10:52
Neville Franks24-Jan-03 10:52 
GeneralRe: IE type automatic scroll for menu... Pin
ns24-Jan-03 11:11
ns24-Jan-03 11:11 
GeneralCPropertyPage Question Pin
nlecren24-Jan-03 9:25
nlecren24-Jan-03 9:25 
Generaldragging a view problems Pin
dazinith24-Jan-03 8:48
dazinith24-Jan-03 8:48 
ok, i have a CFormView that is displaying a form image in the background, and placing text on top of it, this is called CDisplayPrintTemplate, I implemented a dragging hand (like adobe's) which works fine.

now i have a new class which is derived from CDisplayPrintTemplate that puts CEdits on the form. When i try to drag the view the form and the text scroll still, but the CEdits just sit still. I have tried moving the dragging code into my new derived class, but the same thing still happens.. I can drag the scrollbar and scroll the window fine..
void CGAFormsView::OnMouseMove(UINT nFlags, CPoint point)
{
if (m_bDown == TRUE)
{
	int nYPos = CFPCF::_round(((m_nStartDragY - point.y)) + m_nStartScrollPosY);
	if (nYPos > GetScrollLimit(SB_VERT))
		nYPos = GetScrollLimit(SB_VERT);
	if (nYPos < 0)
		nYPos = 0;

	this->SetScrollPos(SB_VERT, nYPos, TRUE);
	this->RedrawWindow();
}
else
{
	::SetCursor(AfxGetApp()->LoadCursor (IDC_HAND_OPEN));
}
}

so what is different about how i am using SetScrollPos() versus how the scrollbar uses it (the scrollbar works fine)? any idea why can't i update the window without RedrawWindow() which causes everything to flicker?



still a newb.. cut me some slack :P
-dz
GeneralToolbar position of control is wrong!!! Pin
ns24-Jan-03 8:41
ns24-Jan-03 8:41 
Generalresolved. thanks Pin
ns24-Jan-03 9:31
ns24-Jan-03 9:31 
GeneralString problem (UNICODE / TCHAR) Pin
Daniel Strigl24-Jan-03 8:29
Daniel Strigl24-Jan-03 8:29 
GeneralRe: String problem (UNICODE / TCHAR) Pin
Joaquín M López Muñoz24-Jan-03 9:53
Joaquín M López Muñoz24-Jan-03 9:53 
GeneralProgrammatically set Visual C++ Directories for .NET Pin
Scott Evans24-Jan-03 8:06
Scott Evans24-Jan-03 8:06 
GeneralRe: Programmatically set Visual C++ Directories for .NET Pin
PJ Arends24-Jan-03 18:45
professionalPJ Arends24-Jan-03 18:45 
GeneralRe: Programmatically set Visual C++ Directories for .NET Pin
Scott Evans25-Jan-03 4:34
Scott Evans25-Jan-03 4:34 
GeneralRe: Programmatically set Visual C++ Directories for .NET Pin
PJ Arends25-Jan-03 7:31
professionalPJ Arends25-Jan-03 7:31 
GeneralRe: Programmatically set Visual C++ Directories for .NET Pin
Scott Evans25-Jan-03 9:03
Scott Evans25-Jan-03 9:03 
QuestionHashTables ?? Pin
Ehsan Baghaki24-Jan-03 7:47
Ehsan Baghaki24-Jan-03 7:47 
AnswerRe: HashTables ?? Pin
Neville Franks24-Jan-03 10:39
Neville Franks24-Jan-03 10:39 
GeneralRe: HashTables ?? Pin
Jörgen Sigvardsson24-Jan-03 14:31
Jörgen Sigvardsson24-Jan-03 14:31 
GeneralRe: HashTables ?? Pin
Neville Franks24-Jan-03 15:07
Neville Franks24-Jan-03 15:07 
GeneralSTL on Solaris Pin
retZ24-Jan-03 7:28
retZ24-Jan-03 7:28 
GeneralRe: STL on Solaris Pin
Anonymous24-Jan-03 8:01
Anonymous24-Jan-03 8:01 
GeneralRe: STL on Solaris Pin
retZ24-Jan-03 8:09
retZ24-Jan-03 8:09 
GeneralRe: STL on Solaris Pin
Anonymous24-Jan-03 8:29
Anonymous24-Jan-03 8:29 

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.