Click here to Skip to main content
15,909,822 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: AmIAdmin Pin
Michael Dunn3-Sep-02 10:49
sitebuilderMichael Dunn3-Sep-02 10:49 
GeneralRe: AmIAdmin Pin
Tomasz Sowinski3-Sep-02 10:55
Tomasz Sowinski3-Sep-02 10:55 
GeneralRe: AmIAdmin Pin
Joaquín M López Muñoz3-Sep-02 22:33
Joaquín M López Muñoz3-Sep-02 22:33 
GeneralRe: AmIAdmin Pin
Mike Nordell3-Sep-02 23:53
Mike Nordell3-Sep-02 23:53 
GeneralDC, bitmaps, and view questions Pin
JohnnyG3-Sep-02 10:21
JohnnyG3-Sep-02 10:21 
GeneralRe: DC, bitmaps, and view questions Pin
Tomasz Sowinski3-Sep-02 10:23
Tomasz Sowinski3-Sep-02 10:23 
GeneralRe: DC, bitmaps, and view questions Pin
JohnnyG4-Sep-02 17:30
JohnnyG4-Sep-02 17:30 
Generalprogress bar never shows on status bar Pin
RalfPeter3-Sep-02 9:26
RalfPeter3-Sep-02 9:26 
I cannot get my progress bar to show on the status bar. The only way I found around it to show is to use MyPBar.SetWindowPos(...). Doing it this way, though, mispositions the progress bar on different computers. How do I lock it to my status bar? Here's what I have:

In MainFrm.cpp:
CRect rect;
m_wndStatusBar.GetItemRect(2, &rect);
m_ProgBar.Create(WS_VISIBLE | WS_CHILD | PBS_SMOOTH,
rect, this, ID_INDICATOR_PBAR);
m_ProgBar.SetRange(0,100);//Set the range to between 0 and 100
m_ProgBar.SetStep(1);//Set the step amount
//the line below is brute force, can't find out how to display ProgBar
m_ProgBar.SetWindowPos(NULL,782,714,105,16,NULL);

In CView.cpp (or elsewhere):
.
.
.
CMainFrame* pFrame = (CMainFrame*)AfxGetApp()->m_pMainWnd;//pointer to mainframe object
.
.
.
pFrame->m_ProgBar.StepIt();//never shows on status bar

Any suggestions? Thx



ralf.riedel@usm.edu
GeneralRe: progress bar never shows on status bar Pin
Tomasz Sowinski3-Sep-02 9:34
Tomasz Sowinski3-Sep-02 9:34 
GeneralRe: progress bar never shows on status bar Pin
RalfPeter3-Sep-02 11:21
RalfPeter3-Sep-02 11:21 
GeneralRe: progress bar never shows on status bar Pin
Tomasz Sowinski3-Sep-02 23:36
Tomasz Sowinski3-Sep-02 23:36 
GeneralRe: progress bar never shows on status bar Pin
Pavel Klocek3-Sep-02 10:04
Pavel Klocek3-Sep-02 10:04 
GeneralChanging Windows background !!! Pin
Hadi Rezaee3-Sep-02 8:14
Hadi Rezaee3-Sep-02 8:14 
GeneralRe: Changing Windows background !!! Pin
lucy3-Sep-02 9:00
lucy3-Sep-02 9:00 
GeneralRe: Changing Windows background !!! Pin
Hadi Rezaee3-Sep-02 9:07
Hadi Rezaee3-Sep-02 9:07 
GeneralRe: Changing Windows background !!! Pin
User 66583-Sep-02 9:14
User 66583-Sep-02 9:14 
GeneralRe: Changing Windows background !!! Pin
Jason Henderson3-Sep-02 9:42
Jason Henderson3-Sep-02 9:42 
GeneralRe: Changing Windows background !!! Pin
Hadi Rezaee3-Sep-02 10:12
Hadi Rezaee3-Sep-02 10:12 
GeneralInserting a Child dialog to Parent dialog !!! Pin
Hadi Rezaee3-Sep-02 8:10
Hadi Rezaee3-Sep-02 8:10 
GeneralRe: Inserting a Child dialog to Parent dialog !!! Pin
Chris Losinger3-Sep-02 10:44
professionalChris Losinger3-Sep-02 10:44 
GeneralRe: Inserting a Child dialog to Parent dialog !!! Pin
Hadi Rezaee3-Sep-02 10:56
Hadi Rezaee3-Sep-02 10:56 
GeneralDAO: linking dbf table with different extension Pin
AndyR3-Sep-02 6:16
AndyR3-Sep-02 6:16 
GeneralRe: DAO: linking dbf table with different extension Pin
Lasse3-Sep-02 9:11
Lasse3-Sep-02 9:11 
GeneralRe: DAO: linking dbf table with different extension Pin
AndyR3-Sep-02 22:39
AndyR3-Sep-02 22:39 
GeneralClasswizard Problem w/ External Resource DLL Pin
Andrew Welch3-Sep-02 5:37
Andrew Welch3-Sep-02 5: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.