Click here to Skip to main content
15,926,035 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralInvalidateRect() Pin
alex.barylski28-Aug-02 17:57
alex.barylski28-Aug-02 17:57 
GeneralRe: InvalidateRect() Pin
.dan.g.28-Aug-02 21:25
professional.dan.g.28-Aug-02 21:25 
GeneralMicrosoft auto-generated comments Pin
redbomberman28-Aug-02 15:56
redbomberman28-Aug-02 15:56 
GeneralRe: Microsoft auto-generated comments Pin
Liam O'Hagan28-Aug-02 16:45
Liam O'Hagan28-Aug-02 16:45 
GeneralRe: Microsoft auto-generated comments Pin
alex.barylski28-Aug-02 17:24
alex.barylski28-Aug-02 17:24 
GeneralRe: Microsoft auto-generated comments Pin
Michael P Butler28-Aug-02 22:04
Michael P Butler28-Aug-02 22:04 
GeneralRe: Microsoft auto-generated comments Pin
Chris Losinger28-Aug-02 17:41
professionalChris Losinger28-Aug-02 17:41 
QuestionHow to create an edit box in code Pin
~~~~s28-Aug-02 15:33
suss~~~~s28-Aug-02 15:33 
I found this code to create a combobox (to be embedded in a toolbar)

CRect rect;
int nIndex = m_wndToolBar.GetToolBarCtrl().CommandToIndex(ID_COMBO);
m_wndToolBar.SetButtonInfo(nIndex, ID_COMBO, TBBS_SEPARATOR, 205);
m_wndToolBar.GetToolBarCtrl().GetItemRect(nIndex, &rect);
rect.top = 1;
rect.bottom = rect.top + 250 /*drop height*/;
if(!m_comboBox.Create(CBS_DROPDOWNLIST | CBS_SORT | WS_VISIBLE |
    WS_TABSTOP | WS_VSCROLL, rect, &m_wndToolBar, ID_COMBO))
{
    TRACE(_T("Failed to create combo-box\n"));
    return FALSE;
}


I need an editbox, not a combobox. How do I modify this code ? Also, if I want to write stuff to this cEdit , how do I do that? Theres no m_Edit variable as I would have if it were on a form by itself, to do setwindowtext.

Thanks,
AnswerHow to create an edit box in code Pin
~~~~s28-Aug-02 15:36
suss~~~~s28-Aug-02 15:36 
AnswerRe: How to create an edit box in code Pin
Christian Graus28-Aug-02 16:38
protectorChristian Graus28-Aug-02 16:38 
Generalpipe communication Pin
includeh1028-Aug-02 13:05
includeh1028-Aug-02 13:05 
GeneralRe: pipe communication Pin
Roger Stewart28-Aug-02 17:39
professionalRoger Stewart28-Aug-02 17:39 
GeneralRe: pipe communication Pin
Alois Kraus28-Aug-02 21:04
Alois Kraus28-Aug-02 21:04 
GeneralAdd/Remove of the function is impossible, because the parent class code is read only Pin
adamUK28-Aug-02 12:48
adamUK28-Aug-02 12:48 
GeneralProperty Sheet and CFormView Pin
Kash28-Aug-02 12:47
Kash28-Aug-02 12:47 
GeneralRe: Property Sheet and CFormView Pin
Chris Losinger28-Aug-02 12:52
professionalChris Losinger28-Aug-02 12:52 
GeneralPulling data from Document to Dialog Pin
RalfPeter28-Aug-02 11:35
RalfPeter28-Aug-02 11:35 
GeneralRe: Pulling data from Document to Dialog Pin
Joaquín M López Muñoz28-Aug-02 11:47
Joaquín M López Muñoz28-Aug-02 11:47 
GeneralRe: Pulling data from Document to Dialog Pin
Anonymous29-Aug-02 4:32
Anonymous29-Aug-02 4:32 
GeneralRe: Pulling data from Document to Dialog Pin
Joaquín M López Muñoz29-Aug-02 4:58
Joaquín M López Muñoz29-Aug-02 4:58 
GeneralRe: Pulling data from Document to Dialog Pin
Rohit  Sinha28-Aug-02 11:48
Rohit  Sinha28-Aug-02 11:48 
GeneralRe: Pulling data from Document to Dialog Pin
Chris Losinger28-Aug-02 11:48
professionalChris Losinger28-Aug-02 11:48 
Generalwho to use it Pin
imran_rafique28-Aug-02 11:28
imran_rafique28-Aug-02 11:28 
GeneralMaximizing window after application start Pin
Mariusz Popiolek28-Aug-02 10:54
sussMariusz Popiolek28-Aug-02 10:54 
GeneralRe: Maximizing window after application start Pin
Joaquín M López Muñoz28-Aug-02 11:05
Joaquín M López Muñoz28-Aug-02 11:05 

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.