Click here to Skip to main content
15,916,042 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to keep CComboBox list open Pin
PJ Arends23-Jun-03 16:36
professionalPJ Arends23-Jun-03 16:36 
GeneralRe: How to keep CComboBox list open Pin
Neville Franks23-Jun-03 16:46
Neville Franks23-Jun-03 16:46 
GeneralRe: How to keep CComboBox list open Pin
PJ Arends23-Jun-03 17:11
professionalPJ Arends23-Jun-03 17:11 
GeneralRe: How to keep CComboBox list open Pin
Neville Franks23-Jun-03 18:20
Neville Franks23-Jun-03 18:20 
QuestionHow to create an OnBeforeFileDownload() method in CHtmlView ? Pin
bigK198122-Jun-03 8:56
bigK198122-Jun-03 8:56 
AnswerRe: How to create an OnBeforeFileDownload() method in CHtmlView ? Pin
bigK198123-Jun-03 6:26
bigK198123-Jun-03 6:26 
QuestionWhere in CMainFrame should I call GetDlgItem? Pin
kydfru22-Jun-03 7:31
kydfru22-Jun-03 7:31 
AnswerRe: Where in CMainFrame should I call GetDlgItem? Pin
Ryan Binns22-Jun-03 15:04
Ryan Binns22-Jun-03 15:04 
[edit]Got the function prototype wrong Frown | :( /edit]
The combo box is a child of the toolbar, not of the frame window. You don't call GetDlgItem() in CMainFrame, but in your toolbar (or dialog bar).
int CMainFrame::OnCreate(LPCREATESTRUCT lpcs)
{
    if(CMDIFrameWnd::OnCreate(lpcs) == -1)
        return -1;
    // Create the toolbar here...
    // ...
    CWnd *pComboWnd = m_ToolBarWithComboBoxOn.GetDlgItem(IDC_COMBO_BOX);
    return 0;
}


Ryan

Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)

Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"

GeneralRe: Where in CMainFrame should I call GetDlgItem? Pin
kydfru22-Jun-03 21:42
kydfru22-Jun-03 21:42 
GeneralRe: Where in CMainFrame should I call GetDlgItem? Pin
Ryan Binns22-Jun-03 22:08
Ryan Binns22-Jun-03 22:08 
GeneralRe: Where in CMainFrame should I call GetDlgItem? Pin
kydfru22-Jun-03 22:27
kydfru22-Jun-03 22:27 
GeneralRe: Where in CMainFrame should I call GetDlgItem? Pin
Ryan Binns22-Jun-03 22:29
Ryan Binns22-Jun-03 22:29 
QuestionHow do I extract the next 6 letters from buffer starting a postion 12 in buffer.. Pin
IrishSonic22-Jun-03 6:32
IrishSonic22-Jun-03 6:32 
AnswerRe: How do I extract the next 6 letters from buffer starting a postion 12 in buffer.. Pin
kydfru22-Jun-03 7:25
kydfru22-Jun-03 7:25 
AnswerRe: How do I extract the next 6 letters from buffer starting a postion 12 in buffer.. Pin
valikac22-Jun-03 7:25
valikac22-Jun-03 7:25 
AnswerRe: How do I extract the next 6 letters from buffer starting a postion 12 in buffer.. Pin
peterchen22-Jun-03 23:39
peterchen22-Jun-03 23:39 
GeneralHELP! HELP! HELP! Open & read .mdb on the Web-page using VC++ 6.0 Pin
ATC22-Jun-03 5:22
ATC22-Jun-03 5:22 
GeneralRe: HELP! HELP! HELP! Open & read .mdb on the Web-page using VC++ 6.0 Pin
Nick Parker22-Jun-03 6:07
protectorNick Parker22-Jun-03 6:07 
GeneralRe: Can you specify which one? Pin
ATC22-Jun-03 9:34
ATC22-Jun-03 9:34 
GeneralRe: Can you specify which one? Pin
Christian Graus22-Jun-03 17:10
protectorChristian Graus22-Jun-03 17:10 
GeneralRe: Can you specify which one? Pin
ATC23-Jun-03 7:08
ATC23-Jun-03 7:08 
GeneralRe: Can you specify which one? Pin
Christian Graus23-Jun-03 11:40
protectorChristian Graus23-Jun-03 11:40 
GeneralSSL connection example Pin
Kuniva22-Jun-03 4:52
Kuniva22-Jun-03 4:52 
GeneralRe: SSL connection example Pin
Stefan Pedersen22-Jun-03 11:42
Stefan Pedersen22-Jun-03 11:42 
GeneralRe: SSL connection example Pin
Kuniva22-Jun-03 12:49
Kuniva22-Jun-03 12:49 

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.