Click here to Skip to main content
15,892,480 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to Dynamically add an Item to Menu? Pin
Alexandru Savescu10-Jun-02 5:04
Alexandru Savescu10-Jun-02 5:04 
AnswerRe: How to Dynamically add an Item to Menu? Pin
redeemer10-Jun-02 5:31
redeemer10-Jun-02 5:31 
GeneralEMail Pin
10-Jun-02 4:34
suss10-Jun-02 4:34 
GeneralRe: EMail Pin
Mazdak10-Jun-02 4:46
Mazdak10-Jun-02 4:46 
GeneralRe: EMail Pin
Ed Gadziemski10-Jun-02 11:41
professionalEd Gadziemski10-Jun-02 11:41 
GeneralRe: EMail Pin
Mazdak10-Jun-02 18:51
Mazdak10-Jun-02 18:51 
GeneralRe: EMail Pin
Ed Gadziemski11-Jun-02 2:03
professionalEd Gadziemski11-Jun-02 2:03 
QuestionHow to capture the message of a subcontrol which was created dynamicly? Pin
white jungle10-Jun-02 4:38
white jungle10-Jun-02 4:38 
I create a ListBox in a Dialog dynamically!I want to capture
the message LBN_SELCHANGE of the control ListBox,I create it like this:
m_ListBox.Create (WS_CHILD|WS_VISIBLE,rc,this,IDC_LIST_BOX);//CListBox m_ListBox
And I use the following code to check if the dialog capture
the message:
LRESULT CMyDlg::WindowProc(UINT message, WPARAM wParam, LPARAM lParam)
{
if(message==LBN_SELCHANGE)
{
AfxMessageBox ("LBN_SELCHANGE");
}
return CDialog::WindowProc(message, wParam, lParam);
}

But to my surprise,I found that it can capture the mesage only once,it occured at the begin of the program.after that ,it can't be captured.
How can solve the problem!
Thank you!

Don't look at me in that way!
GeneralWord Pin
10-Jun-02 4:38
suss10-Jun-02 4:38 
GeneralRe: Word Pin
Mazdak10-Jun-02 4:49
Mazdak10-Jun-02 4:49 
GeneralDirectory functions Pin
Hans Ruck10-Jun-02 4:37
Hans Ruck10-Jun-02 4:37 
GeneralRe: Directory functions Pin
Chris Losinger10-Jun-02 4:50
professionalChris Losinger10-Jun-02 4:50 
GeneralRe: Directory functions Pin
dazinith10-Jun-02 5:08
dazinith10-Jun-02 5:08 
GeneralRe: Directory functions Pin
Chris Losinger10-Jun-02 5:28
professionalChris Losinger10-Jun-02 5:28 
GeneralRe: Directory functions Pin
Neville Franks10-Jun-02 10:07
Neville Franks10-Jun-02 10:07 
GeneralRe: Directory functions Pin
dazinith10-Jun-02 5:05
dazinith10-Jun-02 5:05 
GeneralMy applications HTML Help does not work when running under another account Pin
Remon Spekreijse10-Jun-02 3:41
Remon Spekreijse10-Jun-02 3:41 
GeneralRe: My applications HTML Help does not work when running under another account Pin
Ed Gadziemski10-Jun-02 11:47
professionalEd Gadziemski10-Jun-02 11:47 
GeneralRe: My applications HTML Help does not work when running under another account Pin
Remon Spekreijse10-Jun-02 20:54
Remon Spekreijse10-Jun-02 20:54 
QuestionWhere to get HTTP proxy sources? Pin
10-Jun-02 3:31
suss10-Jun-02 3:31 
AnswerRe: Where to get HTTP proxy sources? Pin
Joaquín M López Muñoz10-Jun-02 5:25
Joaquín M López Muñoz10-Jun-02 5:25 
GeneralGDI+ Bottom Up & Top Down Bitmaps Pin
AJ12310-Jun-02 3:30
AJ12310-Jun-02 3:30 
GeneralRe: GDI+ Bottom Up & Top Down Bitmaps Pin
lucy10-Jun-02 6:39
lucy10-Jun-02 6:39 
GeneralOut of Memory error Pin
Stew10-Jun-02 3:07
Stew10-Jun-02 3:07 
GeneralRe: Out of Memory error Pin
Chris Losinger10-Jun-02 3:12
professionalChris Losinger10-Jun-02 3:12 

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.