Click here to Skip to main content
15,915,702 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CFileDialog inside CPropertySheet Pin
David Crow12-May-04 6:58
David Crow12-May-04 6:58 
GeneralRe: CFileDialog inside CPropertySheet Pin
Maxer12-May-04 22:49
Maxer12-May-04 22:49 
GeneralRe: CFileDialog inside CPropertySheet Pin
David Crow13-May-04 2:14
David Crow13-May-04 2:14 
GeneralRe: CFileDialog inside CPropertySheet Pin
Maxer13-May-04 3:29
Maxer13-May-04 3:29 
GeneralRe: CFileDialog inside CPropertySheet Pin
David Crow13-May-04 3:42
David Crow13-May-04 3:42 
GeneralStatus Bar Help Required Pin
vikashparida12-May-04 5:46
vikashparida12-May-04 5:46 
GeneralRe: Status Bar Help Required Pin
toxcct12-May-04 7:25
toxcct12-May-04 7:25 
GeneralRe: Status Bar Help Required Pin
vividtang13-May-04 15:41
vividtang13-May-04 15:41 
hi:maybe ,i can help you some:the program i have run well,
void CMainFrame::OnViewStatusBar()
{
m_wndStatusBar.ShowWindow((m_wndStatusBar.GetStyle()&WS_VISIBLE)==0);
RecalcLayout();
}


void CMainFrame::OnUpdateViewStatusBar(CCmdUI* pCmdUI)
{
pCmdUI->SetCheck((m_wndStatusBar.GetStyle()&WS_VISIBLE)!=0);

}
void CMainFrame::OnUpdateLeft(CCmdUI* pCmdUI)
{pCmdUI->Enable(::GetKeyState(VK_LBUTTON)<0);
}
void CMainFrame::OnUpdateRight(CCmdUI* pCmdUI)
{
pCmdUI->Enable(::GetKeyState(VK_RBUTTON)<0);
}
void CStatusbool514View::OnMouseMove(UINT nFlags, CPoint point)
{

//CView::OnMouseMove(nFlags, point);
CString str;
CMainFrame* pFrame=(CMainFrame*)AfxGetApp()->m_pMainWnd;
CStatusBar* pStatus=&pFrame->m_wndStatusBar;
if(pStatus)
{
str.Format("x=%d",point.x);
pStatus->SetPaneText(0,str);
str.Format("y=%d",point.y);
pStatus->SetPaneText(1,str);
}
}

int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{.......
if (!m_wndStatusBar.Create(this,
WS_CHILD|WS_VISIBLE|CBRS_BOTTOM,ID_MY_STATUS_BAR)||
!m_wndStatusBar.SetIndicators(indicators, sizeof(indicators)/sizeof(UINT)))

{
TRACE0("Failed to create status bar\n");
return -1; // fail to create
}
}
static UINT indicators[] =
{
ID_SEPARATOR,
ID_SEPARATOR,
ID_INDICATOR_LEFT,//(3)(4)you yourself define in string table
ID_INDICATOR_RIGHT,// status line indicator
};
GeneralC++ Exception Handling Pin
IceBerG7112-May-04 5:41
IceBerG7112-May-04 5:41 
GeneralRe: C++ Exception Handling Pin
David Crow12-May-04 6:36
David Crow12-May-04 6:36 
GeneralRe: C++ Exception Handling Pin
IceBerG7112-May-04 15:30
IceBerG7112-May-04 15:30 
GeneralRe: C++ Exception Handling Pin
Joe Woodbury12-May-04 7:08
professionalJoe Woodbury12-May-04 7:08 
GeneralRe: C++ Exception Handling Pin
Paul Ranson12-May-04 13:11
Paul Ranson12-May-04 13:11 
GeneralEvents and Shared Memory Pin
sweep12312-May-04 4:57
sweep12312-May-04 4:57 
GeneralRe: Events and Shared Memory Pin
Joe Woodbury12-May-04 6:58
professionalJoe Woodbury12-May-04 6:58 
GeneralRe: Events and Shared Memory Pin
Grahamfff12-May-04 9:56
Grahamfff12-May-04 9:56 
GeneralRe: Events and Shared Memory Pin
Joe Woodbury12-May-04 10:23
professionalJoe Woodbury12-May-04 10:23 
QuestionWhere can I find some article about technique of VC++ IDE? Pin
bloggs197412-May-04 4:47
bloggs197412-May-04 4:47 
AnswerRe: Where can I find some article about technique of VC++ IDE? Pin
jmkhael12-May-04 4:54
jmkhael12-May-04 4:54 
GeneralThank you, it is. Do anyone has more? Pin
bloggs197412-May-04 8:42
bloggs197412-May-04 8:42 
GeneralMJPEG question Pin
cristane12-May-04 4:45
cristane12-May-04 4:45 
GeneralRe: MJPEG question Pin
Chris Losinger12-May-04 4:59
professionalChris Losinger12-May-04 4:59 
GeneralHelp for mschart problem! Pin
allen_homer12-May-04 4:35
allen_homer12-May-04 4:35 
GeneralConversion from integer to string Pin
jazzlycool12-May-04 4:08
jazzlycool12-May-04 4:08 
GeneralRe: Conversion from integer to string Pin
jmkhael12-May-04 4:14
jmkhael12-May-04 4:14 

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.