Click here to Skip to main content
15,899,754 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Problems with std::ofstream function on std::ios::binary parameter Pin
Stuart Dootson17-Feb-09 0:08
professionalStuart Dootson17-Feb-09 0:08 
GeneralRe: Problems with std::ofstream function on std::ios::binary parameter Pin
josip cagalj17-Feb-09 0:15
josip cagalj17-Feb-09 0:15 
QuestionUsing GDI over OpenGL in Vista Pin
Gastello16-Feb-09 22:50
Gastello16-Feb-09 22:50 
QuestionNeed help on how to move line between two horizontal sliders with slider position [modified] Pin
John50216-Feb-09 22:37
John50216-Feb-09 22:37 
AnswerRe: Need help on how to move line between two horizontal sliders with slider position Pin
«_Superman_»16-Feb-09 23:05
professional«_Superman_»16-Feb-09 23:05 
GeneralRe: Need help on how to move line between two horizontal sliders with slider position [modified] Pin
John50217-Feb-09 0:01
John50217-Feb-09 0:01 
AnswerRe: Need help on how to move line between two horizontal sliders with slider position Pin
«_Superman_»17-Feb-09 1:06
professional«_Superman_»17-Feb-09 1:06 
GeneralRe: Need help on how to move line between two horizontal sliders with slider position [modified] Pin
John50217-Feb-09 1:38
John50217-Feb-09 1:38 
Hi Superman,
I have written the code like this, but still it's not working
while (slide_pos <= 100)
{
m_pDlg->m_slider_bar1.GetWindowRect(&rect1);
m_pDlg->m_slider_bar2.GetWindowRect(&rect2);
int pos = m_pDlg->m_slider_bar1.GetPos();
m_pDlg->x1 = ((rect1.left-rect1.top)/100);
m_pDlg->y1 = rect1.bottom;
m_pDlg->x1 = ((rect1.left-rect1.top)/100);
m_pDlg->y2 = rect2.top;
m_pDlg->m_slider_bar1.SetPos(slide_pos);
m_pDlg->m_slider_bar2.SetPos(slide_pos);
slide_pos = slide_pos + 5;
m_pDlg->InvalidateRect(NULL);
Sleep(1000);
}
rect1 values are :- top=86,bottom=110,left=283,right=565
rect2 values are :- top=259,bottom=283,left=283, right=565.
Can you please look into the code what i have written and let me know where i did wrong..?

modified on Tuesday, February 17, 2009 10:18 AM

QuestionRe: Need help on how to move line between two horizontal sliders with slider position Pin
«_Superman_»17-Feb-09 2:29
professional«_Superman_»17-Feb-09 2:29 
AnswerRe: Need help on how to move line between two horizontal sliders with slider position [modified] Pin
John50217-Feb-09 2:52
John50217-Feb-09 2:52 
GeneralRe: Need help on how to move line between two horizontal sliders with slider position Pin
«_Superman_»17-Feb-09 19:10
professional«_Superman_»17-Feb-09 19:10 
GeneralRe: Need help on how to move line between two horizontal sliders with slider position Pin
John50217-Feb-09 23:24
John50217-Feb-09 23:24 
GeneralRe: Need help on how to move line between two horizontal sliders with slider position Pin
«_Superman_»17-Feb-09 23:35
professional«_Superman_»17-Feb-09 23:35 
GeneralRe: Need help on how to move line between two horizontal sliders with slider position Pin
John50218-Feb-09 1:08
John50218-Feb-09 1:08 
GeneralRe: Need help on how to move line between two horizontal sliders with slider position Pin
John50217-Feb-09 1:01
John50217-Feb-09 1:01 
QuestionProtocol Design Pin
septane16-Feb-09 22:22
septane16-Feb-09 22:22 
AnswerRe: Protocol Design Pin
Cedric Moonen16-Feb-09 22:48
Cedric Moonen16-Feb-09 22:48 
QuestionCHttpFile-&gt;Read = not enough storage is available to process this command Pin
Psyinx16-Feb-09 20:21
Psyinx16-Feb-09 20:21 
AnswerRe: CHttpFile-&gt;Read = not enough storage is available to process this command Pin
Stuart Dootson16-Feb-09 21:13
professionalStuart Dootson16-Feb-09 21:13 
GeneralRe: CHttpFile-&gt;Read = not enough storage is available to process this command Pin
Psyinx16-Feb-09 21:24
Psyinx16-Feb-09 21:24 
GeneralRe: CHttpFile-&gt;Read = not enough storage is available to process this command Pin
Stuart Dootson16-Feb-09 23:08
professionalStuart Dootson16-Feb-09 23:08 
GeneralRe: CHttpFile-&gt;Read = not enough storage is available to process this command Pin
Psyinx17-Feb-09 0:01
Psyinx17-Feb-09 0:01 
GeneralRe: CHttpFile-&gt;Read = not enough storage is available to process this command Pin
Psyinx17-Feb-09 3:29
Psyinx17-Feb-09 3:29 
QuestionCSIDL_SYSTEM Pin
john563216-Feb-09 19:58
john563216-Feb-09 19:58 
AnswerRe: CSIDL_SYSTEM Pin
Stuart Dootson16-Feb-09 21:20
professionalStuart Dootson16-Feb-09 21:20 

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.