Click here to Skip to main content
15,921,351 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Looking for a safe and efficient way to use two dimensional arrays. Pin
George220-Mar-04 22:32
George220-Mar-04 22:32 
GeneralRe: Looking for a safe and efficient way to use two dimensional arrays. Pin
Branislav21-Mar-04 2:48
Branislav21-Mar-04 2:48 
GeneralRe: Looking for a safe and efficient way to use two dimensional arrays. Pin
Nick Parker21-Mar-04 7:52
protectorNick Parker21-Mar-04 7:52 
GeneralRe: Looking for a safe and efficient way to use two dimensional arrays. Pin
George221-Mar-04 17:15
George221-Mar-04 17:15 
GeneralRe: Looking for a safe and efficient way to use two dimensional arrays. Pin
George221-Mar-04 17:20
George221-Mar-04 17:20 
GeneralRe: Looking for a safe and efficient way to use two dimensional arrays. Pin
Branislav21-Mar-04 21:04
Branislav21-Mar-04 21:04 
GeneralRe: Looking for a safe and efficient way to use two dimensional arrays. Pin
George221-Mar-04 21:09
George221-Mar-04 21:09 
Questionhow does the function of the scrollbar control work? Pin
vividtang20-Mar-04 19:23
vividtang20-Mar-04 19:23 
please see the part below,i don't understand how does the function of the
scrollbar for the range and position (my book says that they use the integer of 16 bit)
note:
nMin=0;nMax=100
why was "nTemp1" calculated in that way in the program part below?
void CEx06aDialog::OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar)
{
int nTemp1, nTemp2;

nTemp1 = pScrollBar->GetScrollPos();
switch(nSBCode) {
case SB_THUMBPOSITION:
pScrollBar->SetScrollPos(nPos);
break;
case SB_LINELEFT: // left arrow button
nTemp2 = (nMax - nMin) / 10;
if ((nTemp1 - nTemp2) > nMin) {
nTemp1 -= nTemp2;
}
else {
nTemp1 = nMin;
}
pScrollBar->SetScrollPos(nTemp1);
break;
case SB_LINERIGHT: // right arrow button
nTemp2 = (nMax - nMin) / 10;
if ((nTemp1 + nTemp2) < nMax) {
nTemp1 += nTemp2;
}
else {
nTemp1 = nMax;
}
pScrollBar->SetScrollPos(nTemp1);
break;
}
}
AnswerRe: how does the function of the scrollbar control work? Pin
Branislav21-Mar-04 3:09
Branislav21-Mar-04 3:09 
GeneralSTRRET question Pin
nm_11420-Mar-04 18:01
nm_11420-Mar-04 18:01 
GeneralOrganising VC libraries dlls etc Pin
axid3j1al20-Mar-04 17:01
axid3j1al20-Mar-04 17:01 
GeneralRe: Organising VC libraries dlls etc Pin
Ravi Bhavnani21-Mar-04 3:29
professionalRavi Bhavnani21-Mar-04 3:29 
GeneralRe: Organising VC libraries dlls etc Pin
axid3j1al21-Mar-04 12:29
axid3j1al21-Mar-04 12:29 
GeneralRe: Organising VC libraries dlls etc Pin
Ravi Bhavnani21-Mar-04 14:34
professionalRavi Bhavnani21-Mar-04 14:34 
GeneralRe: Organising VC libraries dlls etc Pin
axid3j1al21-Mar-04 14:56
axid3j1al21-Mar-04 14:56 
GeneralRe: GDI object viewer add-in Pin
Antti Keskinen20-Mar-04 23:56
Antti Keskinen20-Mar-04 23:56 
General7 .NET cds -&gt; 1 Pin
Anonymous20-Mar-04 12:38
Anonymous20-Mar-04 12:38 
GeneralRe: 7 .NET cds -&gt; 1 Pin
Prakash Nadar20-Mar-04 16:42
Prakash Nadar20-Mar-04 16:42 
GeneralRe: 7 .NET cds -&gt; 1 Pin
Anonymous20-Mar-04 16:50
Anonymous20-Mar-04 16:50 
GeneralRe: 7 .NET cds -&gt; 1 Pin
Prakash Nadar20-Mar-04 17:38
Prakash Nadar20-Mar-04 17:38 
GeneralRe: 7 .NET cds -&gt; 1 Pin
Sarvesvara (BVKS) Dasa21-Mar-04 2:19
Sarvesvara (BVKS) Dasa21-Mar-04 2:19 
GeneralRe: 7 .NET cds -&gt; 1 Pin
Prakash Nadar21-Mar-04 3:48
Prakash Nadar21-Mar-04 3:48 
GeneralRe: 7 .NET cds -&gt; 1 Pin
Sarvesvara (BVKS) Dasa21-Mar-04 2:18
Sarvesvara (BVKS) Dasa21-Mar-04 2:18 
GeneralRe: 7 .NET cds -&gt; 1 Pin
axid3j1al21-Mar-04 12:03
axid3j1al21-Mar-04 12:03 
GeneralRe: 7 .NET cds -&gt; 1 Pin
Sarvesvara (BVKS) Dasa21-Mar-04 17:46
Sarvesvara (BVKS) Dasa21-Mar-04 17:46 

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.