How to add editbox on statusbar?
-
hi.. My code is like that,
CRect Panerc; m_wndStatusBar.GetItemRect(m_wndStatusBar.CommandToIndex(ID_INDICATOR_ZEK),&Panerc); m_edit.Create(ES_LEFT,Panerc,this,5132);
but not work. HELPPP!!!:confused: -
hi.. My code is like that,
CRect Panerc; m_wndStatusBar.GetItemRect(m_wndStatusBar.CommandToIndex(ID_INDICATOR_ZEK),&Panerc); m_edit.Create(ES_LEFT,Panerc,this,5132);
but not work. HELPPP!!!:confused:You need to be more specific than "it doesn't work". From just looking at it, the window styles aren't enough (you need at least
WS_VISIBLE|WS_CHILD
), and the parent window is wrong (it should bem_wndStatusBar
since that's where the edit box should go). --Mike-- Latest blog entry: *drool* (Alyson) [May 10] Ericahist | Homepage | RightClick-Encrypt | 1ClickPicGrabber "You have Erica on the brain" - Jon Sagara to me