Click here to Skip to main content
15,916,378 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: New build configuration ???? Pin
xSoptik11-Oct-05 21:40
xSoptik11-Oct-05 21:40 
QuestionAnybody can help me , About VC7 Pin
BaiYunlong11-Oct-05 17:57
BaiYunlong11-Oct-05 17:57 
QuestionAbout class Pin
11-Oct-05 16:06
suss11-Oct-05 16:06 
AnswerRe: About class Pin
Prakash Nadar11-Oct-05 17:40
Prakash Nadar11-Oct-05 17:40 
QuestionGet USB drives label Pin
LiYS11-Oct-05 15:30
LiYS11-Oct-05 15:30 
AnswerRe: Get USB drives label Pin
kakan11-Oct-05 21:43
professionalkakan11-Oct-05 21:43 
GeneralRe: Get USB drives label Pin
LiYS12-Oct-05 3:20
LiYS12-Oct-05 3:20 
Questionprogress bar not working Pin
Ann6611-Oct-05 14:07
sussAnn6611-Oct-05 14:07 
I have a progress bar in my dialog with id IDC_WP_PROGRESS.
I have done the following. But still the progress bar is not working. The execution is not calling WM_TIMER at all. What am I missing????

BOOL CALLBACK DialogProc (HWND hDialog, UINT message, WPARAM wParam,
LPARAM lParam)
{

int nPos = 1;
HWND hProg;
hProg = GetDlgItem(hDialog,IDC_WP_PROGRESS);

switch (message)
{
case INIT_DIALOG:
......
case WM_TIMER:
{
if (wParam == IDC_WP_PROGRESS)
{
nPos = nPos+1 ;
SendMessage(hProg,PBM_SETPOS,(WPARAM)nPos,0);
}
break;
}
case WM_USER_MSG:
{

SendMessage(hProg,PBM_SETRANGE,0,MAKELPARAM(0,50));
SendMessage(hProg,PBM_SETPOS,(WPARAM)nPos,0);
int ret = SetTimer(hDialog,IDC_WP_PROGRESS,150,NULL) ;
if(ret == 0)
MessageBox(0, "Could not SetTimer()!", "Error", MB_OK );

......
}
..........
AnswerRe: progress bar not working Pin
Blake V. Miller11-Oct-05 14:30
Blake V. Miller11-Oct-05 14:30 
GeneralRe: progress bar not working Pin
Ann6611-Oct-05 14:52
sussAnn6611-Oct-05 14:52 
GeneralRe: progress bar not working Pin
Ann6611-Oct-05 15:03
sussAnn6611-Oct-05 15:03 
GeneralRe: progress bar not working Pin
Blake V. Miller13-Oct-05 18:20
Blake V. Miller13-Oct-05 18:20 
QuestionRe: progress bar not working Pin
David Crow12-Oct-05 2:59
David Crow12-Oct-05 2:59 
AnswerRe: progress bar not working Pin
Richard Jones12-Oct-05 8:03
Richard Jones12-Oct-05 8:03 
Questionmoving DLL to lib Pin
act_x11-Oct-05 12:50
act_x11-Oct-05 12:50 
QuestionIs this code ok? Pin
Mateusz Karbowy11-Oct-05 12:43
Mateusz Karbowy11-Oct-05 12:43 
AnswerRe: Is this code ok? Pin
Maximilien11-Oct-05 13:07
Maximilien11-Oct-05 13:07 
AnswerRe: Is this code ok? Pin
oustar11-Oct-05 15:40
oustar11-Oct-05 15:40 
GeneralRe: Is this code ok? Pin
Maximilien11-Oct-05 16:01
Maximilien11-Oct-05 16:01 
AnswerRe: Is this code ok? Pin
Prakash Nadar11-Oct-05 17:15
Prakash Nadar11-Oct-05 17:15 
AnswerRe: Is this code ok? Pin
Bob Stanneveld11-Oct-05 23:02
Bob Stanneveld11-Oct-05 23:02 
GeneralRe: Is this code ok? Pin
Maximilien12-Oct-05 0:47
Maximilien12-Oct-05 0:47 
GeneralRe: Is this code ok? Pin
Bob Stanneveld12-Oct-05 5:56
Bob Stanneveld12-Oct-05 5:56 
AnswerRe: Is this code ok? Pin
Mateusz Karbowy12-Oct-05 11:22
Mateusz Karbowy12-Oct-05 11:22 
QuestionReplacing http headers with LSP Pin
Tomek.Sergey11-Oct-05 12:37
Tomek.Sergey11-Oct-05 12:37 

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.