Click here to Skip to main content
15,891,375 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionDAO in .NET application Pin
Ahmed Al-Lakani26-Feb-06 7:26
Ahmed Al-Lakani26-Feb-06 7:26 
AnswerRe: DAO in .NET application Pin
Ryan Binns26-Feb-06 17:12
Ryan Binns26-Feb-06 17:12 
GeneralRe: DAO in .NET application Pin
Ahmed Al-Lakani27-Feb-06 0:02
Ahmed Al-Lakani27-Feb-06 0:02 
GeneralRe: DAO in .NET application Pin
Ryan Binns27-Feb-06 2:27
Ryan Binns27-Feb-06 2:27 
GeneralRe: DAO in .NET application Pin
Ahmed Al-Lakani27-Feb-06 5:35
Ahmed Al-Lakani27-Feb-06 5:35 
Questionhow to fill round rectangle with gradient color? Pin
Tarek Jabri26-Feb-06 7:07
Tarek Jabri26-Feb-06 7:07 
AnswerRe: how to fill round rectangle with gradient color? Pin
Stephen Hewitt26-Feb-06 11:16
Stephen Hewitt26-Feb-06 11:16 
QuestionHorizontal scroll and vertical scroll--difference ? Pin
BeakX26-Feb-06 5:49
BeakX26-Feb-06 5:49 
i am using the code below which i copied from somewhere for an application which uses a vertical scrollable child. now i realise my application need a horizontal scroll also.....can i use back the same code ?

void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar)
{
int nDelta;
int nMaxPos = m_rcOriginalRect.Height() - m_nCurHeight;

switch (nSBCode)
{
case SB_LINEDOWN:
if (m_nScrollPos >= nMaxPos)
return;

nDelta = min(max(nMaxPos/20,5),nMaxPos-m_nScrollPos);
break;

case SB_LINEUP:
if (m_nScrollPos <= 0)
return;
nDelta = -min(max(nMaxPos/20,5),m_nScrollPos);
break;
case SB_PAGEDOWN:
if (m_nScrollPos >= nMaxPos)
return;
nDelta = min(max(nMaxPos/10,5),nMaxPos-m_nScrollPos);
break;
case SB_THUMBTRACK:
case SB_THUMBPOSITION:
nDelta = (int)nPos - m_nScrollPos;
break;

case SB_PAGEUP:
if (m_nScrollPos <= 0)
return;
nDelta = -min(max(nMaxPos/10,5),m_nScrollPos);
break;

default:
return;
}
m_nScrollPos += nDelta;
SetScrollPos(SB_VERT,m_nScrollPos,TRUE);
ScrollWindow(0,-nDelta);
CDialog::OnVScroll(nSBCode, nPos, pScrollBar);
}
AnswerRe: Horizontal scroll and vertical scroll--difference ? Pin
EXTEIDE26-Feb-06 6:29
EXTEIDE26-Feb-06 6:29 
GeneralRe: Horizontal scroll and vertical scroll--difference ? Pin
BeakX26-Feb-06 14:43
BeakX26-Feb-06 14:43 
GeneralRe: Horizontal scroll and vertical scroll--difference ? Pin
EXTEIDE26-Feb-06 20:19
EXTEIDE26-Feb-06 20:19 
Questionerror C2801: 'operator =' must be a member Pin
Mahhouraaaaaa26-Feb-06 5:03
Mahhouraaaaaa26-Feb-06 5:03 
AnswerRe: error C2801: 'operator =' must be a member Pin
Lilith.C26-Feb-06 5:24
Lilith.C26-Feb-06 5:24 
AnswerRe: error C2801: 'operator =' must be a member Pin
Stephen Hewitt26-Feb-06 11:20
Stephen Hewitt26-Feb-06 11:20 
GeneralRe: error C2801: 'operator =' must be a member Pin
PJ Arends26-Feb-06 12:15
professionalPJ Arends26-Feb-06 12:15 
GeneralRe: error C2801: 'operator =' must be a member Pin
Stephen Hewitt26-Feb-06 12:19
Stephen Hewitt26-Feb-06 12:19 
GeneralRe: error C2801: 'operator =' must be a member Pin
Ryan Binns26-Feb-06 17:16
Ryan Binns26-Feb-06 17:16 
GeneralRe: error C2801: 'operator =' must be a member Pin
Stephen Hewitt26-Feb-06 18:10
Stephen Hewitt26-Feb-06 18:10 
GeneralRe: error C2801: 'operator =' must be a member Pin
Ryan Binns26-Feb-06 19:41
Ryan Binns26-Feb-06 19:41 
GeneralRe: error C2801: 'operator =' must be a member Pin
Stephen Hewitt26-Feb-06 19:51
Stephen Hewitt26-Feb-06 19:51 
Jokesome games Pin
FARGORE26-Feb-06 3:04
FARGORE26-Feb-06 3:04 
QuestionHow does the using the address of operator work in Visual C++? Pin
Tom Moore26-Feb-06 2:08
Tom Moore26-Feb-06 2:08 
AnswerRe: How does the using the address of operator work in Visual C++? Pin
BadKarma26-Feb-06 3:15
BadKarma26-Feb-06 3:15 
GeneralRe: How does the using the address of operator work in Visual C++? Pin
Tom Moore26-Feb-06 3:31
Tom Moore26-Feb-06 3:31 
GeneralRe: How does the using the address of operator work in Visual C++? Pin
PJ Arends26-Feb-06 11:13
professionalPJ Arends26-Feb-06 11:13 

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.