Click here to Skip to main content
15,923,083 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to call dll in wince app Pin
viduran23-Jul-10 1:04
viduran23-Jul-10 1:04 
GeneralRe: How to call dll in wince app Pin
Rajesh R Subramanian23-Jul-10 6:02
professionalRajesh R Subramanian23-Jul-10 6:02 
AnswerRe: How to call dll in wince app Pin
Richard MacCutchan23-Jul-10 0:49
mveRichard MacCutchan23-Jul-10 0:49 
GeneralRe: How to call dll in wince app Pin
viduran23-Jul-10 0:52
viduran23-Jul-10 0:52 
GeneralRe: How to call dll in wince app Pin
Richard MacCutchan23-Jul-10 2:24
mveRichard MacCutchan23-Jul-10 2:24 
GeneralMessage Removed Pin
23-Jul-10 2:50
viduran23-Jul-10 2:50 
GeneralRe: How to call dll in wince app Pin
Richard MacCutchan23-Jul-10 4:27
mveRichard MacCutchan23-Jul-10 4:27 
QuestionScrolling is not working ScrollView Pin
Anu_Bala22-Jul-10 23:03
Anu_Bala22-Jul-10 23:03 
Hi, in my CTrendView derived from CScrollView,i added two scrollbars inside the view.
I created it in OnCreate function.

int CTrendView::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
	if (CZoomView::OnCreate(lpCreateStruct) == -1)
	return -1;

HScroll.Create(SBS_HORZ|SBS_TOPALIGN|WS_CHILD|WS_VISIBLE,CRect(10,10,200,15), this, 1); //10,10,200,15
VScroll.Create(SBS_VERT|SBS_TOPALIGN|WS_CHILD|WS_VISIBLE,CRect(200,50,230,200),this, 2);
}


And i added code for OnHScroll and OVScroll also.
void CTrendView::OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar) 
{
	CRect r;
	CClientDC d(pScrollBar);
	HScroll.SetScrollPos(iHIndex,1);
	int TmpiHIndex	= iHIndex;							biHIndexChanged	= false;							
	if (pScrollBar == &HScroll)
	{
		if (nSBCode == SB_THUMBTRACK)
		{
		iHIndex = (int)nPos;
		}
		if (nSBCode == SB_LINEDOWN)
		{
			iHIndex++;
			if (iHIndex > pScrollBar->GetScrollLimit()) 
				iHIndex = pScrollBar->GetScrollLimit();
		}
		if (nSBCode == SB_LINEUP)
		{
			iHIndex--;
			if (iHIndex < 0) 
				iHIndex = 0;
		}
		HScroll.SetScrollPos(iHIndex,1);		
	}		
	
	CView::OnHScroll(nSBCode, nPos, pScrollBar);
}


So my problem is when i scrolling the Window scroll,its not get scrolling.When i debug,i found after pressing windows scroll it goes to this OnHSCroll coding and actual scrolling is not working.What can i do?Help me.
Anu

AnswerRe: Scrolling is not working ScrollView Pin
Cedric Moonen22-Jul-10 23:11
Cedric Moonen22-Jul-10 23:11 
GeneralRe: Scrolling is not working ScrollView Pin
Anu_Bala22-Jul-10 23:44
Anu_Bala22-Jul-10 23:44 
Question32 bitmap and gdi+ problem Pin
rjkg22-Jul-10 23:01
rjkg22-Jul-10 23:01 
QuestionRe: 32 bitmap and gdi+ problem Pin
Niklas L22-Jul-10 23:14
Niklas L22-Jul-10 23:14 
AnswerRe: 32 bitmap and gdi+ problem Pin
rjkg22-Jul-10 23:37
rjkg22-Jul-10 23:37 
GeneralRe: 32 bitmap and gdi+ problem Pin
S p k 52123-Jul-10 0:28
S p k 52123-Jul-10 0:28 
GeneralRe: 32 bitmap and gdi+ problem Pin
rjkg23-Jul-10 0:40
rjkg23-Jul-10 0:40 
GeneralRe: 32 bitmap and gdi+ problem Pin
S p k 52123-Jul-10 0:51
S p k 52123-Jul-10 0:51 
GeneralRe: 32 bitmap and gdi+ problem [modified] Pin
rjkg23-Jul-10 0:59
rjkg23-Jul-10 0:59 
AnswerRe: 32 bitmap and gdi+ problem Pin
Joe Woodbury23-Jul-10 7:02
professionalJoe Woodbury23-Jul-10 7:02 
GeneralRe: 32 bitmap and gdi+ problem Pin
rjkg24-Jul-10 0:01
rjkg24-Jul-10 0:01 
GeneralRe: 32 bitmap and gdi+ problem Pin
Joe Woodbury24-Jul-10 8:14
professionalJoe Woodbury24-Jul-10 8:14 
QuestionAddPrinterDriver returning ERROR_IO_PENDING, what should I do? Pin
sashoalm22-Jul-10 22:44
sashoalm22-Jul-10 22:44 
AnswerRe: AddPrinterDriver returning ERROR_IO_PENDING, what should I do? Pin
Code-o-mat22-Jul-10 23:47
Code-o-mat22-Jul-10 23:47 
GeneralRe: AddPrinterDriver returning ERROR_IO_PENDING, what should I do? Pin
David Crow23-Jul-10 3:17
David Crow23-Jul-10 3:17 
QuestionProcessing speed becomes slow if i do not use FILE_FLAG_OVERLAPPED parameter in my CreateFile Function Pin
learningvisualc22-Jul-10 20:50
learningvisualc22-Jul-10 20:50 
AnswerRe: Processing speed becomes slow if i do not use FILE_FLAG_OVERLAPPED parameter in my CreateFile Function Pin
Code-o-mat22-Jul-10 22:45
Code-o-mat22-Jul-10 22:45 

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.