Click here to Skip to main content
15,914,820 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: string in c++ Pin
CPallini5-May-08 21:46
mveCPallini5-May-08 21:46 
QuestionMFC/C++ Pin
Member 36547605-May-08 20:47
Member 36547605-May-08 20:47 
AnswerRe: MFC/C++ Pin
Rajesh R Subramanian5-May-08 20:56
professionalRajesh R Subramanian5-May-08 20:56 
AnswerRe: MFC/C++ Pin
toxcct5-May-08 21:55
toxcct5-May-08 21:55 
AnswerRe: MFC/C++ Pin
Hamid_RT6-May-08 1:18
Hamid_RT6-May-08 1:18 
Questionprogressbar in status bar,MFC VC++ Pin
Mohanraj D5-May-08 19:42
Mohanraj D5-May-08 19:42 
AnswerRe: progressbar in status bar,MFC VC++ Pin
Nitheesh George5-May-08 20:07
Nitheesh George5-May-08 20:07 
AnswerRe: progressbar in status bar,MFC VC++ Pin
Nibu babu thomas5-May-08 20:13
Nibu babu thomas5-May-08 20:13 
Project RAJA wrote:
I need to know how to show the progress bar in staus bar,


Here is a simple function which does this. This function assumes both progress and status bars are created!

void CProcessViewerDlg::SetUpProgressBar()
{
    if( !m_StatusBar.GetSafeHwnd() || !m_PrgCtrl.GetSafeHwnd() )
    {
        return;
    }

    CRect crPaneRect;
    m_PrgCtrl.SetParent( &m_StatusBar );
    m_StatusBar.GetStatusBarCtrl().GetRect( 1, &crPaneRect );

    // Adjust rectangle
    crPaneRect.DeflateRect( 0, 2, 2, 2 );

    // Move progress rectangle into view
    m_PrgCtrl.MoveWindow( crPaneRect );
}


This sample is taken from my ProcessViewer application -> http://www.codeproject.com/KB/cpp/processviewer.aspx[^]


Nibu thomas
Microsoft MVP for VC++


Code must be written to be read, not by the compiler, but by another human being.

Programming Blog: http://nibuthomas.wordpress.com

AnswerRe: progressbar in status bar,MFC VC++ Pin
toxcct5-May-08 21:54
toxcct5-May-08 21:54 
GeneralRe: progressbar in status bar,MFC VC++ Pin
Nelek6-May-08 1:47
protectorNelek6-May-08 1:47 
GeneralRe: progressbar in status bar,MFC VC++ Pin
toxcct6-May-08 1:51
toxcct6-May-08 1:51 
QuestionHow to set VC6 to fit this useness? Pin
kcynic5-May-08 19:33
kcynic5-May-08 19:33 
AnswerRe: How to set VC6 to fit this useness? Pin
Cedric Moonen5-May-08 20:20
Cedric Moonen5-May-08 20:20 
GeneralRe: How to set VC6 to fit this useness? Pin
kcynic5-May-08 20:26
kcynic5-May-08 20:26 
QuestionCSpinButtonCtrl Pin
Chandrasekharan P5-May-08 19:32
Chandrasekharan P5-May-08 19:32 
AnswerRe: CSpinButtonCtrl Pin
Rajesh R Subramanian5-May-08 20:33
professionalRajesh R Subramanian5-May-08 20:33 
GeneralRe: CSpinButtonCtrl Pin
Chandrasekharan P6-May-08 20:26
Chandrasekharan P6-May-08 20:26 
Questionupdate the value of edit box Pin
shohel8995-May-08 19:26
shohel8995-May-08 19:26 
QuestionRe: update the value of edit box Pin
Rajesh R Subramanian5-May-08 19:31
professionalRajesh R Subramanian5-May-08 19:31 
AnswerRe: update the value of edit box Pin
_AnsHUMAN_ 5-May-08 19:32
_AnsHUMAN_ 5-May-08 19:32 
AnswerRe: update the value of edit box Pin
krmed6-May-08 0:44
krmed6-May-08 0:44 
GeneralRe: update the value of edit box Pin
shohel8996-May-08 1:30
shohel8996-May-08 1:30 
Questionrelated files of CDaoDatabase Pin
includeh105-May-08 18:14
includeh105-May-08 18:14 
AnswerRe: related files of CDaoDatabase Pin
Rajesh R Subramanian5-May-08 18:35
professionalRajesh R Subramanian5-May-08 18:35 
GeneralIt is not working Pin
includeh105-May-08 19:29
includeh105-May-08 19:29 

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.