Click here to Skip to main content
15,898,035 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Resource dll in vc++.net Pin
«_Superman_»26-Feb-09 18:59
professional«_Superman_»26-Feb-09 18:59 
QuestionRe: Resource dll in vc++.net Pin
Purish Dwivedi26-Feb-09 19:08
Purish Dwivedi26-Feb-09 19:08 
AnswerRe: Resource dll in vc++.net Pin
«_Superman_»26-Feb-09 19:12
professional«_Superman_»26-Feb-09 19:12 
QuestionRe: Resource dll in vc++.net Pin
Purish Dwivedi26-Feb-09 19:23
Purish Dwivedi26-Feb-09 19:23 
AnswerRe: Resource dll in vc++.net Pin
Hamid_RT26-Feb-09 19:29
Hamid_RT26-Feb-09 19:29 
QuestionRe: Resource dll in vc++.net Pin
Purish Dwivedi26-Feb-09 21:36
Purish Dwivedi26-Feb-09 21:36 
AnswerRe: Resource dll in vc++.net Pin
Hamid_RT26-Feb-09 21:47
Hamid_RT26-Feb-09 21:47 
QuestionScrollBar is disappering Pin
hemlat26-Feb-09 18:42
hemlat26-Feb-09 18:42 
Hi,
I have added ScrollBar to my Dialog.I added variable and Message Mapping function to it.I am displaying Images in my Dialog.After one Scroll ScrollBar is disappering.
void EnhancedReport::OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar) 
{
	// TODO: Add your message handler code here and/or call default
	int CurPos = m_ScrollBar.GetScrollPos();

	// Determine the new position of scroll box.
	switch (nSBCode)
	{
	case SB_LEFT:      // Scroll to far left.
		CurPos = 0;
		break;

	case SB_RIGHT:      // Scroll to far right.
		CurPos = (m_filecount/8);
		break;

	case SB_ENDSCROLL:   // End scroll.
		break;

	case SB_LINELEFT:      // Scroll left.
		if (CurPos > 0)
			CurPos--;
		break;

	case SB_LINERIGHT:   // Scroll right.
		if (CurPos < (m_filecount/8))
			CurPos++;
		break;

	case SB_PAGELEFT:    // Scroll one page left.
		{
			// Get the page size. 
			SCROLLINFO   info;
			m_ScrollBar.GetScrollInfo(&info, SIF_ALL);
   
			if (CurPos > 0)
				CurPos = max(0, CurPos - (int) info.nPage);
		}
		break;

	case SB_PAGERIGHT:      // Scroll one page right
		{
			// Get the page size. 
			SCROLLINFO   info;
			m_ScrollBar.GetScrollInfo(&info, SIF_ALL);

			if (CurPos < (m_filecount/8))
				CurPos = min((m_filecount/8), CurPos + (int) info.nPage);
		}
		break;

	case SB_THUMBPOSITION: // Scroll to absolute position. nPos is the position
		CurPos = nPos;      // of the scroll box at the end of the drag operation.
		break;

	case SB_THUMBTRACK:   // Drag scroll box to specified position. nPos is the
		CurPos = nPos;     // position that the scroll box has been dragged to.
		break;
	}

	// Set the new position of the thumb (scroll box).
	m_ScrollBar.SetScrollPos(CurPos);
	
	DisplayImages(CurPos);
	
	//CDialog::OnVScroll(nSBCode, nPos, pScrollBar);
} 

AnswerRe: ScrollBar is disappering Pin
Hamid_RT26-Feb-09 19:21
Hamid_RT26-Feb-09 19:21 
GeneralRe: ScrollBar is disappering Pin
hemlat26-Feb-09 19:30
hemlat26-Feb-09 19:30 
GeneralRe: ScrollBar is disappering Pin
Hamid_RT26-Feb-09 21:04
Hamid_RT26-Feb-09 21:04 
GeneralRe: ScrollBar is disappering Pin
hemlat26-Feb-09 21:22
hemlat26-Feb-09 21:22 
GeneralRe: ScrollBar is disappering Pin
Hamid_RT26-Feb-09 23:32
Hamid_RT26-Feb-09 23:32 
QuestionExpression Question regarding C++ Syntax Pin
TheRainer26-Feb-09 17:43
TheRainer26-Feb-09 17:43 
AnswerRe: Expression Question regarding C++ Syntax Pin
_AnsHUMAN_ 26-Feb-09 17:53
_AnsHUMAN_ 26-Feb-09 17:53 
AnswerRe: Expression Question regarding C++ Syntax Pin
Stuart Dootson26-Feb-09 23:20
professionalStuart Dootson26-Feb-09 23:20 
Questionrectangle drawing using OpenGL [modified] Pin
Member 337533426-Feb-09 15:58
Member 337533426-Feb-09 15:58 
AnswerRe: rectangle drawing using OpenGL Pin
Nishad S26-Feb-09 18:36
Nishad S26-Feb-09 18:36 
AnswerRe: rectangle drawing using OpenGL Pin
Hamid_RT26-Feb-09 19:24
Hamid_RT26-Feb-09 19:24 
QuestionCreate SDI Application that Has No Menu Bar Pin
roynz26-Feb-09 15:55
roynz26-Feb-09 15:55 
Questionhow to send a tree control TVN_SELCHANGED message by portmessage() Pin
tyr200026-Feb-09 15:40
tyr200026-Feb-09 15:40 
AnswerRe: how to send a tree control TVN_SELCHANGED message by portmessage() Pin
Nishad S26-Feb-09 18:45
Nishad S26-Feb-09 18:45 
AnswerRe: how to send a tree control TVN_SELCHANGED message by portmessage() Pin
«_Superman_»26-Feb-09 18:56
professional«_Superman_»26-Feb-09 18:56 
GeneralRe: how to send a tree control TVN_SELCHANGED message by portmessage() Pin
tyr200028-Feb-09 0:29
tyr200028-Feb-09 0:29 
GeneralRe: how to send a tree control TVN_SELCHANGED message by portmessage() Pin
«_Superman_»28-Feb-09 3:41
professional«_Superman_»28-Feb-09 3:41 

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.