Click here to Skip to main content
16,005,281 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionExtern function template !? Pin
Maxwell Chen25-Apr-02 20:31
Maxwell Chen25-Apr-02 20:31 
AnswerRe: Extern function template !? Pin
Joaquín M López Muñoz25-Apr-02 20:54
Joaquín M López Muñoz25-Apr-02 20:54 
GeneralPassing Parameter to hook DLL Pin
Sameer Maggon25-Apr-02 20:20
Sameer Maggon25-Apr-02 20:20 
GeneralRe: Passing Parameter to hook DLL Pin
Joaquín M López Muñoz25-Apr-02 20:29
Joaquín M López Muñoz25-Apr-02 20:29 
GeneralRe: Passing Parameter to hook DLL Pin
Sameer Maggon25-Apr-02 21:24
Sameer Maggon25-Apr-02 21:24 
GeneralRe: Passing Parameter to hook DLL Pin
Joaquín M López Muñoz25-Apr-02 22:34
Joaquín M López Muñoz25-Apr-02 22:34 
GeneralRe: Passing Parameter to hook DLL Pin
Sameer Maggon25-Apr-02 23:11
Sameer Maggon25-Apr-02 23:11 
GeneralProgressbar as Part of Statusbar :: MFC Pin
valikac25-Apr-02 20:14
valikac25-Apr-02 20:14 
Hi.

I would like to implement a progress bar one pane of the statusbar. Current, the statusbar has two panes. Pane 1 (index 0) is the default separator where you see "Ready." The second pane is contains the progressbar. Here is the code.

-----
CRect progressRect;
m_wndStatusBar.GetItemRect(1, &progressRect);
m_ProgressBar.Create(WS_CHILD | WS_VISIBLE | SBPS_NOBORDERS | PBS_SMOOTH, progressRect, this, -1);
m_ProgressBar.SetRange(0, 100);
m_ProgressBar.SetPos(0);
-----

Here is the code that tests the progressbar.

-----
for (int i = 0; i < 100; ++i)
{
{
m_ProgressBar.SetPos(i);
::Sleep(25);
}
}
-----

For some reason, I do not see any sign of the progressbar working. I have an option in the menu to start the for loop. However, I do not see any sign of the progressbar, period. I am using SDI. The code above are all part of main.

Thanks,
Kuphryn
GeneralRe: Progressbar as Part of Statusbar :: MFC Pin
Roger Allen26-Apr-02 1:57
Roger Allen26-Apr-02 1:57 
GeneralRe: Progressbar as Part of Statusbar :: MFC Pin
valikac26-Apr-02 4:56
valikac26-Apr-02 4:56 
GeneralRe: Progressbar as Part of Statusbar :: MFC Pin
Roger Allen26-Apr-02 5:53
Roger Allen26-Apr-02 5:53 
GeneralRe: Progressbar as Part of Statusbar :: MFC Pin
valikac26-Apr-02 6:46
valikac26-Apr-02 6:46 
GeneralRe: I see your point Pin
valikac26-Apr-02 6:53
valikac26-Apr-02 6:53 
GeneralRe: Message Pump Pin
valikac26-Apr-02 16:23
valikac26-Apr-02 16:23 
GeneralCOM - History Extraction Pin
Sameer Maggon25-Apr-02 19:11
Sameer Maggon25-Apr-02 19:11 
GeneralDetermining Active View :: MFC Pin
valikac25-Apr-02 15:35
valikac25-Apr-02 15:35 
GeneralRe: Determining Active View :: MFC Pin
Joao Vaz25-Apr-02 18:55
Joao Vaz25-Apr-02 18:55 
GeneralRe: Determining Active View :: MFC Pin
valikac25-Apr-02 19:35
valikac25-Apr-02 19:35 
GeneralTaskbaricon for every childwindow in MDI Pin
Danny Springer25-Apr-02 13:06
Danny Springer25-Apr-02 13:06 
GeneralRe: Taskbaricon for every childwindow in MDI Pin
Matt Newman25-Apr-02 13:39
Matt Newman25-Apr-02 13:39 
GeneralRe: Taskbaricon for every childwindow in MDI Pin
Danny Springer25-Apr-02 19:50
Danny Springer25-Apr-02 19:50 
GeneralRe: Taskbaricon for every childwindow in MDI Pin
Nish Nishant25-Apr-02 15:06
sitebuilderNish Nishant25-Apr-02 15:06 
GeneralRe: Taskbaricon for every childwindow in MDI Pin
25-Apr-02 17:51
suss25-Apr-02 17:51 
GeneralRe: Taskbaricon for every childwindow in MDI Pin
Paul M Watt26-Apr-02 4:07
mentorPaul M Watt26-Apr-02 4:07 
GeneralCustom Command Routing :: MFC Pin
valikac25-Apr-02 12:24
valikac25-Apr-02 12:24 

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.